UIKit and AppKit controls for building native Microsoft experiences
Перейти к файлу
Mike Schreiber e517660ea0
Fix nav bar and colors in main_0.2 branch (#798)
* Fix nav bar and colors in main_0.1 branch (#795)

* Update `MSFNavigationBar` for iOS 15 (#747)

* Update `MSFNavigationBar` for iOS 15

* Fix appearance of test slideover drawer

* Fix build with `#available` tags, and root view

* Adding part of #747 for `changeStyleContinuously`
2021-11-12 16:01:31 -08:00
.ado Removing SWIFT_REFLECTION_METADATA_LEVEL override to none. (#636) 2021-07-19 13:49:25 -07:00
.github Adding swiftLint as a build step in CI (#486) 2021-03-30 13:12:55 -07:00
apple Basic support for Swift Package Manager (#631) 2021-07-15 13:01:41 -07:00
ios Fix nav bar and colors in main_0.2 branch (#798) 2021-11-12 16:01:31 -08:00
macos Bumping version (#789) 2021-11-05 14:34:11 -07:00
public Basic support for Swift Package Manager (#631) 2021-07-15 13:01:41 -07:00
scripts Replace fatalError with preconditionFailure (#647) 2021-07-23 14:48:57 -07:00
.gitignore Basic support for Swift Package Manager (#631) 2021-07-15 13:01:41 -07:00
.swiftlint.yml Adding swiftLint as a build step in CI (#486) 2021-03-30 13:12:55 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-03-24 14:48:14 -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 Bumping version (#789) 2021-11-05 14:34:11 -07:00
Package.swift Basic support for Swift Package Manager (#631) 2021-07-15 13:01:41 -07:00
README.md Update readme.md (#598) 2021-06-08 17:07:24 -07: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 Carthage Compatible CocoaPods Compatible Platform

Getting Started

Install and use FluentUI

Requirements

  • iOS 13+ or macOS 10.14+
  • Xcode 11+
  • Swift 5.0+

Using Carthage

To integrate FluentUI using Carthage, specify it in your Cartfile:

github "Microsoft/fluentui-apple" ~> X.X.X

then follow the Carthage integration steps to add the FluentUI.framework into your Xcode project

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.
  • Move the relevant FluentUI.xcodeproj into your Xcode project depending on which platform you want to support.
  • In Xcode select your project -> your target -> General -> Embedded Binaries -> add FluentUI.framework.

Swift Package Manager

As of this writing, the version of Swift Package Manager shipped with the latest Xcode does not support packages that require resource bundles. As Fluent UI Apple does require resource bundles, we do not currently support Swift Package Manager.

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.h>

Contributing

Post bug reports, feature requests, and questions in Issues.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

CocoaPods Setup

If you are using Apple Silicon M1 machine then you need to install ffi in addition to CocoaPods. More details about the issue can be found here.

sudo arch -x86_64 gem install ffi

To execute any pod command on M1 machine you need to specify the architecture of the machine explicitly

arch -x86_64 pod lib lint

Developing in the repo

Fluent UI Apple requires all pull requests to come from forks of the repository. Please see Fork a Repo - GitHub Help for more details on how to set up a fork of Microsoft/fluentui-apple, keep it up-to-date, and submit pull requests back to this repository.

Fluent UI Apple doesn't have any external code dependencies, so developing in the repository is as easy as launching the appropriate Xcode project or workspace and building and running a test app.

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

Swift Lint

This project uses SwiftLint to automatically lint our Swift code for common errors. Please install it when developing in this repo by following the SwiftLint Installation Instructions.

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.