Skip to content

Instantly share code, notes, and snippets.

View Daggerpov's full-sized avatar
💭
Coding Spawn & Quote Droplet (iOS apps and their back-ends)

Daniel Agapov Daggerpov

💭
Coding Spawn & Quote Droplet (iOS apps and their back-ends)
View GitHub Profile
@Amzd
Amzd / ColorPicker.swift
Last active January 25, 2025 08:49
What SwiftUI's ColorPicker should have been.
import SwiftUI
@available(iOS 14.0, *)
public struct ColorPickerWithoutLabel: UIViewRepresentable {
@Binding var selection: Color
var supportsAlpha: Bool = true
public init(selection: Binding<Color>, supportsAlpha: Bool = true) {
self._selection = selection
self.supportsAlpha = supportsAlpha