Skip to content

Instantly share code, notes, and snippets.

@betty-godier
Last active September 13, 2022 10:53
Show Gist options
  • Save betty-godier/bc8e725dbba61b6c505ee3d5b8579ec6 to your computer and use it in GitHub Desktop.
Save betty-godier/bc8e725dbba61b6c505ee3d5b8579ec6 to your computer and use it in GitHub Desktop.
Creation of 2 private var `currentSymbol` `and condition`
import SwiftUI
struct ContentView: View {
private var currentSymbol: String?
private var conditions: String?
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment