fluentui-emoji.swift

A type-safe auto-generated Swift wrapper around fluentui-emoji.

Usage

Requirements

  • iOS 13+
  • macOS 10.15+
  • tvOS 13+
  • watchOS 6+

Installation

fluentui-emoji.swift is distributed as a Swift package. Add this repo to your project through Xcode GUI or Package.swift.

dependencies: [
    .package(url: "https://github.com/xnth97/fluentui-emoji.swift.git", .upToNextMajor(from: "1.0.0"))
]

Example

import FluentUIEmoji

/// AppKit or UIKit
let image = FluentUIEmoji.smilingFace

/// SwiftUI
FluentUIEmojiSwiftUI.smilingFace
    .resizable()
    .frame(width: 128, height: 128)

Codegen

Run codegen script to sync with fluentui-emoji repo updates.

cd Codegen
npm install --save
node index.js

TODO

  • SwiftUI support
  • Build as XCAssets
  • Load on demand
  • Codegen testing
  • Categories
  • Picker GUI

License

fluentui-emoji.swift is available under the MIT license. See the LICENSE file for more info.

GitHub

View Github