Skip to content

Commit

Permalink
- iOS 18 and latest xCode crash fix with Replacing withCheckedThrowin…
Browse files Browse the repository at this point in the history
…gContinuation Calls With withUnsafeThrowingContinuation
  • Loading branch information
CricHeroesiOS committed Sep 18, 2024
1 parent 81b2805 commit 3080b92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Public/DotLottie/DotLottieFileHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ extension DotLottieFile {
dotLottieCache: DotLottieCacheProvider? = DotLottieCache.sharedCache)
async throws -> DotLottieFile
{
try await withCheckedThrowingContinuation { continuation in
try await withUnsafeThrowingContinuation { continuation in
DotLottieFile.named(name, bundle: bundle, subdirectory: subdirectory, dotLottieCache: dotLottieCache) { result in
continuation.resume(with: result)
}
Expand Down Expand Up @@ -169,7 +169,7 @@ extension DotLottieFile {
dotLottieCache: DotLottieCacheProvider? = DotLottieCache.sharedCache)
async throws -> DotLottieFile
{
try await withCheckedThrowingContinuation { continuation in
try await withUnsafeThrowingContinuation { continuation in
DotLottieFile.loadedFrom(filepath: filepath, dotLottieCache: dotLottieCache) { result in
continuation.resume(with: result)
}
Expand Down Expand Up @@ -208,7 +208,7 @@ extension DotLottieFile {
dotLottieCache: DotLottieCacheProvider? = DotLottieCache.sharedCache)
async throws -> DotLottieFile
{
try await withCheckedThrowingContinuation { continuation in
try await withUnsafeThrowingContinuation { continuation in
DotLottieFile.asset(named: name, bundle: bundle, dotLottieCache: dotLottieCache) { result in
continuation.resume(with: result)
}
Expand Down Expand Up @@ -273,7 +273,7 @@ extension DotLottieFile {
dotLottieCache: DotLottieCacheProvider? = DotLottieCache.sharedCache)
async throws -> DotLottieFile
{
try await withCheckedThrowingContinuation { continuation in
try await withUnsafeThrowingContinuation { continuation in
DotLottieFile.loadedFrom(url: url, session: session, dotLottieCache: dotLottieCache) { result in
continuation.resume(with: result)
}
Expand Down Expand Up @@ -356,7 +356,7 @@ extension DotLottieFile {
dispatchQueue: DispatchQueue = .dotLottie)
async throws -> DotLottieFile
{
try await withCheckedThrowingContinuation { continuation in
try await withUnsafeThrowingContinuation { continuation in
loadedFrom(data: data, filename: filename, dispatchQueue: dispatchQueue) { result in
continuation.resume(with: result)
}
Expand Down

0 comments on commit 3080b92

Please sign in to comment.