Skip to content

Commit

Permalink
supports other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Nov 23, 2023
1 parent 888e409 commit f853bff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Sources/Verge/SwiftUI/StoreObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SwiftUI

- Warning: This property wrapper should only be used for store objects that are expected to have a lifetime matching the lifetime of the view.
*/
@available(iOS 14, *)
@available(iOS 14, watchOS 7.0, tvOS 14, *)
@propertyWrapper
public struct StoreObject<Store: DispatcherType>: DynamicProperty {

Expand Down Expand Up @@ -39,7 +39,7 @@ public struct StoreObject<Store: DispatcherType>: DynamicProperty {

#if DEBUG

@available(iOS 14, *)
@available(iOS 14, watchOS 7.0, tvOS 14, *)
enum Preview_StoreObject: PreviewProvider {

static var previews: some View {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Verge/SwiftUI/StoreReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SwiftUI
Store emits events of updated state, StoreReader filters them with current using KeyPaths.
Therefore functions of the state are not available in this situation.
*/
@available(iOS 14, *)
@available(iOS 14, watchOS 7.0, tvOS 14, *)
public struct StoreReader<StateType: Equatable, Content: View>: View {

private let backing: _StoreReader<StateType, Content>
Expand Down Expand Up @@ -102,7 +102,7 @@ public struct StoreReader<StateType: Equatable, Content: View>: View {

}

@available(iOS 14, *)
@available(iOS 14, watchOS 7.0, tvOS 14, *)
private struct _StoreReader<StateType: Equatable, Content: View>: View {

@StateObject private var node: StoreReaderComponents<StateType>.Node
Expand Down Expand Up @@ -332,7 +332,7 @@ public enum StoreReaderComponents<StateType: Equatable> {

#if DEBUG

@available(iOS 14, *)
@available(iOS 14, watchOS 7.0, tvOS 14, *)
enum Preview_StoreReader: PreviewProvider {

static var previews: some View {
Expand Down
2 changes: 1 addition & 1 deletion Tests/VergeTests/StoreReaderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import SwiftUI
import Verge
import ViewInspector

@available(iOS 14, *)
@available(iOS 14, tvOS 14, *)
final class StoreReaderTests: XCTestCase {


Expand Down

0 comments on commit f853bff

Please sign in to comment.