Deprecating your own convenience API
Wrap OS-specific behavior (e.g., SwiftUI toolbar label style) in a custom API using #available, then annotate it with @available(deprecated:obsoleted:message:) so the compiler flags it when you raise iOS targets, guiding removal of dead code. Prefer deprecate first, then obsolete.