Content Hugging & Content Compression Resistance Priority [iOS — CHCR priorities]

IntrinsicContentSize

Content Hugging priority

Content Compression Resistance Priority

When it’s best to use Both Priorities?

Example of using both priorities

cute image that i found on the net. source: https://stackoverflow.com/questions/15850417/cocoa-autolayout-content-hugging-vs-content-compression-resistance-priority

--

--

--

Hey! I am currently studying iOS by myself, and wanna be a cool app developer 🕶 please correct me if i’m wrong or if there’s any thing that you wanna share😊✌️

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

Recommended from Medium

iOS Managing & Handling the Keyboard

UIImagePickerController in Swift

How to Create a Revolut-Esque Cards Collection View on iOS

iPhones

How to build an iOS chat app with Sendbird UIKit

BottomSheet in iOS 15: ​​UISheetPresentationController and its capabilities

Add a Splash Screen in React Native Expo in under 10 minutes

Polymorphism and Typecasting in Swift

New Substack Mobile App Is Here

Mobile phone with Substack logo and headphone

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
Doyeon

Doyeon

Hey! I am currently studying iOS by myself, and wanna be a cool app developer 🕶 please correct me if i’m wrong or if there’s any thing that you wanna share😊✌️

More from Medium

Live Preview UIKit in Swift

iOS Fundamentals — iOS Tour Part 3 (Statements types)

How to make your .xib your root navigation

WebEngage in iOS