mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
BugFix: Janky Animation in the calendar view
This commit is contained in:
parent
4f82ce417e
commit
c34cdfc864
6 changed files with 31 additions and 30 deletions
|
|
@ -16,14 +16,23 @@ let batterySneakSize: CGSize = .init(width: 160, height: 1)
|
|||
|
||||
let openNotchSize: CGSize = .init(width: 640, height: 190)
|
||||
private let minimalisticBaseOpenNotchSize: CGSize = .init(width: 420, height: 180)
|
||||
private let minimalisticLyricsExtraHeight: CGFloat = 30
|
||||
private let minimalisticLyricsExtraHeight: CGFloat = 40
|
||||
|
||||
@MainActor
|
||||
var minimalisticOpenNotchSize: CGSize {
|
||||
var size = minimalisticBaseOpenNotchSize
|
||||
|
||||
if Defaults[.enableLyrics] {
|
||||
size.height += minimalisticLyricsExtraHeight
|
||||
}
|
||||
|
||||
let reminderCount = ReminderLiveActivityManager.shared.activeWindowReminders.count
|
||||
if reminderCount > 0 {
|
||||
let reminderHeight = ReminderLiveActivityManager.additionalHeight(forRowCount: reminderCount)
|
||||
size.height += reminderHeight
|
||||
size.height += ReminderLiveActivityManager.listTopPadding
|
||||
size.height += ReminderLiveActivityManager.listBottomPadding - ReminderLiveActivityManager.baselineMinimalisticBottomPadding
|
||||
}
|
||||
|
||||
return size
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue