Created
September 5, 2017 10:09
-
-
Save S2Ler/1f051afe6c4f538f94011bfa52a9bf98 to your computer and use it in GitHub Desktop.
Swift Crash
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
import Foundation | |
extension URLComponents { | |
public mutating func whyThisFails() { | |
guard let currentComponentString = components.string, | |
let components = URLComponents(string: currentComponentString) else { return } | |
self = components | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment