INNER CODE UNIT · Swift

addElement

mjrusso/scoot · Scoot/Accessibility.swift:176

                    func addElement() {
                        let element = Element(
                            role: role,
                            subrole: try? child.subrole(),
                            title: try? child.attribute(.title),
                            description: try? child.attribute(.description),
                            valueDescription: try? child.attribute(.valueDescription),
                            enabled: (try? child.attribute(.enabled)) ?? false,
                            screen: screen,
                            frame: convertedFrame
                        )
                        elements.append(element)
                    }

                    switch role {
                    case .cell, .button, .radioButton, .link, .checkBox, .slider, .popUpButton, .menuButton, .incrementor, .handle:
                        addElement()
                    default:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…