If you are using SwiftUI to build your apps, there is a fairly basic but very useful Accessibility Inspector built right there in the Inspectors Panel, on the right side of Xcode.

Content view showing the preview of a SwiftUI interface consisting of a rating component where you can rate something from one to five thumbs up. In the Inspectors panel, there is an Accessibility Inspector. If you make the content view selectable, you can select any time in the preview and it will show some of the basic accessibility attributes for that component in the inspector. In the case of the rating component, the label is

You may also find interesting...

As with UIKit, in SwiftUI you can also add/remove a11y traits. But because of its declarative nature, you'll have to approach it in a slightly different way. A little nuance, but something that made me scratch my UIKit head when learning SwitUI.

iOS and Xcode provide a wide variety of tools and options to deal with color contrast ratios. From system colors, that automatically support Increase Contrast, to high contrast color and asset variants, and even a built-in contrast calculator.

The Accessibility Inspector can be used with your device. It is actually quite interesting to check what other apps (or iOS) configure, for some of the basic accessibility attributes (label, value, traits, hint...), in their UI components.

Created in Swift with Ignite.

Supporting Swift for Swifts