I’m really happy to say that SwiftyUserDefaults 4 was finally released at the end of last week. Due to changes of Swift 4 and 5, the core of the library was rewritten from the ground up. Don’t worry, though, as the API is almost untouched and the new version introduces mostly improvements and additions. Here is a short summary of what’s inside.

Default values

Probably the most noticeable change in version 4 is handling of default values. In version 3 you would do a following:

And the username would be either the value saved to UserDefaults or a default value (“”


Hey there! I moved my blog to http://sunshinejr.com
There will be a lot of stuff about iOS and Open Source in general, so if you are interested in these, please give it a shot ;-)

MVVM — MVC done right.

Architecture in iOS has become a quite popular topic. Personally, I love it. We have acknowledged that architecture is something that needs careful though. Addressing it resulted in multiple techniques the iOS scene rarely/never used. MVVM, clean architecture-like implementations like VIPER, Redux-like unidirectional data flow architectures like ReSwift and also Elm architecture ports are only a handful of what we’ve got in the store. The…


Hey there! I moved my blog to http://sunshinejr.com
There will be a lot of stuff about iOS and Open Source in general, so if you are interested in these, please give it a shot ;-)

Testing & Development in Swift Package Manager v4

Lately, we started a new project for Moya organization, Harvey. The main goal of this project is to be fully compatible with Swift 4 & SPM. And because newest version of PackageDescription, V4, came out, we wanted to try it out.

In SPM’s PackageDescriptionV3 (the old version of a framework that has all the things needed for Package.swift), you’d have to do some workarounds if…


Hey there! I moved my blog to http://sunshinejr.com
There will be a lot of stuff about iOS and Open Source in general, so if you are interested in these, please give it a shot ;-)

Swift talks: What do you really know about typealias and associatedtype?

Note: This post was written way back when Swift 2.2 was a thing. If you are still reading this one, please keep in mind that this is some sort of a history and rather a note than a useful post for you. Thanks!

After the Swift 2.2 update we’ve heard that typealias is deprecated in protocols and we shall use associatedtype instead. …

Łukasz Mróz

iOS developer. Open Sourcerer. Occasional speaker.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store