---
title: Day 207
author: Daniel Devesa Derksen-Staats
date: 2022-12-11 22:12
tags: VoiceOver, iOS, isModal
categories: ["Accessibility"]
series: ["365 Days iOS Accessibility"]
image: /Images/365DaysIOSAccessibility/image22.jpg
---

Have you ever seen VoiceOver randomly focusing on elements of the previous view when presenting a custom modal view? That can be fixed by letting the system know that the presented view is modal in terms of accessibility.

![Calendar of Advent of iOS Accessibility. Day 11. Confusing custom modals. There is a groceries app. It has some text that says "Sorry, we don't deliver there yet" a search field, a search button, a text that says "or" and a login button. When presenting a modal view on top of it, VoiceOver still focuses through the elements of the previous screen. To avoid that with UIKit, you can set accessibilityViewIsModal to true for the modal view. With SwiftUI there is an accessibility trait for that, .isModal.](/Images/365DaysIOSAccessibility/image22.jpg)