Skip to content

A comparison and demonstration between 3 ways of archiving and unarchiving Swift Structures. The playground ArchivingSwiftStructures1 is the most inelegant way of doing this. Look at ArchivingSwiftStructures2 and ArchivingSwiftStructures3 for more elegant ways. Swift made structures very powerful, and hence using structures more is very tempting…

License

Notifications You must be signed in to change notification settings

vishalvshekkar/ArchivingSwiftStructures

Repository files navigation

ArchivingSwiftStructures

A comparison and demonstration between 3 ways of archiving and unarchiving Swift Structures. The playground ArchivingSwiftStructures1 is the most inelegant way of doing this. Look at ArchivingSwiftStructures2 and ArchivingSwiftStructures3 for more elegant ways. Swift made structures very powerful, and hence using structures more is very tempting. But, since NSCoding can only be conformed to by classes, archiving structure instances needs some workaround. Read through my article detailing ways to do this here: https://medium.com/p/e27744f26811/edit

About

A comparison and demonstration between 3 ways of archiving and unarchiving Swift Structures. The playground ArchivingSwiftStructures1 is the most inelegant way of doing this. Look at ArchivingSwiftStructures2 and ArchivingSwiftStructures3 for more elegant ways. Swift made structures very powerful, and hence using structures more is very tempting…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages