Skip to content

Commit c5291d7

Browse files
committed
Fix a build error on Xcode 16
1 parent aa5e372 commit c5291d7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/SurfaceView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)