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

TextField In SwiftUI: A Deep Dive — Part 1

Why you Should Learn Swift in 2021

Custom Shape in SwiftUI

Jailbreak iOS 14.6

How to run iOS Simulator to run Flutter apps using Android Studio

What’s New in SwiftUI 3.0?

Purple flower

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

Crowdin CDN— streamline the localization process (iOS)

How to resolve the swiping right action when trying to navigate to a previous screen in iOS.

CoreData search acceleration

How to resolve the swiping right action when trying to navigate to a previous screen in iOS.