๐
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>DVTConsoleDebuggerInputTextColor</key> | |
| <string>0.972549 0.972549 0.94902 1</string> | |
| <key>DVTConsoleDebuggerInputTextFont</key> | |
| <string>SFMono-Regular - 18.0</string> | |
| <key>DVTConsoleDebuggerOutputTextColor</key> | |
| <string>0.972549 0.972549 0.94902 1</string> |
This file contains hidden or 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
| //Swift 4 code, runs on Xcode 9 Beta in playground | |
| import Foundation | |
| // Mock JSON for testing the code along with decoding and encoding JSON using codable protocol | |
| let studentScores = """ | |
| { | |
| "student1": { | |
| "id": 123456789, | |
| "scores": { |
This file contains hidden or 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
| // A playground to demonstrate the use of Swift 4 Codable Protocol to fetch data from a web service and decode it into a native swift model | |
| import Foundation | |
| import PlaygroundSupport | |
| // swift result type https://www.cocoawithlove.com/blog/2016/08/21/result-types-part-one.html#the-result-type | |
| enum ResultType<T> { | |
| case Success(T) | |
| case Failure(e: Error) |
This file contains hidden or 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
| print("Hello, Swift ๐ฎ๐ณ") | |
| let message = "Want to learn Swift but overwhelmed by the sheer number of resources available on the web?" + | |
| "Well, fret not, as we are bringing you a learning path to follow to ease your swift learning experience," + | |
| "for you to level up and take your Swift knowledge to the next level ๐" | |
| learnMore() | |
| /* Watch this space for updates */ |