You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -116,7 +116,8 @@ If you'd like to contribute a translation, please [open a PR](https://github.com
116
116
items: [:],
117
117
isAnimated: true,
118
118
iPhonePresentationStyle: .fullScreen,
119
-
iPadPresentationStyle: .pageSheet)
119
+
iPadPresentationStyle: .pageSheet,
120
+
prefersLargeTitles: .none)
120
121
```
121
122
122
123
- forcely reload the last page behind the modal. This is useful when you need to call the [onAppear(perform:)](https://developer.apple.com/documentation/swiftui/view/onappear(perform:)) again.
@@ -291,6 +292,33 @@ let package = Package(
291
292
292
293
<br>
293
294
295
+
## - Extra
296
+
297
+
- Q: **How can I use large titles in SwiftUI?**
298
+
```swift
299
+
/// in AppMain.swift (MVI)
300
+
/// To use for route navigation, set the prefersLargeTitles parameter to true in the launch method.
/// To specify the display mode of the navigation bar title, use the navigationBarTitleDisplayMode (.line, .large, .automatic) in the SwiftUI screen of each screen.
308
+
ScrollView {
309
+
....
310
+
}
311
+
.navigationBarTitleDisplayMode(.large)
312
+
.navigationTitle("Home")
313
+
314
+
315
+
/// If you want to use it in fullSheet or customSheet,
316
+
/// Home.intent (MVI)
317
+
/// To enable large titles, set the prefersLargeTitles variable to true. To maintain the current settings, use .none.
0 commit comments