Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fromatom/latoswift
Easy to use Lato font
https://github.com/fromatom/latoswift
font ios lato swiftpm swiftui uikit
Last synced: about 7 hours ago
JSON representation
Easy to use Lato font
- Host: GitHub
- URL: https://github.com/fromatom/latoswift
- Owner: FromAtom
- License: mit
- Created: 2022-01-03T16:41:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-05T12:11:25.000Z (almost 3 years ago)
- Last Synced: 2024-07-30T18:27:23.251Z (3 months ago)
- Topics: font, ios, lato, swiftpm, swiftui, uikit
- Language: Swift
- Homepage:
- Size: 345 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LatoSwift
Use [Lato](https://fonts.google.com/specimen/Lato) font in your UIKit/SwiftUI projects## Usage
### for UIKit```swift
import LatoSwiftlet latoRegularFont = Lato.uiFont(ofSize: 16)
let latoBoldFont = Lato.uiFont(ofSize: 16, weight: .bold)
let latoLightItalicFont = Lato.uiFont(ofSize: 16, weight: .light, style: .italic)
```### for SwiftUI
```swift
import SwiftUI
import LatoSwiftstruct ContentView: View {
var body: some View {
VStack {
Text("Lato Regular")
.font(Lato.font(ofSize: 16))
Text("Lato Bold")
.font(Lato.font(ofSize: 16, weight: .bold))
Text("Lato Light Italic")
.font(Lato.font(ofSize: 16, weight: .light, style: .italic))
}
}
}
```## Requirements
- Xcode 13
- iOS 14## License
- Lato font is licensed under the [SIL Open Font License, Version 1.1](/Sources/LatoSwift/Fonts/LICENSE)
- LatoSwift is licensed under the [MIT](LICENSE)### License tips
If you publish an application that uses this library, you must notate the Lato font license (SIL Open Font License) and the LatoSwift license (MIT).In addition, if you are using [LicensePlist](https://github.com/mono0926/LicensePlist), only the LatoSwift license will be processed, so please add the Lato font license manually using `license_plist.yml`.