This file contains 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
class Technology { | |
private(set) var name: String | |
init(_ name: String) { | |
self.name = name | |
} | |
func change(name: String) -> Technology { | |
let newPerson = Technology(name) | |
return newPerson |
This file contains 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 var isNavigationHidden: Bool = false | |
var navButtonTitle: String { | |
isNavigationHidden == true ? "Show navigation" : "Hide navigation" | |
} | |
var body: some View { | |
NavigationView { |