Swiftpack.co - FromAtom/LatoSwift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by FromAtom.
FromAtom/LatoSwift 0.0.2
Easy to use Lato font
⭐️ 2
🕓 2 years ago
iOS
.package(url: "https://github.com/FromAtom/LatoSwift.git", from: "0.0.2")

LatoSwift

Use Lato font in your UIKit/SwiftUI projects

Usage

for UIKit

import LatoSwift

let 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

import SwiftUI
import LatoSwift

struct 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

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, only the LatoSwift license will be processed, so please add the Lato font license manually using license_plist.yml.

GitHub

link
Stars: 2
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics