Can't subclass DispatchGroup - “only visible via the Objective-C runtime”?
It's not possible to subclass DispatchGroup , how to do so? Note: this has finally been fixed in iOS 10+ Example, carry a stateful package with a group, class PushDispatchGroup: DispatchGroup { var sentIds: [(tableName: String, rowId: String)] = [] } thanks to shallowThought for pointing out this is fixed in iOS10. how to inherit from a class which is 'only visible via the Objective-C runtime'? You don't. This is not wrapped around a proper "object" the way you're thinking about it. It's wrapped around a dispatch_group , which is a C struct. This class is not designed to be subclassed and does