https://github.com/raviseta/swiftui-text
SwiftUI demo for Text Property.
https://github.com/raviseta/swiftui-text
swiftui text
Last synced: about 2 months ago
JSON representation
SwiftUI demo for Text Property.
- Host: GitHub
- URL: https://github.com/raviseta/swiftui-text
- Owner: raviseta
- Created: 2023-02-02T08:33:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T08:45:56.000Z (over 3 years ago)
- Last Synced: 2025-04-12T12:59:24.989Z (about 1 year ago)
- Topics: swiftui, text
- Language: Swift
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwiftUI
Simple SwiftUI project to demostrate Text properties.
## Code
```
struct ContentView: View {
var body: some View {
Text("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard.")
.foregroundColor(.red)
.background(.yellow)
.fontWeight(.bold)
.font(.system(size: 35))
.multilineTextAlignment(.center)
.lineLimit(3)
.truncationMode(.head)
.lineSpacing(15)
.padding()
}
}
```
### Output
