I have an iOS Swift 3.0 App working with a plist (Array of Dictionaries). Now I'd like to add iCloud support to this App.
I found out that it's not so easy to create a custom sorting of the records in iCloud, especially when you allow your user to change the sorting of the table view rows with the 'moveRowAt' method.
To avoid this problem the best would be to create a data structure that represents a copy of my plist and upload it to iCloud. But such nested structures aren't supported for the key-value-storage as far as I know.
With the help of this discussion: Structs to NSData I tried to convert my Dictionaries to NSData and put them in an Array (List of Binaries) which is accepted by iCloud but as you see in the discussion it is not a bulletproof way of handling the data yet.
So what opportunities do I have? I read something about creating custom document structures but I have no experiences with that and didn't find a tutorial so far.