diff --git a/yobble.xcodeproj/project.pbxproj b/yobble.xcodeproj/project.pbxproj index 80ac604..a21b427 100644 --- a/yobble.xcodeproj/project.pbxproj +++ b/yobble.xcodeproj/project.pbxproj @@ -420,7 +420,7 @@ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 16; + IPHONEOS_DEPLOYMENT_TARGET = 15; LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 11; @@ -460,7 +460,7 @@ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 16; + IPHONEOS_DEPLOYMENT_TARGET = 15; LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 11; diff --git a/yobble/Views/Chat/PrivateChatView.swift b/yobble/Views/Chat/PrivateChatView.swift index ca6e8bf..f3ee18b 100644 --- a/yobble/Views/Chat/PrivateChatView.swift +++ b/yobble/Views/Chat/PrivateChatView.swift @@ -242,17 +242,30 @@ struct PrivateChatView: View { .frame(width: 36, height: 36) ZStack(alignment: .bottomTrailing) { - TextField(inputTab.placeholder, text: $draftText, axis: .vertical) - .lineLimit(1...4) - .focused($isComposerFocused) - .submitLabel(.send) - .disabled(currentUserId == nil) - .onSubmit { sendCurrentMessage() } - .padding(.top, 10) - .padding(.leading, 12) - .padding(.trailing, 44) - .padding(.bottom, 10) - .frame(maxWidth: .infinity, minHeight: 40, alignment: .bottomLeading) + if #available(iOS 16.0, *) { + TextField(inputTab.placeholder, text: $draftText, axis: .vertical) + .lineLimit(1...4) + .focused($isComposerFocused) + .submitLabel(.send) + .disabled(currentUserId == nil) + .onSubmit { sendCurrentMessage() } + .padding(.top, 10) + .padding(.leading, 12) + .padding(.trailing, 44) + .padding(.bottom, 10) + .frame(maxWidth: .infinity, minHeight: 40, alignment: .bottomLeading) + } else { + TextField(inputTab.placeholder, text: $draftText) + .focused($isComposerFocused) + .submitLabel(.send) + .disabled(currentUserId == nil) + .onSubmit { sendCurrentMessage() } + .padding(.top, 10) + .padding(.leading, 12) + .padding(.trailing, 44) + .padding(.bottom, 10) + .frame(maxWidth: .infinity, minHeight: 40, alignment: .bottomLeading) + } Button(action: { }) { // переключатель на стикеры Image(systemName: "face.smiling")