Skip to content

Instantly share code, notes, and snippets.

@tyirvine
Created October 25, 2020 23:29
Show Gist options
  • Save tyirvine/934f60e4791d110193edfbfd43614ff9 to your computer and use it in GitHub Desktop.
Save tyirvine/934f60e4791d110193edfbfd43614ff9 to your computer and use it in GitHub Desktop.
Example of what not to do in SwiftUI
import SwiftUI
// Main View
struct ContentView: View {
var body: some View {
VStack(alignment: /*@START_MENU_TOKEN@*/ .center/*@END_MENU_TOKEN@*/, spacing: /*@START_MENU_TOKEN@*/nil/*@END_MENU_TOKEN@*/, content: {
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
Text("I love Turtles")
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment