Skip to content

Commit

Permalink
Fix build on tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 29, 2023
1 parent 9eb0311 commit 00addc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
//
// Copyright (c) 2020–2023 Alexander Grebenyuk (github.com/kean).

#if os(iOS) || os(macOS)

import Foundation
import SwiftUI

Expand Down Expand Up @@ -68,3 +70,5 @@ private func decode<T: Decodable>(_ type: T.Type, from string: String) -> T? {
try? JSONDecoder().decode(type, from: $0)
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import Pulse

public struct SettingsView: View {
@ObservedObject var viewModel: SettingsViewModel


var store: LoggerStore { viewModel.store }

public init(store: LoggerStore = .shared) {
// TODO: Fix ownership
self.viewModel = SettingsViewModel(store: store)
Expand Down

0 comments on commit 00addc3

Please sign in to comment.