Proxy object with Swift
Asked Answered
U

0

6

I'm trying to implement proxy pattern with swift to create an configuration object for my custom object inherited from NSObject. It would be something like UIAppearance for UIView. But I don't understand how to do method call forwarding, which I would do in objective-c with forwardInvocation: method and NSInvocation class.

If someone faced with such kind of problem, and have a solution, I would be thankful to hear. Thanks in advance.

Uncivil answered 25/1, 2016 at 13:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.