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