Skip to content

Commit 40ba6ae

Browse files
committed
Formatting and comments
1 parent f7750d7 commit 40ba6ae

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Sources/GtkBackend/GtkBackend.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,7 @@ public final class GtkBackend: AppBackend {
15851585

15861586
return properties
15871587
}
1588+
15881589
public func createSheet(content: Widget) -> Gtk.Window {
15891590
let sheet = Gtk.Window()
15901591
sheet.setChild(content)

Sources/SwiftCrossUI/Values/PresentationDetent.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ public enum PresentationDetent: Sendable, Hashable {
77
case large
88

99
/// A detent at a custom fractional height of the available space.
10-
/// falling back to medium on iOS 15
10+
/// Falls back to medium on iOS 15.
1111
/// - Parameter fraction: A value between 0 and 1 representing the fraction of available height.
1212
case fraction(Double)
1313

1414
/// A detent at a specific fixed height in points.
15-
/// Falls back to medium on iOS 15
15+
/// Falls back to medium on iOS 15.
1616
/// - Parameter height: The height
1717
case height(Double)
1818
}

Sources/SwiftCrossUI/ViewGraph/PreferenceValues.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public struct PreferenceValues: Sendable {
2121
/// The drag indicator visibility for a sheet presentation. Applies to enclosing sheets.
2222
public var presentationDragIndicatorVisibility: Visibility?
2323

24-
/// The backgroundcolor of a sheet. Applies to enclosing sheets.
24+
/// The backgroundcolor of a sheet.
2525
public var presentationBackground: Color?
2626

2727
/// Controls whether the user can interactively dismiss enclosing sheets. Applies to enclosing sheets.

Sources/SwiftCrossUI/Views/Modifiers/PresentationModifiers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extension View {
88
/// - `.fraction` and `.height` fall back to `.medium` on iOS 15 and earlier
99
///
1010
/// - Parameter detents: A set of detents that the sheet can be resized to.
11-
/// - Returns: A view with the presentation detents preference set.
11+
/// - Returns: A view with the presentationDetents preference set.
1212
public func presentationDetents(_ detents: Set<PresentationDetent>) -> some View {
1313
preference(key: \.presentationDetents, value: Array(detents))
1414
}
@@ -21,7 +21,7 @@ extension View {
2121
/// - Supported platforms: iOS 15+, Gtk4 (ignored on unsupported platforms)
2222
///
2323
/// - Parameter radius: The corner radius in points.
24-
/// - Returns: A view with the presentation corner radius preference set.
24+
/// - Returns: A view with the presentationCornerRadius preference set.
2525
public func presentationCornerRadius(_ radius: Double) -> some View {
2626
preference(key: \.presentationCornerRadius, value: radius)
2727
}

0 commit comments

Comments
 (0)