diff --git a/.swiftformat b/.swiftformat index 2ad2ac657b..4251bb1fe1 100644 --- a/.swiftformat +++ b/.swiftformat @@ -4,6 +4,7 @@ --disable wrapMultiLineStatementBraces --disable hoistPatternLet +--disable preferForLoop --commas inline --ifdef no-indent diff --git a/ElementX/Sources/Application/Navigation/NavigationCoordinators.swift b/ElementX/Sources/Application/Navigation/NavigationCoordinators.swift index cc61371c7b..5e5db1b735 100644 --- a/ElementX/Sources/Application/Navigation/NavigationCoordinators.swift +++ b/ElementX/Sources/Application/Navigation/NavigationCoordinators.swift @@ -176,7 +176,7 @@ class NavigationSplitCoordinator: CoordinatorProtocol, ObservableObject, CustomS case .insert: break case .remove(_, let module, _): - self.processCompactLayoutStackModuleRemoval(module) + processCompactLayoutStackModuleRemoval(module) } } } diff --git a/ElementX/Sources/Services/Emojis/EmojiCategory.swift b/ElementX/Sources/Services/Emojis/EmojiCategory.swift index fe74184ae6..6ae94eed08 100644 --- a/ElementX/Sources/Services/Emojis/EmojiCategory.swift +++ b/ElementX/Sources/Services/Emojis/EmojiCategory.swift @@ -15,6 +15,7 @@ // import Foundation + struct EmojiCategory: Equatable, Identifiable { let id: String let emojis: [EmojiItem]