• Stars
    star
    140
  • Rank 261,473 (Top 6 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple and cross-platform SFSymbol picker for SwiftUI

SymbolPicker

A simple and cross-platform SFSymbol picker for SwiftUI

Features

SymbolPicker provides a simple and cross-platform interface for picking a SFSymbol. SymbolPicker is implemented with SwiftUI and supports iOS, macOS, tvOS, watchOS and visionOS platforms.

Usage

Requirements

  • iOS 15.0+ / macOS 12.0+ / tvOS 15.0+ / watchOS 8.0+ / visionOS 1.0+
  • Xcode 13.0+
  • Swift 5.0+

Installation

SymbolPicker is available as a Swift Package. Add this repo to your project through Xcode GUI or Package.swift.

dependencies: [
    .package(url: "https://github.com/xnth97/SymbolPicker.git", .upToNextMajor(from: "1.5.0"))
]

Example

It is suggested to use SymbolPicker within a sheet.

import SwiftUI
import SymbolPicker

struct ContentView: View {
    @State private var iconPickerPresented = false
    @State private var icon = "pencil"

    var body: some View {
        Button {
            iconPickerPresented = true
        } label: {
            HStack {
                Image(systemName: icon)
                Text(icon)
            }
        }
        .sheet(isPresented: $iconPickerPresented) {
            SymbolPicker(symbol: $icon)
        }
    }
}

TODO

  • Categories support
  • Multiplatform support
  • Platform availability support
  • Codegen from latest SF Symbols
  • Nullable symbol

License

SymbolPicker is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

fluentui-emoji.swift

A type-safe auto-generated Swift wrapper around fluentui-emoji
Swift
21
star
2

AccessoryKit

A customizable, expandable, and easy-to-use InputAccessoryView component for iOS.
Swift
13
star
3

TrophyKit

An animated trophy banner that looks like Xbox achievement ๐Ÿ†
Swift
13
star
4

QualityKit

An iOS application to draw control charts
Objective-C
9
star
5

WePeiYang-iOS

The iOS client of Tianjin University.
Swift
9
star
6

AssetKit

A command line tool and Swift package for generating image assets for ๐ŸŽ platforms.
Swift
8
star
7

xnth97.github.io

My Blog Site
HTML
5
star
8

Nova

A lightweight HTML container for iOS
Objective-C
5
star
9

magic-conch

A Telegram bot powered by Azure Cognitive Services
Go
4
star
10

Wenjin-iOS

The iOS client of WENJIN community.
Objective-C
4
star
11

biji

Unofficial Bing wallpaper app for macOS built in SwiftUI
Swift
4
star
12

MDSwipePageView

A Material Design style page view
Objective-C
3
star
13

AppIconKit

An app icon/image assets generator for applications.
TypeScript
3
star
14

how

Copilot for your terminal, powered by Azure Cognitive Services
Go
2
star
15

WePeiYang-ReactNative

An experimental implementation of WePeiYang in React Native
JavaScript
2
star
16

ciains

A modern 3DS ROM installer
TypeScript
1
star
17

gdscore

A scoreboard tool for GuanDan game
Dart
1
star
18

openchip8

An open source CHIP-8 emulator written in Swift.
Swift
1
star
19

xnth97

My profile
1
star
20

plcrashreport-decoder

A decoder for iOS/macOS crash reports generated by PLCrashReporter
JavaScript
1
star
21

Data-Structure-Notes

Some notes while learning data structure
Swift
1
star