@swiftbrowser/swift 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,11 +75,16 @@ nonisolated extension View {
|
|
|
75
75
|
_GridCellHintView(content: self, style: ["gridCellAnchor": .object(["x": .number(anchor.x), "y": .number(anchor.y)])])
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
///
|
|
79
|
-
public func gridColumnAlignment(_ guide: HorizontalAlignment) -> some View {
|
|
78
|
+
/// Aligns every cell of this cell's column (unless a cell has its own `gridCellAnchor`).
|
|
79
|
+
public func gridColumnAlignment(_ guide: HorizontalAlignment) -> some View {
|
|
80
|
+
_GridCellHintView(content: self, style: ["gridColumnAlignment": .string(guide.name)])
|
|
81
|
+
}
|
|
80
82
|
|
|
81
|
-
///
|
|
82
|
-
|
|
83
|
+
/// Keeps a flexible full-span cell (a `Divider`, a `Color`) from widening the grid:
|
|
84
|
+
/// it takes the columns' width instead. Only `.horizontal` has an effect.
|
|
85
|
+
public func gridCellUnsizedAxes(_ axes: Axis.Set) -> some View {
|
|
86
|
+
_GridCellHintView(content: self, style: ["gridCellUnsizedAxes": .bool(axes.contains(.horizontal))])
|
|
87
|
+
}
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
// MARK: - GridItem
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftbrowser/swift",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "The SwiftBrowser Swift package (the SwiftUI shim, Charts, SwiftData and FoundationBridge) as an npm package, so @swiftbrowser/cli builds apps against the exact version it ships with.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|