Created
June 11, 2019 19:39
-
-
Save liorazi/fa31a018a9a5782feb5bb58de3f68867 to your computer and use it in GitHub Desktop.
SwiftUI monospaced example
This file contains 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 PlaygroundSupport | |
import SwiftUI | |
struct LiveView: View { | |
var body: some View { | |
VStack(alignment: .leading) { | |
Text("Hello World 999") | |
.font(.system(.title, design: .monospaced)) | |
Text("Hello World 111") | |
.font(.system(.title, design: .monospaced)) | |
.color(.blue) | |
} | |
} | |
} | |
PlaygroundPage.current.liveView = UIHostingController(rootView: LiveView()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment