Skip to content

Instantly share code, notes, and snippets.

View mykolaharmash's full-sized avatar

Mykola Harmash mykolaharmash

View GitHub Profile
@mykolaharmash
mykolaharmash / ColorSlider.swift
Last active May 29, 2025 20:27
Color Slider Component (SwiftUI)
// A Color Slider that is similar to one in
// iOS 18+ when configuring a tinted Home Screen
// Full video-walktrough on building this component: https://youtu.be/VFVyN5hNW24
import SwiftUI
fileprivate let SLIDER_HEIGHT = 34.0
fileprivate let KNOB_DIAMETER = SLIDER_HEIGHT + 4.0
struct ColorSlider: View {
//
// ParticlesView.swift
//
// Created by Mykola Harmash on 14.07.25.
//
import SwiftUI
fileprivate struct Particle {
let birthDate: Date = .now
//
// CircularProgressBarView.swift
// FastingTimer
//
// Created by Mykola Harmash on 09.08.25.
//
import SwiftUI
struct CircularProgressBarView: View {