From e8545489d7a2b3b3f2b0af31503bc9980b5d3c0b Mon Sep 17 00:00:00 2001 From: Rakuyo Date: Tue, 18 Jun 2024 13:37:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Fix=20not=20opening=20`init`=20of=20the?= =?UTF-8?q?=20EmptyRow=E2=80=99s=20`Style`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Epoxy/Row/EmptyRow.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Sources/Epoxy/Row/EmptyRow.swift b/Sources/Epoxy/Row/EmptyRow.swift index 570da2c..bb1acf6 100644 --- a/Sources/Epoxy/Row/EmptyRow.swift +++ b/Sources/Epoxy/Row/EmptyRow.swift @@ -61,6 +61,22 @@ extension EmptyRow { public let borderWidth: CGFloat public let borderColor: UIColor? + + public init( + size: OptionalCGSize? = nil, + backgroundColor: ConvertibleToColor? = nil, + cornerRadius: CGFloat = 0, + masksToBounds: Bool = false, + borderWidth: CGFloat = 0, + borderColor: ConvertibleToColor? = nil + ) { + self.size = size + self.backgroundColor = backgroundColor?.color + self.cornerRadius = cornerRadius + self.masksToBounds = masksToBounds + self.borderWidth = borderWidth + self.borderColor = borderColor?.color + } } }