From 466aaf21dd5fbfdbcc26f3c29af85856c0ed6290 Mon Sep 17 00:00:00 2001 From: Will Bishop <17292672+WillBishop@users.noreply.github.com> Date: Wed, 12 Jun 2024 10:19:04 +1000 Subject: [PATCH] Fix a compilation error in Xcode 16 (#636) This patch fixed the error at SurfaceView#L63 in Xcode 16 (#635): > 'CALayerCornerCurve' is only available in application extensions for iOS 13.0 or newer. --- Sources/SurfaceView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SurfaceView.swift b/Sources/SurfaceView.swift index 396bb86b..508d4e73 100644 --- a/Sources/SurfaceView.swift +++ b/Sources/SurfaceView.swift @@ -56,11 +56,11 @@ public class SurfaceAppearance: NSObject { /// Defaults to `.circular`. @available(iOS 13.0, *) public var cornerCurve: CALayerCornerCurve { - get { _cornerCurve ?? .circular } + get { _cornerCurve as? CALayerCornerCurve ?? .circular } set { _cornerCurve = newValue } } - private var _cornerCurve: CALayerCornerCurve? + private var _cornerCurve: Any? /// An array of shadows used to create drop shadows underneath a surface view. public var shadows: [Shadow] = [Shadow()]