Let's talk about making portable libraries with Swift clients. Has anyone made a tool yet to autogen Obj-C wrappers for C++ interfaces?
Conversation
3
1
10
Logic should be common code. Only the parts that *must* be platform specific (UI, HAL, etc.) should be.
3
Yeah, agreed. I want to keep my UIKit-interacting layer paper thin. Interacting with UIKit counts w.r.t. SRP.
2
I've worked (pre-) where this wasn't true for our Mac and iOS software. Why!? It's madness!
1
Replying to
Basically no one considers "interacting with the system framework" a responsibility but I've seen the sausage
Replying to
Well we should make a standard System Abstraction Layer and oh wait that's the Java AWT never mind. ;p
1
Or just APIs with explicit contracts, no secret handshakes, and isolated behavior. :/
1
Show replies



