Modern iOS devices support data protection, which secures user data using built-in encryption hardware. Here, we’ll look at how apps can use this to protect their files, collecting details from a few sources, combined with my own observations.
Ever since blocks were introduced into Objective-C as part of iOS 4 they have been an important part of most modern APIs for Apple's platforms. The convention of using blocks also carried over to Swift with closures, which is a language feature that most of us use every single day. But even though closures are very widely used, there's a lot of behaviors and caveats to keep in mind when using them.