I’ve developed an ios app with swift and I’m implementing some functionality using Backendless and I want to make sure I understand the best way to do something before I change a bunch of code. The documentation for data objects says that the class to be persisted “must contain the default, publicly accessible, no argument constructor”. Is this an absolute requirement or is there some way to get around this? It will mean that I need to make all my class properties optional (the worst feature of swift). Is there some better way to implement this in swift that I’m missing?
Hi Jennifer
This is an absolute requirement.
Without public, no-args constructor, the Backendless SDK will not be able to instantiate a new object.