Created
October 25, 2020 23:29
-
-
Save tyirvine/934f60e4791d110193edfbfd43614ff9 to your computer and use it in GitHub Desktop.
Example of what not to do in SwiftUI
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 | |
// 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