StackOverflow Questions for Tag: uitraitcollection

Adham Raouf
Adham Raouf

Reputation: 117

‘traitCollectionDidChange’ was deprecated in iOS 17.0. How do I use the replacement?

Score: 10

Views: 8102

Answers: 1

Read More
Mojtaba Hosseini
Mojtaba Hosseini

Reputation: 119312

How to detect Light\Dark mode change in iOS 13?

Score: 13

Views: 14232

Answers: 3

Read More
FE_Tech
FE_Tech

Reputation: 1752

override traitCollection in iOS 13

Score: 7

Views: 7196

Answers: 2

Read More
Amja
Amja

Reputation: 1387

Custom trait propagation not working as expected outside of view hierarchy

Score: 0

Views: 192

Answers: 1

Read More
HangarRash
HangarRash

Reputation: 15009

How to implement custom traits in Objective-C?

Score: 3

Views: 492

Answers: 1

Read More
Aggressor
Aggressor

Reputation: 13551

Xcode 13 beta 5 error: UIViewController is missing its initial trait collection populated during initialization

Score: 4

Views: 5584

Answers: 3

Read More
guido
guido

Reputation: 2896

traitCollectionDidChange not called on scheduled appearance (dark mode / light mode) change (e.g. at sunset / sunrise, or custom schedule)

Score: 1

Views: 259

Answers: 0

Read More
CristianMoisei
CristianMoisei

Reputation: 2279

How can I detect when the system changes dark/light mode in Swift?

Score: 0

Views: 686

Answers: 1

Read More
Jordan H
Jordan H

Reputation: 55715

How to assign a view's UIUserInterfaceLevel?

Score: 0

Views: 730

Answers: 1

Read More
michael.yql
michael.yql

Reputation: 33

Should I use viewDidLayoutSubviews() or traitCollectionDidChange() to respond to changes in interface orientation

Score: 0

Views: 579

Answers: 2

Read More
Khal
Khal

Reputation: 820

iOS safe area insets for both portrait and landscape before adding a view to the hierarchy?

Score: 0

Views: 585

Answers: 0

Read More
WongWray
WongWray

Reputation: 2566

How to specify a minimum UIContentSizeCategory for UIFontMetrics?

Score: 2

Views: 2053

Answers: 2

Read More
Mel
Mel

Reputation: 469

how to adjust layout of tableview cells having collectionView on screen rotation on all screen sizes?

Score: 0

Views: 340

Answers: 0

Read More
Brian Spilner
Brian Spilner

Reputation: 673

Why is traitCollectionDidChange not called for a table view cell when content size category changes?

Score: 5

Views: 2197

Answers: 2

Read More
Tomer Ciucran
Tomer Ciucran

Reputation: 199

traitCollectionDidChange never called on UIView subclass

Score: 1

Views: 2831

Answers: 1

Read More
Nishanth Vemula
Nishanth Vemula

Reputation: 346

Swift 5 UICollectionViewCell Autolayout constraints

Score: 0

Views: 453

Answers: 1

Read More
Arne Oldenhave
Arne Oldenhave

Reputation: 221

SwiftUI, is there a traitCollectionDidChange-like method in a View?

Score: 1

Views: 1095

Answers: 0

Read More
matt
matt

Reputation: 535178

what are the size classes for the new iPhone X models?

Score: 3

Views: 2603

Answers: 1

Read More
iAkshay
iAkshay

Reputation: 1263

super initWithFrame returned nil from -traitCollection, which is not allowed

Score: 0

Views: 244

Answers: 1

Read More
Tom Hamming
Tom Hamming

Reputation: 10961

Horizontal size class of popovers in Catalyst?

Score: 0

Views: 212

Answers: 2

Read More
PreviousPage 1Next