Skip to content

Commit

Permalink
Compatibility with Swift 5 toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Sep 13, 2024
1 parent ba32953 commit 1194e2f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/Spezi/Capabilities/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ public struct Application<Value> {
}


extension Application: @preconcurrency DynamicProperty {
#if compiler(>=6)
extension Application: @preconcurrency DynamicProperty {}
#else
extension Application: DynamicProperty {}
#endif

extension Application {
@MainActor
public func update() {

Check failure on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint / SwiftLint

Missing Docs Violation: public declarations should be documented (missing_docs)

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package tvOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package watchOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test UI Tests iOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 98 in Sources/Spezi/Capabilities/Application.swift

View workflow job for this annotation

GitHub Actions / Build and Test UI Tests visionOS / Test using xcodebuild or run fastlane

main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement
guard state.spezi == nil else {
Expand Down

0 comments on commit 1194e2f

Please sign in to comment.