Skip to content

Fireroman/fontawesome-swiftui

 
 

Repository files navigation

FontAwesome for Swift UI

Set up

  1. Download Pro or Free for Web Zip archive from Downloads page
  2. Unarchive the Zip archive and copy webfonts/fa-*.ttf to your project
  3. Set up custom fonts by following Apple's official article Applying Custom Fonts to Text
  4. Go to Project > Package Dependencies and click + button.
  5. Paste the project URL: https://github.com/ngs/fontawesome-swiftui

Usage

import SwiftUI
import FontAwesome

struct ContentView: View {
    var body: some View {
        FontAwesomeIcon(.flag, size: 40, style: .solid, pro: true)
    }
}

License

MIT. See LICENSE

About

FontAwesome component for SwiftUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 99.9%
  • Makefile 0.1%