A type-safe auto-generated Swift wrapper around fluentui-emoji.
- iOS 13+
- macOS 10.15+
- tvOS 13+
- watchOS 6+
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.2.0"))
]
import FluentUIEmoji
/// AppKit or UIKit
let image = FluentUIEmoji.smilingFace.image
/// SwiftUI
FluentUIEmoji.smilingFace.swiftUIImage
.resizable()
.frame(width: 128, height: 128)
/// Groups
LazyVGrid(columns: [GridItem(.adaptive(minimum: 64, maximum: 64))]) {
ForEach(FluentUIEmoji.emojis(for: .smileysAndEmotion)) { emoji in
emoji.swiftUIImage
.resizable()
.frame(width: 64, height: 64)
.padding()
}
}
Run codegen script to sync with fluentui-emoji repo updates.
cd Codegen
npm install --save
node index.js
- SwiftUI support
- Build as XCAssets
- Load on demand
- Codegen testing
- Categories
- Raw name
- Picker GUI
fluentui-emoji.swift is available under the MIT license. See the LICENSE file for more info.