Scroll enabled for large display zoom only (#1009)

This commit is contained in:
Nathan Mattes 2023-04-13 22:39:01 +02:00
parent 4066b26030
commit e6e691b7aa
1 changed files with 17 additions and 15 deletions

View File

@ -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 {