In response to Richard,
Thank you for your response! I've tried the centerYAnchor and it just clips the label when the text size gets too large.
I've provided my label constraint code below, as well as a picture showing the outcome.
Constraint Code
// App Icon Image
[self.appIconImage.centerYAnchor constraintEqualToAnchor: self.colorLabel.centerYAnchor],
[self.appIconImage.leadingAnchor constraintEqualToAnchor: self.contentView.layoutMarginsGuide.leadingAnchor],
// Label
[self.colorLabel.leadingAnchor constraintEqualToAnchor:self.appIconImage.trailingAnchor constant: 10],
[self.colorLabel.trailingAnchor constraintEqualToAnchor:self.contentView.layoutMarginsGuide.trailingAnchor],
[self.colorLabel.topAnchor constraintEqualToAnchor: self.contentView.layoutMarginsGuide.topAnchor],
[self.colorLabel.bottomAnchor constraintEqualToAnchor: self.contentView.layoutMarginsGuide.bottomAnchor],
Picture
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: