Skip to content

Commit

Permalink
Mark frame as MainActor for better IDE support
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcferreira committed Sep 9, 2022
1 parent 51b8d7f commit 6c51406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/GIFImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct GIFImage: View {
private let action: (GIFSource) async throws -> Void

@Environment(\.imageLoader) var imageLoader
@State private var frame: RawImage?
@State @MainActor private var frame: RawImage?
@Binding public var loop: Bool
@State private var presentationTask: Task<(), Never>? = nil

Expand Down

0 comments on commit 6c51406

Please sign in to comment.