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
[ | |
{ | |
"code": "aa", | |
"name": "Afar" | |
}, | |
{ | |
"code": "ab", | |
"name": "Abkhazian" | |
}, | |
{ |
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
+-----------------------------------------------------------------------------+ | |
| Xcode Source Control Cheat Sheet | | |
+-----------------------------------------------------------------------------+ | |
| [Setup & Clone] | | |
| 📦 Clone Repository: Intergate -> Clone | | |
| 🔗 Add Existing Remote: Source Control Navigator -> Repositories -> | | |
| -> Remotes -> Add Existing Remote | | |
+-----------------------------------------------------------------------------+ | |
| [Working with Changes] | | |
| 📝 Commit Changes: Source Control Navigator -> your branch -> | |
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 Bundle { | |
func decode<T: Decodable>(_ file: String) -> T { | |
guard let url = self.url(forResource: file, withExtension: nil) else { | |
fatalError("Failed to locate \(file) in bundle") | |
} | |
guard let data = try? Data(contentsOf: url) else { | |
fatalError("Failed to load \(file) in bundle") |