Coder Social home page Coder Social logo

vishalvshekkar / archivingswiftstructures Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 7 KB

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/@vishalvshekkar/swift-structure-instances-within-a-class-archived-with-nskeyedarchiver-e27744f26811#.a7k5jwl4a

Home Page: https://medium.com/@vishalvshekkar/swift-structure-instances-within-a-class-archived-with-nskeyedarchiver-e27744f26811#.a7k5jwl4a

License: MIT License

Swift 100.00%

archivingswiftstructures's Introduction

I'm Vishal, Hi.

As a technologist who is passionate about creating products that invoke emotions, I have helped build over 20 products. I deeply involve myself in the architecture, planning, and development phases of products that employ both machine learning and platform development technologies. In my free time, I dabble in design and collect vinyl records.

Currently


  • Ask me about managing tech teams, machine learning, design, scaling tech platforms, encryption, and Swift.
  • I'm passionate about privacy, online security, good design, and egalitarianism.
  • Cofounded: Labyrinth and Verizy.
  • How to reach me: vishalvshekkar.com
  • Find more of my work on GitLab.
  • Pronouns: he/him

archivingswiftstructures's People

Contributors

vishalvshekkar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

archivingswiftstructures's Issues

Problem with Swift 3

I updated to Swift 3 and after conversion it looks like I cannot read the archived struct.
Any idea what I did wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.