Small improvements.
This commit is contained in:
parent
cc75340e66
commit
94dacbd0ab
|
@ -967,7 +967,7 @@
|
|||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 8;
|
||||
CURRENT_PROJECT_VERSION = 9;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"Vernissage/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = B2U9FEKYP8;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
|
@ -1004,7 +1004,7 @@
|
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 8;
|
||||
CURRENT_PROJECT_VERSION = 9;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"Vernissage/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = B2U9FEKYP8;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
|
|
|
@ -77,8 +77,9 @@ struct ComposeView: View {
|
|||
.foregroundColor(.lightGrayColor)
|
||||
}
|
||||
|
||||
TextField("Type what's on your mind", text: $text)
|
||||
TextField("Type what's on your mind", text: $text, axis: .vertical)
|
||||
.padding(8)
|
||||
.lineLimit(2...12)
|
||||
.focused($focusedField, equals: .content)
|
||||
.keyboardType(.default)
|
||||
.onFirstAppear {
|
||||
|
@ -186,6 +187,12 @@ struct ComposeView: View {
|
|||
Button {
|
||||
withAnimation(.easeInOut) {
|
||||
self.isSensitive.toggle()
|
||||
|
||||
if self.isSensitive {
|
||||
self.focusedField = .spoilerText
|
||||
} else {
|
||||
self.focusedField = .content
|
||||
}
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: self.isSensitive ? "exclamationmark.square.fill" : "exclamationmark.square")
|
||||
|
|
|
@ -33,7 +33,7 @@ struct PhotoEditorView: View {
|
|||
Section(header: Text("Accessibility")) {
|
||||
TextField("Sescription for the visually impaired", text: $description, axis: .vertical)
|
||||
.keyboardType(.default)
|
||||
.lineLimit(2...5)
|
||||
.lineLimit(3...6)
|
||||
.multilineTextAlignment(.leading)
|
||||
}
|
||||
}.listStyle(.grouped)
|
||||
|
|
Loading…
Reference in New Issue