mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-26 09:00:37 +00:00
Fix isCompact
This commit is contained in:
parent
f67163e4b0
commit
cf81054366
1 changed files with 3 additions and 4 deletions
|
@ -173,7 +173,7 @@ struct BlurOverLay: View {
|
|||
@Environment(Theme.self) private var theme
|
||||
@Environment(\.isInCaptureMode) private var isInCaptureMode: Bool
|
||||
@Environment(UserPreferences.self) private var preferences
|
||||
@Environment(\.isCompact) private var isCompact: Bool
|
||||
@Environment(\.isMediaCompact) private var isCompact: Bool
|
||||
|
||||
@Namespace var buttonSpace
|
||||
|
||||
|
@ -249,7 +249,7 @@ struct AltTextButton: View {
|
|||
let font: Font?
|
||||
|
||||
@Environment(\.isInCaptureMode) private var isInCaptureMode: Bool
|
||||
@Environment(\.isCompact) private var isCompact: Bool
|
||||
@Environment(\.isMediaCompact) private var isCompact: Bool
|
||||
@Environment(UserPreferences.self) private var preferences
|
||||
@Environment(\.locale) private var locale
|
||||
@Environment(Theme.self) private var theme
|
||||
|
@ -372,7 +372,7 @@ struct WrapperForPreview: View {
|
|||
.environment(UserPreferences.shared)
|
||||
.environment(QuickLook.shared)
|
||||
.environment(Theme.shared)
|
||||
.environment(\.isCompact, isCompact)
|
||||
.environment(\.isMediaCompact, isCompact)
|
||||
.environment(\.isInCaptureMode, isInCaptureMode)
|
||||
|
||||
Divider()
|
||||
|
@ -395,7 +395,6 @@ private struct FeaturedImagePreView: View {
|
|||
|
||||
@Environment(\.isSecondaryColumn) private var isSecondaryColumn: Bool
|
||||
@Environment(Theme.self) private var theme
|
||||
@Environment(\.isCompact) private var isCompact: Bool
|
||||
@Environment(\.isModal) private var isModal: Bool
|
||||
|
||||
private var originalWidth: CGFloat {
|
||||
|
|
Loading…
Reference in a new issue