4 ms·
Upvoted. The recent UIKit APIs with all sorts of “configurator” and “provider” closures are very bad (e.g. check out the UIContextMenu APIs for a good cringe).
by layoutIfNeeded 6y ago
Upvoted. The recent UIKit APIs with all sorts of “configurator” and “provider” closures are very bad (e.g. check out the UIContextMenu APIs for a good cringe). You don’t know if something is sync or async, called once or multiple times, which thread is it called on, etc. I don’t think they constitute good API design, especially since we’re talking about a reference-counted environment, where capture semantics are of utmost importance...