
Elastic Segmented Control
Segmented control whose pill stretches like liquid toward the new segment, with text that flips color exactly at the pill's edge. Tap or scrub with your finger; works as a floating tab bar too.
- selector
- tab
- motion
snippet.swift169 lines
5 files • Scroll to see all →
public struct ElasticSegment: Hashable { public let title: String public let systemImage: String? public init(_ title: String, systemImage: String? = nil) { self.title = title self.systemImage = systemImage }}Viewing: SegmentModel.swift•1 of 5