Top "Ios-autolayout" questions

Auto Layout is a constraint-based, descriptive user interface layout system for OS X and iOS.

How to fix "Scrollable Content Size Ambiguity" in Xcode 11 (iOS 12, iOS 13) using Auto Layout

When using Auto Layout, I am unable to set up a simple UIScrollView in my view controller in Xcode 11 beta. …

uiscrollview ios-autolayout xcode11
In iOS 12, when does the UICollectionView layout cells, use autolayout in nib

Same code like this collectionLayout.estimatedItemSize = CGSize(width: 50, height: 25) collectionLayout.itemSize = UICollectionViewFlowLayoutAutomaticSize collectionLayout.minimumInteritemSpacing = 10 for _ in 0 ..< 1000 { let length = Int(…

ios uicollectionview ios-autolayout xcode10 ios12
What is the basic difference between Auto Layout and Auto Resizing in iOS

I have been searching the proper difference between Auto Layout and Auto Resizing, but didn't able to find the exact …

ios xcode user-interface autoresize ios-autolayout
Why weak IBOutlet NSLayoutConstraint turns to nil when I make it inactive?

I have an IBOutlet NSLayoutConstraint in my app. Very simple: @property (nonatomic, weak) IBOutlet NSLayoutConstraint* leftConstraint; At some point I …

ios objective-c uikit iboutlet ios-autolayout
Using SnapKit to Aspect Ratio and less size

I am trying to create the constraints of this layout in SnapKit but I have difficulty setting the maximum size (…

swift ios-autolayout snapkit
UIHostingController should expand to fit contents

I have a custom UIViewControllerRepresentable (layout-related code shown below). This tries to replicate the native SwiftUI ScrollView, except it scrolls …

ios swift swiftui ios-autolayout uihostingcontroller