UIKit and AppKit controls for building native Microsoft experiences
Перейти к файлу
brentpe d8548c1381
Add new ColorProviding protocol for Mac Fluent colors (#1758) (#1759)
* Add new ColorProviding protocol for Mac Fluent colors

* Modify TestColorViewController to test the new protocol and sort vars

* Apply shorthand for getters based on feedback

* Fix-up spacing

* Remove unnecessary logic from test viewcontroller overrides

* Use inference for the useColorProvider var declaration in the test viewcontroller

* Suppress explicit_type_interface Lint warnings on static vars by declaring NSColors vs. using type inference
2023-05-25 15:06:29 -07:00
.github Update binary change hint to be a link to the wiki (#1638) 2023-03-10 01:23:55 +00:00
apple/FluentUI-All.xcworkspace remove color asset catalog from iOS resource bundle (#1544) 2023-02-06 12:11:21 -08:00
ios Add accessibilityIdentifier to BottomCommandingController's more button (#1743) (#1746) 2023-05-12 16:18:47 -04:00
macos Add new ColorProviding protocol for Mac Fluent colors (#1758) (#1759) 2023-05-25 15:06:29 -07:00
public Basic support for Swift Package Manager (#631) 2021-07-15 13:01:41 -07:00
scripts [FHL] Add script to generate lib binary change breakdown (#1589) 2023-02-21 13:13:04 -08:00
.gitignore Basic support for Swift Package Manager (#631) 2021-07-15 13:01:41 -07:00
.swiftlint.yml address all the swiftlint errors (#1129) 2022-08-03 14:59:45 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-03-24 14:48:14 -07:00
CONTRIBUTING.md separate out Contributing guide from ReadMe.md . (#961) 2022-04-08 12:01:19 -07:00
FluentUI.nuspec [Package Management] Enable internal NuGet publishing pipeline (#23) 2020-04-20 16:53:48 -07:00
LICENSE Initial LICENSE commit 2020-03-24 14:48:16 -07:00
MicrosoftFluentUI.podspec [main_0.14] Bumping FluentUI Apple to 0.14.2 (#1681) 2023-03-31 20:27:09 +00:00
Package.swift Remove dependencies to old Resources target (#1656) 2023-03-21 10:12:03 -07:00
README.md Updating swift version to 5.7.1 (#1588) 2023-02-17 18:00:01 +00:00
SECURITY.md Initial SECURITY.md commit 2020-03-24 14:48:19 -07:00

README.md

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 14+ or macOS 10.15+
  • Xcode 14.1+
  • Swift 5.7.1+

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

import FluentUI

For Objective-C

#import <FluentUI/FluentUI-Swift.h>

List of Available Controls

For more platform-specific information, please see the iOS readme file and the the macOS readme file.

Changelog

We use GitHub Releases to manage our releases, including the changelog between every release. You'll find a complete list of additions, fixes, and changes on the Releases page.

License

All files on the FluentUI Apple GitHub repository are subject to the MIT license. Please read the LICENSE file at the root of the project.

Usage of the logos and icons referenced in FluentUI Apple is subject to the terms of the assets license agreement.