File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,11 @@ - (void)loadContentLayoutConstraints
172
172
173
173
- (BOOL )shouldLayoutForCompactWidth
174
174
{
175
- BOOL horizontallyCompact = [ self .traitCollection containsTraitsInCollection: [UITraitCollection traitCollectionWithHorizontalSizeClass: UIUserInterfaceSizeClassCompact]] ;
175
+ BOOL horizontallyCompact = self.traitCollection . horizontalSizeClass == UIUserInterfaceSizeClassCompact;
176
176
177
177
if (horizontallyCompact) {
178
178
179
- if ([ self .traitCollection containsTraitsInCollection: [UITraitCollection traitCollectionWithVerticalSizeClass: UIUserInterfaceSizeClassCompact]] ) {
179
+ if (self.traitCollection . verticalSizeClass == UIUserInterfaceSizeClassCompact) {
180
180
horizontallyCompact = NO ;
181
181
}
182
182
}
You can’t perform that action at this time.
0 commit comments