Skip to content

Commit 8669cb6

Browse files
committed
renamed size Parameter of SheetImplementation Protocol to sheetSize
1 parent 7df381c commit 8669cb6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Sources/AppKitBackend/AppKitBackend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ public final class AppKitBackend: AppBackend {
17731773
}
17741774

17751775
public final class NSCustomSheet: NSCustomWindow, NSWindowDelegate, SheetImplementation {
1776-
public var size: SIMD2<Int> {
1776+
public var sheetSize: SIMD2<Int> {
17771777
guard let size = self.contentView?.frame.size else {
17781778
return SIMD2(x: 0, y: 0)
17791779
}

Sources/SwiftCrossUI/Backend/AppBackend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ extension AppBackend {
807807
}
808808

809809
public protocol SheetImplementation {
810-
var size: SIMD2<Int> { get }
810+
var sheetSize: SIMD2<Int> { get }
811811
}
812812

813813
extension AppBackend {

Sources/SwiftCrossUI/Views/Modifiers/SheetModifier.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct SheetModifier<Content: View, SheetContent: View>: TypeSafeView {
8080

8181
let dryRunResult = children.sheetContentNode.update(
8282
with: sheetContent(),
83-
proposedSize: sheet.size,
83+
proposedSize: sheet.sheetSize,
8484
environment: sheetEnvironment,
8585
dryRun: true
8686
)
@@ -89,7 +89,7 @@ struct SheetModifier<Content: View, SheetContent: View>: TypeSafeView {
8989

9090
let _ = children.sheetContentNode.update(
9191
with: sheetContent(),
92-
proposedSize: sheet.size,
92+
proposedSize: sheet.sheetSize,
9393
environment: sheetEnvironment,
9494
dryRun: false
9595
)

Sources/UIKitBackend/UIKitBackend+Sheet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ extension UIKitBackend {
116116
}
117117

118118
public final class CustomSheet: UIViewController, SheetImplementation {
119-
public var size: SIMD2<Int> {
119+
public var sheetSize: SIMD2<Int> {
120120
let size = view.frame.size
121121
return SIMD2(x: Int(size.width), y: Int(size.height))
122122
}

0 commit comments

Comments
 (0)