Stop your app crash when dictionary doesn't contain any value.
use subscript(_:default:):
let names = ["Shiju", "John", "Om"]
let findName = names["Amigo", default: "No Name"]
print(findName) // Here is the magic.
#SWIFT5
I want to show you a super early preview of a new Imagine Engine feature I just started building with my new iPad Pro - live editing of a running game using the Apple Pencil! โ๏ธ๐ฎ
I think this sort of tools have enormous potential on the iPad - can't wait to build many more! ๐
Here's another iPad Pro prototype! ๐ This time I'm using the Apple Pencil for text selection + copy & paste in a Markdown editor ๐
I really love the idea of using the pencil as a dedicated pointing device - it adds a whole new layer of possible interactions ๐
You can now watch my talk โThe Lost Art of System Designโ from @swiftandfika! ๐๐บ
In it, I give my top 3 tips on how I design systems for iOS apps, and give my answer to the big question โWhat is the best app architecture?โ ๐
Happy Friday, friends! ๐
https://t.co/08GDfzq7tU