Skip to content

Commit

Permalink
Merge pull request #2275 from lamtrinhdev/Update_links
Browse files Browse the repository at this point in the history
Update links for repositories moved to the swiftlang org on GitHub
  • Loading branch information
onevcat authored Jul 25, 2024
2 parents 4e732a1 + 78464a3 commit ee44579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/Utility/Runtime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import Foundation

func getAssociatedObject<T>(_ 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
Expand Down
6 changes: 3 additions & 3 deletions Sources/Views/AnimatedImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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<T>(_ operation: @MainActor (AnimatedImageView) throws -> T) rethrows -> T {
typealias Isolated = (AnimatedImageView) throws -> T
Expand Down

0 comments on commit ee44579

Please sign in to comment.