intrinsicContentSize in iOS

What is intrinsicContentSize?

Apple says: The natural size for the receiving view, considering only properties of the view itself.

In simple words, it is the minimum size that UI Control needs to display.

Image from

Confused??? Let me give a simple example

This is my current code

So here intrinsicContentSize will help us now

Image from

Note: View like UIStackView and UIView has no intrinsic content size because they are dependent on their subview.

For more visit:

Thanks for reading, Happy Coding 💻

iOS Developer(

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

AppTart — How to generate required credentials for iOS app

Swift Programming Tutorial: Final Class

Understanding Grids in SwiftUI for iOS 14

OOPS with Swift

Xamarin Tips: Xamarin.iOS Binding with SecKey API

How to Clone a project in Xcode.

Lego Stormtroopers

SwiftUI Tutorial: Working with Sheet

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
Manjani Pavan

Manjani Pavan

iOS Developer(

More from Medium

Asynchronous tasks in iOS (Swift)

Table View in Swift

Convert an Android app to an iOS app Or Vice Versa — Comprehensive Guide

Swift for Android Makes Major Step Forward with SCADE 2.0