Custom NavigationView style
Some image
Hello everybody, today we will talk about custom NavigationViewStyle.
import SwiftUI
struct ContentView: View {
@State var kek: String = "KEEEEK"
var body: some View {
NavigationView {
Text("some text")
}
.navigationViewStyle(DefaultNavigationViewStyle())
}
}
If we'll look into documentationm we doesn't see any method in protocol NavigationViewStyle
, but if we implemented this method in class
Some interresting thing
Some shits happend tho
import SwiftUI struct ContentView: View { @State var kek: String = "KEEEEK" var body: some View { NavigationView { Text("some text") } .navigationViewStyle(DefaultNavigationViewStyle()) if some != lol { print("kek") } } func someFunc() => String { return "SOME BIG TEXT" } }
Some warning text some shit and etc other
Some info
information