Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Update 10057.md
Browse files Browse the repository at this point in the history
  • Loading branch information
srujanc authored Nov 11, 2023
1 parent c1a9254 commit e7f1d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/notes/wwdc23/10057.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func toggleThemeOverride(_ overrideTheme: MyAppTheme) {

```

[!Note] traitCollectionDidChange is deprecated in iOS 17. When you implement traitCollectionDidChange, the system doesn’t know which traits you actually care about, so it has to call that method every time that any trait changes value. However, most classes only use a handful of traits and don’t care about changes to any others. This is why traitCollectionDidChange doesn’t scale as you add more and more custom traits.
**Note:** traitCollectionDidChange is deprecated in iOS 17. When you implement traitCollectionDidChange, the system doesn’t know which traits you actually care about, so it has to call that method every time that any trait changes value. However, most classes only use a handful of traits and don’t care about changes to any others. This is why traitCollectionDidChange doesn’t scale as you add more and more custom traits.


In Place of traitCollectionDidChange we have new traits registration methods in iOS 17.0 with a closure-method based.
Expand Down

0 comments on commit e7f1d28

Please sign in to comment.