Codable Codable - Dealing with built-in and custom `keyDecodingStrategy` Apple introduced a keyDecodingStrategy parameter as a part of Swift 4.1 release. Although it's been out for a while, it's a huge change. We have many instances where server and mobile apps differ the way in which they represent incoming data. In most cases apps rely on camelCase notations
Swift Using Codable Protocol in Swift 4.1 Swift 4 Codable protocol to decode and encode json data and model objects. Explained with examples.
Swift Swift - Fighting memory leaks in closures Swift is a great language. In fact, it's among my top 3 favorite languages. It is quite strict in terms of discipline and best practices which pay off in the long-term to offer performance and crash-free experience to end-users. There are also many ways where things can go wrong. Today
Sound Playing audio file on iOS in Swift 4 Playing media file in apps is fun. Media usually puts constraints on system resources, but it is ok to indulge in fun once in a while. In this post we will see how to play audio in the iOS app. Given the high impact of size on the app download,
Swift 4.1 Swift 4.1 feature - keyEncoding/keyDecoding strategy Can't believe it's been 3 and half years but I still didn't run a single Swift program over command line. However, that is no longer going to happen. The occasion is an unreleased Swift version 4.1 (As of 02/14/2018) and my desire to try out new cool
UIScrollView Using UIScrollView with Autolayout on Xcode using Swift Note : This post is based on Using UIScrollView with Auto Layout in iOS published on Atomic Object blog. TL; DR; The code to support UIScrollView with autolayout is open-sourced and hosted on Github. The wrapper can be found here and example on how to use it is listed here Recently