Translate NSInvocation to `DispatchQueue.main.async` or other alternative

Description

BLETR project / MyPeripheral.swift /brian@appsird.net/:

translates to a Swift code that won't compile:
http://take.ms/72K01

Possible solution:

Environment

None

Activity

Show:
Alex Petuschak
December 9, 2019, 1:33 PM

Related (from Todd Bruss):

One weaker area I found is a workaround around NSInvocation / Invoke and some of its surrounding required objects. NSInvocation / Invoke does not exist in Swift and for some lower level stuff, I had to keep the code in Objective-C and work with a Bridging Header. I can send you an example sometime if interested. The reason I had to go super deep is Apple broke something major and had to find a solution in a hurry.

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Low
Configure