Update the timeline media QuickLook modifier. (#3593)

Not hooked up to any flows yet.
This commit is contained in:
Doug
2024-12-09 15:23:12 +00:00
committed by GitHub
parent 7254b6e029
commit b5605a52e3
31 changed files with 1052 additions and 20 deletions
+3
View File
@@ -75,6 +75,7 @@ enum UserAvatarSizeOnScreen {
case knockingUsersBannerStack
case knockingUserBanner
case knockingUserList
case mediaPreviewDetails
var value: CGFloat {
switch self {
@@ -110,6 +111,8 @@ enum UserAvatarSizeOnScreen {
return 32
case .knockingUserList:
return 52
case .mediaPreviewDetails:
return 32
}
}
}
+1 -1
View File
@@ -40,6 +40,6 @@ extension Date {
/// A fixed date used for mocks, previews etc.
static var mock: Date {
Calendar.current.startOfDay(for: .now).addingTimeInterval((9 * 60 * 60) + (41 * 60)) // 9:41 am
DateComponents(calendar: .current, year: 2007, month: 1, day: 9, hour: 9, minute: 41).date ?? .now
}
}