This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| var body: some View { | |
| NavigationStack { | |
| NavigationLink("Next") { | |
| TestView() | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| @State private var isSheetPresented = false | |
| var body: some View { | |
| Button("Open Sheet") { | |
| isSheetPresented = true | |
| } | |
| .sheet(isPresented: $isSheetPresented) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| @StateObject private var someClass = SomeClass(someInjectedFunction: { _ in }) | |
| var body: some View { | |
| Text("Example") | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ContentView.swift | |
| // EnvironmentExample | |
| // | |
| // Created by VAndrJ on 4/18/25. | |
| // | |
| import SwiftUI | |
| enum Destination { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MRE.swift | |
| // | |
| // Created by VAndrJ on 5/7/25. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { | |
| @State private var isLogined = false |
OlderNewer