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

A long way to get started in iOS Development

Get your weapon of choice with Swift

How to export code signing certificate for iOS apps?

Learn Xamarin.Forms Control Template by making a Button with built-in Loading Indicator in 4 steps

Stop writing UITableViewDataSource

Simple Todo app, EverydayTodo in Swift

Coordinator Pattern Swift

Cookies in iOS 13

Entry point of the article of Editing Cookis in iOS 13

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

Learn Swift Together / Some Useful Codes And Optional

Music Bars in iOS using Swift 5.0

iOS Fundamentals — iOS Tour

Leading, Trailing vs Left, Right Constraints