From e280e3c39ac102e11484c53bd902d28803ba762e Mon Sep 17 00:00:00 2001 From: "LamTrinh.Dev" Date: Wed, 24 Jul 2024 21:29:15 +0700 Subject: [PATCH 1/2] Update Runtime.swift Correct the link. --- Sources/Utility/Runtime.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Utility/Runtime.swift b/Sources/Utility/Runtime.swift index c8039cb44..944de47ab 100644 --- a/Sources/Utility/Runtime.swift +++ b/Sources/Utility/Runtime.swift @@ -27,7 +27,7 @@ import Foundation func getAssociatedObject(_ object: Any, _ key: UnsafeRawPointer) -> T? { - if #available(iOS 14, macOS 11, watchOS 7, tvOS 14, *) { // swift 5.3 fixed this issue (https://github.com/apple/swift/issues/46456) + if #available(iOS 14, macOS 11, watchOS 7, tvOS 14, *) { // swift 5.3 fixed this issue (https://github.com/swiftlang/swift/issues/46456) return objc_getAssociatedObject(object, key) as? T } else { return objc_getAssociatedObject(object, key) as AnyObject as? T From 78464a3b5d9e644e46ca4bf9109fc013adb9d900 Mon Sep 17 00:00:00 2001 From: "LamTrinh.Dev" Date: Wed, 24 Jul 2024 21:30:27 +0700 Subject: [PATCH 2/2] Update AnimatedImageView.swift Correct the link. --- Sources/Views/AnimatedImageView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Views/AnimatedImageView.swift b/Sources/Views/AnimatedImageView.swift index 5ee340c93..e131be79c 100644 --- a/Sources/Views/AnimatedImageView.swift +++ b/Sources/Views/AnimatedImageView.swift @@ -231,7 +231,7 @@ open class AnimatedImageView: KFCrossPlatformImageView { } // Workaround for Apple xcframework creating issue on Apple TV in Swift 5.8. -// https://github.com/apple/swift/issues/66015 +// https://github.com/swiftlang/swift/issues/66015 #if os(tvOS) public override init(image: UIImage?, highlightedImage: UIImage?) { super.init(image: image, highlightedImage: highlightedImage) @@ -479,9 +479,9 @@ extension AnimatedImageView { // An actor's deinit is nonisolated so we need to cleanup state that needs to exist past this instance's deinit. // Currently there is no way to accomplish this that wouldn't be an error in Swift 6, hopefully that changes at // some point. This evolution proposal attempts to address this problem: - // https://github.com/apple/swift-evolution/blob/main/proposals/0371-isolated-synchronous-deinit.md + // https://github.com/swiftlang/swift-evolution/blob/main/proposals/0371-isolated-synchronous-deinit.md // Method influenced from - // https://github.com/apple/swift/blob/47803aad3b0d326e5231ad0d7936d40264f56edd/stdlib/public/Concurrency/ExecutorAssertions.swift#L351 + // https://github.com/swiftlang/swift/blob/47803aad3b0d326e5231ad0d7936d40264f56edd/stdlib/public/Concurrency/ExecutorAssertions.swift#L351 @_unavailableFromAsync(message: "express the closure as an explicit function declared on the specified 'actor' instead") private nonisolated func assumeIsolatedDuringDeinit(_ operation: @MainActor (AnimatedImageView) throws -> T) rethrows -> T { typealias Isolated = (AnimatedImageView) throws -> T