Make some changes: fixes and stuff

This commit is contained in:
Hariharan Mudaliar 2025-10-17 19:59:40 +05:30
commit d0448ec2cb
10 changed files with 209 additions and 150 deletions

View file

@ -174,6 +174,15 @@ class DynamicIslandViewModel: NSObject, ObservableObject {
}
}
func closeForLockScreen() {
let targetSize = getClosedNotchSize(screen: screen)
withAnimation(.none) {
notchSize = targetSize
closedNotchSize = targetSize
notchState = .closed
}
}
func closeHello() {
DispatchQueue.main.asyncAfter(deadline: .now() + 3.5) { [weak self] in
self?.coordinator.firstLaunch = false