- Download Pro or Free for Web Zip archive from Downloads page
- Unarchive the Zip archive and copy
webfonts/fa-*.ttf
to your project - Set up custom fonts by following Apple's official article Applying Custom Fonts to Text
- Go to Project > Package Dependencies and click + button.
- Paste the project URL: https://github.com/ngs/fontawesome-swiftui
import SwiftUI
import FontAwesome
struct ContentView: View {
var body: some View {
FontAwesomeIcon(.flag, size: 40, style: .solid, pro: true)
}
}
MIT. See LICENSE