Update onboarding

This commit is contained in:
Hariharan Mudaliar 2026-03-05 16:24:06 +05:30
commit 5accee5d02
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
6 changed files with 78 additions and 81 deletions

View file

@ -786,7 +786,7 @@ extension Defaults.Keys {
static let lockScreenWeatherRefreshInterval = Key<TimeInterval>("lockScreenWeatherRefreshInterval", default: 30 * 60)
static let lockScreenWeatherShowsLocation = Key<Bool>("lockScreenWeatherShowsLocation", default: true)
static let lockScreenWeatherShowsSunrise = Key<Bool>("lockScreenWeatherShowsSunrise", default: true)
static let lockScreenWeatherWidgetStyle = Key<LockScreenWeatherWidgetStyle>("lockScreenWeatherWidgetStyle", default: .circular)
static let lockScreenWeatherWidgetStyle = Key<LockScreenWeatherWidgetStyle>("lockScreenWeatherWidgetStyle", default: .inline)
static let lockScreenWeatherTemperatureUnit = Key<LockScreenWeatherTemperatureUnit>("lockScreenWeatherTemperatureUnit", default: .celsius)
static let lockScreenWeatherShowsAQI = Key<Bool>("lockScreenWeatherShowsAQI", default: true)
static let lockScreenWeatherAQIScale = Key<LockScreenWeatherAirQualityScale>("lockScreenWeatherAQIScale", default: .us)
@ -1078,7 +1078,7 @@ extension Defaults.Keys {
static let enableMinimalisticUI = Key<Bool>("enableMinimalisticUI", default: false)
// MARK: Lyrics Feature
static let enableLyrics = Key<Bool>("enableLyrics", default: true)
static let enableLyrics = Key<Bool>("enableLyrics", default: false)
// MARK: Notes Feature
static let enableNotes = Key<Bool>("enableNotes", default: false)

View file

@ -395,11 +395,16 @@ class DynamicIslandViewModel: NSObject, ObservableObject {
}
}
private var helloCloseScheduled = false
func closeHello() {
guard !helloCloseScheduled else { return }
helloCloseScheduled = true
DispatchQueue.main.asyncAfter(deadline: .now() + 3.5) { [weak self] in
self?.coordinator.firstLaunch = false
withAnimation(self?.animationLibrary.animation) {
self?.close()
guard let self else { return }
self.coordinator.firstLaunch = false
withAnimation(self.animationLibrary.animation) {
self.close()
}
}
}