ios 15

After updating to iOS 15, probably you (like me) noticed some strange colors in your customized UINavigationBar. To fix this you need to add some code which works only in iOS 13 and above:

If your app supports only iOS 13 and above, of course you can remove #available check.

Imagine this, you have a class and enum like:

and you want to sort users by their status, but users with error first. How to do that? Continue reading

Probably you saw many JSON parsing examples, but this one is really easy. And available out of the box with Swift 4.
All you have to do is create models from Codable superclass, and use:

Check out provided playground here!

Output in console should be: