Answers for "how to constrain an image in a stack view"

0

how to have diffrent size images in a stack view swift

let imageViewWidthConstraint = NSLayoutConstraint(item: smallRealeaseImageIcon, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 20)
let imageViewHeightConstraint = NSLayoutConstraint(item: smallRealeaseImageIcon, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 20)
smallRealeaseImageIcon.addConstraints([imageViewWidthConstraint, imageViewHeightConstraint])
Posted by: Guest on June-13-2020
0

how to have diffrent size images in a stack view swift

releaseInfoStack.distribution = .fillProportionally
Posted by: Guest on June-13-2020

Code answers related to "how to constrain an image in a stack view"

Code answers related to "Swift"

Browse Popular Code Answers by Language