Dezine Zync

The personal blog of Nikhil Nigade

A Fun Exercise

A fun exercise during this migration was to create a async delegate for UIDocumentPickerController to return the selected URLs or throw an error based on the delegate methods invoked.

You can weakly reference the continuation token from withCheckedContinuation and call its respective methods.

Not intuitive at first, but once you get it working, composing other similar delegates becomes natural.