Netnyahoo
Mac용 실질적인 Chromium으로, Arc 사이드바와 Dia 폴리시를 갖추고 계정 없이 무료·오픈소스이며 광고·추적·소송에 면역이다
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
Twelve sliders you'll want to touch, for SwiftUI. One view, one enum: Scrubber(.jelly, value: $value). Liquid Glass, jelly, elastic, fluid, squiggle, thermostat, swing, mood and more.
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Twelve sliders you will want to touch, for SwiftUI: one view, one enum, one line to drop in.
Install
dependencies: [
.package(url: "https://github.com/haplollc/Scrubbers", from: "1.0.0")
]
Try it
import SwiftUI
import Scrubbers
struct VolumeRow: View {
@State private var volume = 0.6
var body: some View {
Scrubber(.elastic, value: $volume)
.scrubberIcons(low: "speaker.fill", high: "speaker.wave.3.fill")
}
}
If this is useful, a star helps others find it.
That is the whole integration. Swap .elastic for any of the twelve styles below. Each one is its own control with its own feel under the finger, not a skin on one slider: jelly that buckles when you push it, a pill that turns into a lens, a bead that pops out on a gooey neck, a thermostat you turn round its ring. They all take the same value, range and step, tick a light haptic at each detent, read to VoiceOver as a standard slider, and follow your .tint.
It started as the ruler under iOS Eras, pulled out into its own component. The other eleven recreate some of the best-loved sliders from Apple, Google, Nest, Instagram and the design community.
Watch the 35-second demo, with sound (MP4)
In Xcode: File > Add Package Dependencies and paste
https://github.com/haplollc/Scrubbers
Or in Package.swift:
dependencies: [
.package(url: "https://github.com/haplollc/Scrubbers", from: "1.0.0")
]
Then add Scrubbers to your target's dependencies.
import SwiftUI
import Scrubbers
struct VolumeRow: View {
@State private var volume = 0.6
var body: some View {
Scrubber(.elastic, value: $volume)
.scrubberIcons(low: "speaker.fill", high: "speaker.wave.3.fill")
}
}
Every style is a case of ScrubberStyle. Pass it as the first argument.
여기까지가 README 앞부분입니다. 나머지는 원문에서 읽을 수 있습니다. README 전문 보기 ↗