Skip to content

Fixed old version compiler does not support automatic self capture in Xcode 14.2 and Swift 5.7.2#340

Merged
dreampiggy merged 1 commit intoSDWebImage:masterfrom
softmastx:xcode-4-2-swift-5-7-2
Nov 6, 2024
Merged

Fixed old version compiler does not support automatic self capture in Xcode 14.2 and Swift 5.7.2#340
dreampiggy merged 1 commit intoSDWebImage:masterfrom
softmastx:xcode-4-2-swift-5-7-2

Conversation

@softmastx
Copy link
Copy Markdown

Getting an issue : Reference to property 'transaction' in closure requires explicit use of 'self' to make capture semantics explicit in ImageManager.

It is fixed by replacing withTransaction(transaction) with withTransaction(self.transaction) in ImageManager.swift at line 110

@abdullah888
Copy link
Copy Markdown

How can I get it?

@softmastx
Copy link
Copy Markdown
Author

How can I get it?

Mine right clicked on Package Dependencies located on the Xcode left panel and chose "Show in Finder" then edited the file ImageManager.swift in the Classes folder.

Screenshot 2567-11-05 at 17 24 21 Screenshot 2567-11-05 at 17 24 36

@abdullah888
Copy link
Copy Markdown

Thank you for your help in solving the problem

@dreampiggy dreampiggy merged commit 6c27d02 into SDWebImage:master Nov 6, 2024
@dreampiggy
Copy link
Copy Markdown
Collaborator

Released new patch version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants