A cancel button has been placed on the custom pictogram selection screen on the post screen (#1101)

Currently, the post screen has a cancel button only on the screen for selecting drafts, so we placed a cancel button for consistency and UX improvement.
Related: #1073

Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
This commit is contained in:
Yusuke Arakawa 2023-03-01 05:11:32 +09:00 committed by GitHub
parent ecfc82c371
commit ddebf87080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,6 +261,11 @@ struct StatusEditorAccessoryView: View {
} }
}.padding(.horizontal) }.padding(.horizontal)
} }
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
Button("action.cancel", action: { isCustomEmojisSheetDisplay = false })
}
}
.scrollContentBackground(.hidden) .scrollContentBackground(.hidden)
.background(theme.primaryBackgroundColor) .background(theme.primaryBackgroundColor)
.navigationTitle("status.editor.emojis.navigation-title") .navigationTitle("status.editor.emojis.navigation-title")