Conf42: Mobile 2022

...

Obscure Swift

Pawel Lopusinski
iOS Developer @ Glovo

Pawel Lopusinski's LinkedIn account Pawel Lopusinski's twitter account


Swift helps the developer quite a lot and has many quality of life features that can be leveraged. But sometimes these can bite us in quite unexpected ways.

Pawel will talk about 4 such cases in Swift: - the @autoclosure annotation and a “hidden” retain cycle you can get there - how to turn a Swift struct into an NSObject - default parameters in functions and overriding them in subclasses - and how to have multiple variables of the same name, but different type, in a single object (kind of)

Pawel believes that developers of all levels can benefit from this - newcomers will learn about language features (@autoclosure, default implementation in extension) while at the same time, together with more experienced devs, will get a chance to take a look under the hood and see what powers those features and what seemingly unexpected consequences we may encounter when using them.

Awesome conferences for

Priority access to all content

Community Discord

Exclusive promotions and giveaways