Swiftpack.co - Diehtus/ColorSchemePickerPackage as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Diehtus.
Diehtus/ColorSchemePickerPackage 0.0.2
ColorSchemePicker
⭐️ 1
🕓 1 year ago
iOS
.package(url: "https://github.com/Diehtus/ColorSchemePickerPackage.git", from: "0.0.2")

ios

A SwiftUI Picker to change the change the UIUserInterfaceStyle

A modified version of Stewart Lynch´s Picker from the video: https://www.youtube.com/watch?v=ATgOV70YcI8

Example

For default settings form implementation:

ColorSchemePicker.standard

With one default Label:

ColorSchemePicker {
    Label("Scheme", systemImage: "circle.righthalf.filled")
}

With three labels for each type (system, light, dark):

ColorSchemePicker {
    Label("Darstellung", systemImage: "circle.righthalf.filled")
} lightLabel: {
    Label("Darstellung", systemImage: "sun.max.circle")
} darkLabel: {
    Label("Darstellung", systemImage: "moon.circle")
}

GitHub

link
Stars: 1
Last commit: 49 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics