robjperez
09/06/2021, 3:16 PMUnable to call non-designated initializer as super constructor
Issue.
I have a class Foo
which contains 3 constructors, one with no parameters, other with NSCoder and the last of them accepts a frame: CValue<CGRect>
Ideally I would like to do object : Foo()
, but then I hit the build problem so I can fix the issue with subclassing
object: Foo(frame = CGRectZero.readValue)
However, the frame that I pass, Foo is trying to use it in a different thread (some Foo implementation details I cannot change)
This makes my try of overcoming the constructor build problem not working 😞
Is there any other solution to the build problem?