mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add SwiftLint rule to enforce stack spacing. (#2080)
Xcode 15 changes the default behaviour and given we're always working from designs, we shouldn't rely on it for our layout.
This commit is contained in:
@@ -20,19 +20,15 @@ struct EmojiPickerScreenHeaderView: View {
|
||||
let title: String
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
Text(title)
|
||||
.font(.compound.bodyMD.bold())
|
||||
.foregroundColor(.compound.textPrimary)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
Text(title)
|
||||
.font(.compound.bodyMD.bold())
|
||||
.foregroundColor(.compound.textPrimary)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
}
|
||||
|
||||
struct EmojiPickerScreenHeaderView_Previews: PreviewProvider, TestablePreview {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
EmojiPickerScreenHeaderView(title: "Title")
|
||||
}
|
||||
EmojiPickerScreenHeaderView(title: "Title")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user