Using and Writing Micro-Libraries In Swift

 

Gustavo Barcena

 

What is a Micro-Library?

 

Why?

 
  • It helps us to make code that is reusable
  • Apps become a collection of little pieces which can be easily switched out
  • Micro libraries can make Apple APIs more specific
  • We can use it to create fast prototyping tools
 

Where?

 
  • Any code that interacts with a part of the system that has a complex interaction
 

Another Awesome Example

 
  • http://chris.eidhof.nl/posts/tiny-networking-in-swift.html
  • http://realm.io/news/chris-eidhof-micro-libraries-swift/
  • https://gist.github.com/chriseidhof/26bda788f13b3e8a279c
 

Links to the code

 
  • https://github.com/gbarcena/ImageCaptureSession
  • https://github.com/gbarcena/GifResizer
  • https://github.com/gbarcena/GifWriter
  • https://github.com/gbarcena/LoopingVideoView
 

Resources

  • http://www.swifttoolbox.io/
  • https://cocoapods.org/
Made with Slides.com