iOS為視覺障礙概而、聽覺障礙和其它殘障人士提供大量優(yōu)化呼巷。大多數(shù)基于UIKit的app可以輕松的讓更多的人使用你的app并擁有極佳的體驗。
為圖片赎瑰、圖標(biāo)和界面元素提供可選的文本標(biāo)簽王悍。可選的文本標(biāo)簽在屏幕上不可見,但是它們能讓旁白知道屏幕上有什么餐曼,使視覺損傷的人更容易導(dǎo)航压储。
?If your app uses UIKit to implement落實 its user interface, text and interface elements automatically adapt to certain accessibility preferences, such as bold and larger text. Your app should also check and respond to accessibility preferences when appropriate適當(dāng)?shù)? such as when the option to reduce減少 motion動作 is enabled開啟. Apps implementing實行 custom fonts should attempt to match the accessibility behavior of the system fonts.
相應(yīng)可訪問性的首選項。如果你的app用UIKit設(shè)計用戶界面源譬、文字和交互元素時自動匹配某個可用性選項比如更粗和更大的文本集惋。當(dāng)可用性選項變更時,你的app也應(yīng)當(dāng)在合適的時候進(jìn)行核對和調(diào)整踩娘。app在使用自定義字體時也應(yīng)該嘗試匹配系統(tǒng)字體的可用性芋膘。
Test your app with accessibility features.?In addition to text and motion手勢 changes, accessibility options can change contrast對比度, invert colors反相, reduce transparency, and more. Enable能夠使 these settings and observe觀察 how your app will look and behave for people who enable these features.
用輔助功能測試你的app。可用性選項除了能改變文本霸饲、手勢为朋,還能改變對比度、顏色反相厚脉、降低透明度等等习寸。啟用這些設(shè)置來觀察那些開啟這些功能的用戶看到的app是什么樣子的。
Include closed captions說明 and audio descriptions摘要.?Closed captions allow the deaf and hard-of-hearing to perceive理解 spoken dialogue對話 and other audible content in videos. Audio descriptions provide spoken narration of important video content for the visually impaired.
包含隱藏的字幕和音頻說明傻工。隱藏的字幕能夠讓聾人和聽力障礙者能夠理解口語對話和其它視頻中的聲音霞溪。視頻摘要為視覺障礙者提供視頻中重要內(nèi)容的口頭敘述孵滞。
Use sufficient足夠的 color contrast ratios.?Insufficient不足的 contrast in your app makes content hard to read for everyone. Icons and text might blend融合 with the background, for example. An online color contrast calculator can help you accurately analyze the color contrast in your app, to ensure that it meets optimal standards. Strive努力 for a minimum contrast ratio of 4.5:1, although 7:1 is preferred because it meets more stringent嚴(yán)格的 accessibility standards.?
使用足夠的顏色對比度。你app中不足的對比度使內(nèi)容讓所有人都難以閱讀鸯匹。例如坊饶,圖標(biāo)和文本可能和背景融合在一起。一個在線的顏色對比度計算器能夠幫助你正確的分析你的app中顏色的對比度殴蓬,以確保符合最佳的設(shè)計匿级。盡量讓對比度高于4.5:1,7:1是最佳的選擇染厅,因為這樣能夠更符合可用性標(biāo)準(zhǔn)痘绎。