Skip to content

Commit

Permalink
Fix a compilation error in Xcode 16 (#636)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
WillBishop authored Jun 12, 2024
1 parent 56e71ac commit 466aaf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SurfaceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit 466aaf2

Please sign in to comment.