@swiftbrowser/native 0.14.1 → 0.14.2
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftbrowser/native",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Run a @swiftbrowser/react app natively: the runtime a JavaScriptCore-hosted app needs (timers, console, fetch and the other web globals over the SwiftBrowser Native bridge), the `run` entry that renders into the native SwiftUI renderer, and the bundler that builds app.js for the Xcode target.",
|
|
6
6
|
"repository": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/core": "^7.29.7",
|
|
62
|
-
"@swiftbrowser/react": "0.14.
|
|
63
|
-
"@swiftbrowser/web": "0.14.
|
|
62
|
+
"@swiftbrowser/react": "0.14.2",
|
|
63
|
+
"@swiftbrowser/web": "0.14.2",
|
|
64
64
|
"esbuild": "^0.28.2",
|
|
65
65
|
"react-refresh": "^0.17.0"
|
|
66
66
|
},
|
|
@@ -156,9 +156,14 @@ struct NavigationScreenElement: View {
|
|
|
156
156
|
case "secondary": return .secondaryAction
|
|
157
157
|
case "bottom": return bottomPlacement
|
|
158
158
|
case "largeTitle":
|
|
159
|
-
//
|
|
159
|
+
// In the large title's place: the shim's placement, and SwiftUI's
|
|
160
|
+
// from iOS 26 (it stands in for `navigationTitle`'s text while the
|
|
161
|
+
// title is large). Before that SwiftUI has none: the bar's trailing edge.
|
|
160
162
|
#if canImport(FoundationBridge)
|
|
161
163
|
return .largeTitle
|
|
164
|
+
#elseif os(iOS)
|
|
165
|
+
if #available(iOS 26, *) { return .largeTitle }
|
|
166
|
+
return trailingPlacement
|
|
162
167
|
#else
|
|
163
168
|
return trailingPlacement
|
|
164
169
|
#endif
|