mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 17:51:01 +00:00
Fix issue with various editor sheets
This commit is contained in:
parent
7cef1c5786
commit
b0846c9a3d
4 changed files with 15 additions and 13 deletions
|
@ -177,13 +177,8 @@ extension StatusEditor {
|
||||||
Image(systemName: customEmojiSheetIconName)
|
Image(systemName: customEmojiSheetIconName)
|
||||||
}
|
}
|
||||||
.accessibilityLabel("accessibility.editor.button.custom-emojis")
|
.accessibilityLabel("accessibility.editor.button.custom-emojis")
|
||||||
.popover(isPresented: $isCustomEmojisSheetDisplay) {
|
.sheet(isPresented: $isCustomEmojisSheetDisplay) {
|
||||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
CustomEmojisView(viewModel: focusedSEVM)
|
||||||
CustomEmojisView(viewModel: focusedSEVM)
|
|
||||||
} else {
|
|
||||||
CustomEmojisView(viewModel: focusedSEVM)
|
|
||||||
.frame(width: 400, height: 500)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ extension StatusEditor {
|
||||||
}
|
}
|
||||||
.presentationBackground(.thinMaterial)
|
.presentationBackground(.thinMaterial)
|
||||||
.presentationCornerRadius(16)
|
.presentationCornerRadius(16)
|
||||||
.presentationDetents([.medium])
|
.presentationDetents([.medium, .large])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,12 @@ extension StatusEditor {
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundStyle(.gray)
|
.foregroundStyle(.gray)
|
||||||
}
|
}
|
||||||
}.listRowBackground(theme.primaryBackgroundColor)
|
}
|
||||||
|
#if os(visionOS)
|
||||||
|
.foregroundStyle(theme.labelColor)
|
||||||
|
#else
|
||||||
|
.listRowBackground(theme.primaryBackgroundColor.opacity(0.4))
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
.onDelete { indexes in
|
.onDelete { indexes in
|
||||||
if let index = indexes.first {
|
if let index = indexes.first {
|
||||||
|
@ -42,10 +47,14 @@ extension StatusEditor {
|
||||||
.toolbar {
|
.toolbar {
|
||||||
CancelToolbarItem()
|
CancelToolbarItem()
|
||||||
}
|
}
|
||||||
|
.listStyle(.insetGrouped)
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
.background(theme.secondaryBackgroundColor)
|
.background(.clear)
|
||||||
.navigationTitle("status.editor.drafts.navigation-title")
|
.navigationTitle("status.editor.drafts.navigation-title")
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
|
.presentationBackground(.thinMaterial)
|
||||||
|
.presentationCornerRadius(16)
|
||||||
|
.presentationDetents([.medium, .large])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,13 +34,11 @@ extension StatusEditor {
|
||||||
Image(systemName: "pencil.and.list.clipboard")
|
Image(systemName: "pencil.and.list.clipboard")
|
||||||
}
|
}
|
||||||
.accessibilityLabel("accessibility.editor.button.drafts")
|
.accessibilityLabel("accessibility.editor.button.drafts")
|
||||||
.popover(isPresented: $isDraftsSheetDisplayed) {
|
.sheet(isPresented: $isDraftsSheetDisplayed) {
|
||||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||||
draftsListView
|
draftsListView
|
||||||
.presentationDetents([.medium])
|
|
||||||
} else {
|
} else {
|
||||||
draftsListView
|
draftsListView
|
||||||
.frame(width: 400, height: 500)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue