Last active
November 24, 2021 10:32
-
-
Save yannxou/9ffa7c059d3dd4cb3128b46f65e724ea to your computer and use it in GitHub Desktop.
Deprecate function #Swift #xcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From: https://www.avanderlee.com/swift/async-await/ | |
// More info on @available: https://www.avanderlee.com/swift/available-deprecated-renamed/ | |
@available(*, deprecated, renamed: "fetchImages()") | |
func fetchImages(completion: @escaping (Result<[UIImage], Error>) -> Void) { ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment