mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Janky animation
This commit is contained in:
parent
c5186c47f8
commit
6eba9eff0b
5 changed files with 66 additions and 60 deletions
|
|
@ -141,14 +141,21 @@ class ScreenRecordingManager: ObservableObject {
|
|||
updateIdleState(recording: true)
|
||||
// Trigger expanding view like music activity
|
||||
coordinator.toggleExpandingView(status: true, type: .recording)
|
||||
withAnimation(.smooth) {
|
||||
isRecording = confirmedState
|
||||
}
|
||||
} else if !confirmedState && isRecording {
|
||||
// Stopped recording - let expanding view auto-collapse naturally (like music)
|
||||
lastUpdated = Date()
|
||||
stopDurationTracking()
|
||||
updateIdleState(recording: false)
|
||||
withAnimation(.smooth) {
|
||||
isRecording = confirmedState
|
||||
}
|
||||
} else {
|
||||
isRecording = confirmedState
|
||||
}
|
||||
|
||||
isRecording = confirmedState
|
||||
print("ScreenRecordingManager: ✅ Recording state changed to \(confirmedState)")
|
||||
} else {
|
||||
print("ScreenRecordingManager: ❌ State not confirmed, keeping \(isRecording)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue