Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 769 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 769 Bytes

SwiftCodeHelpers

This repository contains a mixture of standalone classes that assist iOS Swift Developer

#JSONExtensions These are extensions that allow converting JSONStrings to the following formats:

  • JSONArray - Array<AnyObject>?
  • JSONDictionary - Dictionary<String, AnyObject>?
  • JSONDictionaryArray - Array<Dictionary<String, AnyObject>>?

#StringExtensions These are extensions that allows extra functionality to be performed with strings

  • Base64 Encoding
  • Base64 Decoding

#ParsingExtensions These are helper methods that run on Objects to enforce returning a value of a specific type cleanly. These issues are commonly found when parsing Dictionaries created by JSON

  • Int Parsing - Ensures that the value returned is either a valid Int or 0