mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
swiftformat
This commit is contained in:
+6
-8
@@ -42,13 +42,11 @@ struct MessageComposerTextField: View {
|
||||
}
|
||||
|
||||
private var keyboardShortcuts: some View {
|
||||
Group {
|
||||
Button("") {
|
||||
keyHandler(.keyboardEscape)
|
||||
}
|
||||
// Need this to enable escape on the textView and forward the presses
|
||||
.keyboardShortcut(.escape, modifiers: [])
|
||||
Button("") {
|
||||
keyHandler(.keyboardEscape)
|
||||
}
|
||||
// Need this to enable escape on the textView and forward the presses
|
||||
.keyboardShortcut(.escape, modifiers: [])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -346,8 +344,8 @@ struct MessageComposerTextField_Previews: PreviewProvider, TestablePreview {
|
||||
@State var text: NSAttributedString
|
||||
|
||||
init(text: String) {
|
||||
_text = .init(initialValue: .init(string: text, attributes: [.font: UIFont.preferredFont(forTextStyle: .body),
|
||||
.foregroundColor: UIColor.compound.textPrimary]))
|
||||
self.text = .init(string: text, attributes: [.font: UIFont.preferredFont(forTextStyle: .body),
|
||||
.foregroundColor: UIColor.compound.textPrimary])
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
|
||||
Reference in New Issue
Block a user