Skip to content

Instantly share code, notes, and snippets.

@bartekpacia
Created September 28, 2022 13:00
Show Gist options
  • Save bartekpacia/67c8c8cf5b878e77ed4ee66f0d2d8116 to your computer and use it in GitHub Desktop.
Save bartekpacia/67c8c8cf5b878e77ed4ee66f0d2d8116 to your computer and use it in GitHub Desktop.
func getNativeWidgets() throws {
for i in 0...10 {
let toggle = self.springboard.switches.element(boundBy: i)
let label = toggle.label as String
let accLabel = toggle.accessibilityLabel as String?
let ident = toggle.identifier
Logger.shared.i("index: \(i), label: \(label), accLabel: \(String(describing: accLabel)), ident: \(ident)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment