|
|
|
|
|
by BakaRakuda
1913 days ago
|
|
You can literally create the app described in his quote in about 2 minutes flat with the following lines of code... import SwiftUI
@main
struct FooApp: App {
@State private var isClicked: Bool = false
var body: some Scene {
WindowGroup {
VStack {
Button("Click me!") { isClicked.toggle() }
if isClicked { Text("Hello, World!") }
}.frame(width: 640, height: 480)
}
}
}
|
|