mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix project warnings (#791)
- Swift 5.8 warnings - Run SwiftFormat 0.51.5 - Fix SwiftLint blanket_disable_command warnings. (Assets.swift will be fixed by SwiftGen).
This commit is contained in:
@@ -83,3 +83,4 @@ extension UntranslatedL10n {
|
||||
|
||||
private final class BundleToken {}
|
||||
|
||||
// swiftlint:enable all
|
||||
|
||||
@@ -721,3 +721,4 @@ extension L10n {
|
||||
|
||||
private final class BundleToken {}
|
||||
|
||||
// swiftlint:enable all
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Generated using Sourcery 2.0.1 — https://github.com/krzysztofzablocki/Sourcery
|
||||
// Generated using Sourcery 2.0.2 — https://github.com/krzysztofzablocki/Sourcery
|
||||
// DO NOT EDIT
|
||||
|
||||
// swiftlint:disable all
|
||||
|
||||
@@ -72,7 +72,7 @@ struct LoadableImage<TransformerView: View, PlaceholderView: View>: View {
|
||||
guard image == nil, let mediaSource else { return }
|
||||
|
||||
if case let .success(image) = await imageProvider?.loadImageFromSource(mediaSource, size: size) {
|
||||
self.cachedImage = image
|
||||
cachedImage = image
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,8 +50,9 @@ class EmojiPickerScreenViewModel: EmojiPickerScreenViewModelType, EmojiPickerScr
|
||||
|
||||
private func loadEmojis() {
|
||||
Task(priority: .userInitiated) { [weak self] in
|
||||
let categories = await emojiProvider.getCategories(searchString: nil)
|
||||
self?.state.categories = convert(emojiCategories: categories)
|
||||
guard let self else { return }
|
||||
let categories = await self.emojiProvider.getCategories(searchString: nil)
|
||||
self.state.categories = convert(emojiCategories: categories)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user