Ways to make UICollectionView cell define its size itself.

Overriding preferredLayoutAttributesFitting

Using auto-layout for auto-sizing




iOS-Developer from Russia

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Wrappers around your properties: Property wrappers

OnCollisionEnter Vs. OnTriggerEnter — which one do I use?

Factory pattern and DI in swift

Featured Wallpaper iOS Widget

Goodbye Moya & Alamofire. Simplify Your Dependencies

Abstract Factory Design Pattern in Swift

Color Animation in SwiftUI

Introducing iOS 14 WidgetKit With SwiftUI

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
Isa Aliev

Isa Aliev

iOS-Developer from Russia

More from Medium

Swift Casting Float to Double, one trouble

5 Epiphanies from My First [Digital] WWDC

Underline segment control programmatically (Swift)

Images loader and memory footprint. iOS