This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct TimeCycleScreen: View { | |
@State private var selectedHour: Int = 7 | |
@State private var selectedMinute: Int = 30 | |
@State private var isAM: Bool = true | |
@State private var timeOfDay: TimeOfDay = .morning | |
@State private var celestialProgress: CGFloat = 0.3 | |
@State private var sliderValue: Double = 7.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct LightDarkMode: View { | |
@State private var isDarkMode: Bool = false | |
@State private var animationPhase: Double = 0 | |
@State private var isPressed: Bool = false | |
let timer = Timer.publish(every: 0.05, on: .main, in: .common).autoconnect() | |
var body: some View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct CurvedSheed: View { | |
@Binding var isOpen: Bool | |
@State private var sheetOffset: CGFloat = 1000 | |
@State private var backgroundOpacity: Double = 0 | |
var body: some View { | |
ZStack { | |
// Background overlay | |
Color.black |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct WaveformAnimation: View { | |
@State var waveformData: [CGFloat] = Array(repeating: 0, count: 40) | |
@State var startAnimation: Bool = false | |
@State var color: Color = Color(hex: "A28497") | |
var body: some View { | |
HStack(spacing: 4) { | |
ForEach(Array(waveformData.enumerated()), id: \.offset) { index, height in |