Skip to content

microsoft/fluentui-apple

Repository files navigation

Fluent UI Apple

Fluent UI Apple contains native UIKit and AppKit controls aligned with Microsoft's Fluent UI design system.

Build Status Localization Status CocoaPod Publishing Build Status License CocoaPods Compatible Platform

Getting Started

Install and use FluentUI

Requirements

  • iOS 15+ or macOS 12+
  • Xcode 15.3+
  • Swift 5.9+

Using Swift Package Manager

To integrate FluentUI using SwiftUI, specify it as a dependency in your Xcode project or Package.swift file:

dependencies: [
    .package(url: "https://github.com/microsoft/fluentui-apple.git", .upToNextMinor(from: "X.X.X")),
],

Using CocoaPods

To get set up with CocoaPods visit their getting started guide.

To integrate FluentUI into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'MicrosoftFluentUI', '~> X.X.X'

Manual installation

  • Download the latest changes from the FluentUI for Apple repository.
  • Move the fluentui-apple folder into your project folder.
  • For iOS platform
    • Move ios/FluentUI.xcodeproj into your Xcode project.
    • In Xcode select your project -> your target -> "General" -> "Frameworks, Libraries, and Embedded Content" -> add libFluentUI.a.
    • In Xcode select your project -> your target -> "Build Phases" -> "Copy Bundle Resources" -> add FluentUIResources-ios.bundle.
  • For macOS platform
    • Move macos/xcode/FluentUI.xcodeproj into your Xcode project.
    • In Xcode select your project -> your target -> "General" -> "Frameworks, Libraries, and Embedded Content" -> add FluentUI.framework.

Import and use FluentUI

After the framework has been added you can import the module to use it:

For Swift