Use FontAwesome 5 with SwiftUI

Use FontAwesome 5 with SwiftUI

Use FontAwesome 5 in your SwiftUI at ease: FontAwesome 5 free versions; Type safe icon enums; Support 3 styles: regular, brand, solid; Support iOS, macOS, tvOS, watchOS

FontAwesomeSwiftUI

Use FontAwesome 5 in your SwiftUI at ease.

  • FontAwesome 5 free versions
  • Type safe icon enums
  • Support 3 styles: regular, brand, solid
  • Support iOS, macOS, tvOS, watchOS

Usage

For iOS, to register fonts programmatically instead of declaring in Info.plist, you can use below register method.

FontAwesome.register()

For macOS, you only need to declare fonts path, copy below to Info.plist

<key>ATSApplicationFontsPath</key>
<string>.</string>

To find which icon name is for which style, consult fontawesome.com website

Text(AwesomeIcon.aws.rawValue)
    .font(.awesome(style: .brand, size: 20))
    .foregroundColor(.white)

Installation

FontAwesomeSwiftUI is available through Swift Package Manager.

Add FontAwesomeSwiftUI as a dependency to your Package.swift

.package(url: "https://github.com/onmyway133/FontAwesomeSwiftUI", from: "1.0.4")

FontAwesomeSwiftUI can also be installed manually. Just download and drop Sources folders in your project.

The Original Article can be found on iosexample.com

swift ui mobile-apps programming developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Hire Mobile App Developers in USA

AppClues Infotech is the best mobile app development company in New York that offers custom mobile app development & design services for Android and iOS.

Top Swift iOS App Development Company in USA

AppClues Infotech is a top Mobile App Development Company in USA building high-quality Android, iOS, and Native apps for Startups, SMBs, & Enterprises. Contact us now!

Top Mobile App Developers & Leading App Development Companies in UK

Profusely examined top Mobile App Development companies in UK with ratings & reviews to help find the best Mobile App Development solution providers.

Top Mobile App Development Company in Texas

AppClues Infotech is the best mobile app development company in New York that offers custom mobile app development & design services for Android and iOS.