I’ve just published my first app in my personal Apple developer account. 🎉It feels great!Continue reading
In our last Working with JSON series (Part 1, Part 2 and Part 3), we explore various items: Codable protocol, which contains two other protocols: Encodable and Decodable How to decode a JSON data object into a readable Swift struct Usage of custom keys Custom objects creation Arrays Different top …
Last post was devoted to custom keys and custom objects. In this one let’s talk about top level entities and arrays, very common structures used in JSON files and responses.
In the last post we went through a little sneak peak of how easy it is to work with JSON since Swift 4. Now let’s keep it up and see how to deal with custom keys and custom objects.
DISCLAIMER: In this series of posts you’ll learn to work with JSON, not with JASON, the evil character from Friday the 13th series. Besides, working with JSON has become a pleasure since Swift 4… while JASON keeps being mean. So, drop your hockey mask and start coding!
If you have started documenting your functions, you may be wondering if there are other formats to apply. Well, wonder no more: behold some tips to embellish your already beautiful documentation.
Did you know that pressing ⌥ + ⌘ + / in any function declaration displays an auto-generated document template for that function? You can also add extra lines to that template using Swift’s version of Markdown, which is an extremely useful tool to document our code, for the sake of us, the future us …