Skip to content

Instantly share code, notes, and snippets.

@karigrooms
Last active February 17, 2021 18:00
Show Gist options
  • Save karigrooms/25f4133a88c855b3c2d49ab46d721de2 to your computer and use it in GitHub Desktop.
Save karigrooms/25f4133a88c855b3c2d49ab46d721de2 to your computer and use it in GitHub Desktop.
Simple SwiftUI example for Lessons in SwiftUI blog post
import SwiftUI
struct SimpleSwiftUIView: View {
var body: some View {
VStack(alignment: .center, spacing: 8) {
Text("Heading Base")
.headingBase() // internal modifier
Button("Primary Button", action: {})
.buttonPrimaryStyle() // internal modifer
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment