File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,13 @@ public class SurfaceAppearance: NSObject {
4545 }
4646 } ( )
4747
48+ #if swift(>=6.2)
4849 @available ( iOS 26 . 0 , * )
4950 public var cornerConfiguration : UICornerConfiguration ? {
5051 get { _cornerConfiguration as? UICornerConfiguration }
5152 set { _cornerConfiguration = newValue }
5253 }
54+ #endif
5355
5456 private var _cornerConfiguration : Any ?
5557
@@ -384,11 +386,13 @@ public class SurfaceView: UIView {
384386 }
385387
386388 private func updateCornerRadius( ) {
389+ #if swift(>=6.2)
387390 if #available( iOS 26 . 0 , * ) , let cornerConfiguration = appearance. cornerConfiguration {
388391 containerView. cornerConfiguration = cornerConfiguration
389392 containerView. layer. masksToBounds = true
390393 return
391394 }
395+ #endif
392396 containerView. layer. cornerRadius = appearance. cornerRadius
393397 guard containerView. layer. cornerRadius != 0.0 else {
394398 containerView. layer. masksToBounds = false
You can’t perform that action at this time.
0 commit comments