Skip to content

Commit 8eeb592

Browse files
run swiftlint
1 parent 8e5160a commit 8eeb592

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/ComponentsKit/Helpers/SwiftUI/ThemeChangeObserver.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ import SwiftUI
3030
public struct ThemeChangeObserver<Content: View>: View {
3131
@State private var themeId = UUID()
3232
@ViewBuilder var content: () -> Content
33-
33+
3434
public init(content: @escaping () -> Content) {
3535
self.content = content
3636
}
37-
37+
3838
public var body: some View {
3939
self.content()
4040
.onReceive(NotificationCenter.default.publisher(

Sources/ComponentsKit/Helpers/UIKit/NSObject+ObserveThemeChange.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Foundation
21
import Combine
2+
import Foundation
33

44
extension NSObject {
55
/// Observes changes to the `.current` theme and updates dependent views.
@@ -68,7 +68,7 @@ extension NSObject {
6868
self.cancellables.append(cancellable)
6969
return cancellable
7070
}
71-
71+
7272
fileprivate var cancellables: [Any] {
7373
get {
7474
objc_getAssociatedObject(self, Self.cancellablesKey) as? [Any] ?? []
@@ -77,6 +77,6 @@ extension NSObject {
7777
objc_setAssociatedObject(self, Self.cancellablesKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
7878
}
7979
}
80-
80+
8181
private static let cancellablesKey = "themeChangeObserverCancellables"
8282
}

0 commit comments

Comments
 (0)