Skip to content

Instantly share code, notes, and snippets.

View mferak's full-sized avatar

Michal Ferak mferak

View GitHub Profile
@mferak
mferak / SegmentedPicker.swift
Created March 29, 2025 19:45
SegmentedPicker in style of Apple's newer apps such as Photos
import SwiftUI
struct SegmentedPicker: View {
@State var selectedValue: PickerExampleValue
@Namespace var pickerAnimation
@Environment(\.accessibilityReduceMotion) private var reduceMotion
var body: some View {
HStack {
ForEach(PickerExampleValue.allCases) { value in