Skip to content

Commit

Permalink
Leif/update supported platforms (#47)
Browse files Browse the repository at this point in the history
* Update code for new supported platforms

* Update README with new supported platforms
  • Loading branch information
0xLeif authored Dec 7, 2023
1 parent 7675460 commit 2f2b645
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 183 deletions.
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import PackageDescription
let package = Package(
name: "AppState",
platforms: [
.iOS(.v16),
.watchOS(.v9),
.macOS(.v13),
.tvOS(.v16)
.iOS(.v15),
.watchOS(.v8),
.macOS(.v11),
.tvOS(.v15)
],
products: [
.library(
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ AppState is a Swift Package that simplifies the management of application state

- **StoredState:** Dedicated struct type for encapsulating and broadcasting stored value changes within the app's scope. Values are stored using `UserDefaults`.

- **SyncState:** Dedicated struct type for encapsulating and broadcasting stored value changes within the app's scope. Values are stored using `iCloud`.
- **SyncState:** Dedicated struct type for encapsulating and broadcasting stored value changes within the app's scope. Values are stored using `iCloud`. Requires iOS 15.0, watchOS 9.0, macOS 11.0, or tvOS 15.0.

- **Dependency:** Dedicated struct type for encapsulating dependencies within the app's scope.

Expand All @@ -20,18 +20,18 @@ AppState is a Swift Package that simplifies the management of application state

- **StoredState (property wrapper):** A property wrapper that stores its values to `UserDefaults`. Works the same as `AppState` otherwise.

- **SyncState (property wrapper):** A property wrapper that stores its values to `iCloud`. Works the same as `AppState` otherwise.
- **SyncState (property wrapper):** A property wrapper that stores its values to `iCloud`. Works the same as `AppState` otherwise. Requires iOS 15.0, watchOS 9.0, macOS 11.0, or tvOS 15.0.

- **AppDependency (property wrapper):** A property wrapper that simplifies the handling of dependencies throughout your application.

### Requirements

- Swift 5.7 or later

- iOS 16.0 or later
- watchOS 9.0 or later
- macOS 13.0 or later
- tvOS 16.0 or later
- iOS 15.0 or later
- watchOS 8.0 or later
- macOS 11.0 or later
- tvOS 15.0 or later

## Getting Started

Expand Down
Loading

0 comments on commit 2f2b645

Please sign in to comment.