Date
1 - 1 of 1
Need help with combining generics, protocols and protocol extensions
This is a Swift usage question.
I am working on a family of UI objects which share some common behaviors. Having done several, it is time to refactor (for all of the obvious reasons).
I would like to implement these classes using both generic and non-generic objects interconnected via protocols (with protocol extensions). And I'm having a really hard time, which proves that I really don't understand this part of the Swift language. The attached PDF describes some of what I'm trying to do.
Can you help me get my head around this?
Thanks,
Rick Aurbach
I am working on a family of UI objects which share some common behaviors. Having done several, it is time to refactor (for all of the obvious reasons).
I would like to implement these classes using both generic and non-generic objects interconnected via protocols (with protocol extensions). And I'm having a really hard time, which proves that I really don't understand this part of the Swift language. The attached PDF describes some of what I'm trying to do.
Can you help me get my head around this?
Thanks,
Rick Aurbach