Scroll enabled for large display zoom only (#1009)
This commit is contained in:
parent
4066b26030
commit
e6e691b7aa
|
@ -21,6 +21,7 @@ struct ComposeContentToolbarView: View {
|
|||
static var toolbarHeight: CGFloat { 48 }
|
||||
|
||||
@ObservedObject var viewModel: ViewModel
|
||||
let isZoomed = (UIScreen.main.scale != UIScreen.main.nativeScale)
|
||||
|
||||
@State private var showingLanguagePicker = false
|
||||
@State private var didChangeLanguage = false
|
||||
|
@ -30,7 +31,7 @@ struct ComposeContentToolbarView: View {
|
|||
|
||||
var body: some View {
|
||||
HStack(spacing: .zero) {
|
||||
ScrollView(.horizontal) {
|
||||
ScrollView(isZoomed ? .horizontal : []) {
|
||||
HStack(spacing: .zero) {
|
||||
ForEach(ComposeContentToolbarView.ViewModel.Action.allCases, id: \.self) { action in
|
||||
switch action {
|
||||
|
@ -171,6 +172,7 @@ struct ComposeContentToolbarView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Spacer()
|
||||
let count: Int = {
|
||||
if viewModel.isContentWarningActive {
|
||||
|
|
Loading…
Reference in New Issue