From 99185f25d5a7fa807667728835b0cb51e8b215b2 Mon Sep 17 00:00:00 2001 From: Anton Siliuk Date: Sat, 11 Jun 2022 14:30:41 +0200 Subject: [PATCH] Fix `cornerCurve` property availability compilation fail --- Sources/SurfaceView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/SurfaceView.swift b/Sources/SurfaceView.swift index 0c29f7b0..5c9404b1 100644 --- a/Sources/SurfaceView.swift +++ b/Sources/SurfaceView.swift @@ -54,7 +54,12 @@ public class SurfaceAppearance: NSObject { /// /// Defaults to `.circular`. @available(iOS 13.0, *) - public lazy var cornerCurve: CALayerCornerCurve = .circular + public var cornerCurve: CALayerCornerCurve { + get { _cornerCurve ?? .circular } + set { _cornerCurve = newValue } + } + + private var _cornerCurve: CALayerCornerCurve? /// An array of shadows used to create drop shadows underneath a surface view. public var shadows: [Shadow] = [Shadow()]