diff --git a/content/notes/wwdc23/10057.md b/content/notes/wwdc23/10057.md index 23f7ed07..2a9905b4 100644 --- a/content/notes/wwdc23/10057.md +++ b/content/notes/wwdc23/10057.md @@ -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.