Skip to content

Commit

Permalink
Fix Xcode 16.1 error about property not on main actor (#119)
Browse files Browse the repository at this point in the history
* Fix error about property not on main actor

* Attempt to fix Ubuntu CI

* Update ubuntu.yml

* Remove changes

* Update ubuntu.yml
  • Loading branch information
0xLeif authored Nov 1, 2024
1 parent 5d174b9 commit 2723afc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: sersoft-gmbh/swifty-linux-action@v3
with:
release-version: 6.0
release-version: 6.0.1
- uses: actions/checkout@v3
- name: Build for release
run: swift build -v -c release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import SwiftUI

/// The `@ObservedDependency` property wrapper is a feature provided by AppState, intended to simplify dependency handling throughout your application. It makes it easy to access, share, and manage dependencies in a neat and Swift idiomatic way. It works the same as `@AppDependency`, but comes with the power of the `@ObservedObject` property wrapper.
@MainActor
@propertyWrapper public struct ObservedDependency<Value: Sendable>: DynamicProperty where Value: ObservableObject {
/// Path for accessing `ObservedDependency` from Application.
private let keyPath: KeyPath<Application, Application.Dependency<Value>>
Expand Down

0 comments on commit 2723afc

Please sign in to comment.