Developing Accessible iOS Apps by Daniel Devesa Derksen-Staats
Author:Daniel Devesa Derksen-Staats
Language: eng
Format: epub, azw3
ISBN: 9781484253083
Publisher: Apress
And new in iOS 13, you can create actions that take an action handler instead of a target and selector. So you could write something like this:var userCustomAction = UIAccessibilityCustomAction(name: viewModel.userName) { (customAction) -> Bool in
var success = false
// Perform action
return success
}
accessibilityCustomActions?.append(userCustomAction)
When doing this, a hint saying “Actions available” gets vocalized by VoiceOver. When swiping up and down, those configured actions get read and can be actioned with a double tap. With the code example, a swipe up would say “Share,” another swipe would say “Like,” and if double tapping it would execute likeButtonPressed(_:).
And because it is an array of actions, you can always append more of them if the configuration changes:// Append more custom actions
accessibilityCustomActions?.append(UIAccessibilityCustomAction(name: viewModel.userName, target: self, selector: #selector(userButtonPressed(_:))))
Download
Developing Accessible iOS Apps by Daniel Devesa Derksen-Staats.azw3
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Linux Device Driver Development Cookbook by Rodolfo Giometti(3935)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(3619)
Implementing Cellular IoT Solutions for Digital Transformation by Dennis McCain(3553)
Embedded Linux Development Using Yocto Project - Third Edition by Otavio Salvador & Daiane Angolini(3385)
TinyML Cookbook by Gian Marco Iodice(3322)
Simplifying 3D Printing with OpenSCAD by Colin Dow(2842)
TinyML Cookbook by Gian Marco Iodice & Ronan Naughton(2603)
Fusion 360 for Makers by Lydia Sloan Cline(2220)
Networking A Beginner's Guide by Bruce Hallberg(2210)
Hands-On Linux for Architects by Denis Salamanca(2051)
But How Do It Know? by J. Clark Scott(2030)
Computers For Seniors For Dummies by Nancy C. Muir(1996)
Raspberry Pi and MQTT Essentials by Dhairya Parikh(1953)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1947)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1902)
Hack and HHVM by Owen Yamauchi(1884)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1861)
MicroPython Projects by Jacob Beningo(1736)
Hands-On Internet of Things with MQTT by Tim Pulver(1708)
