tarunon

6pods

AnyObjectConvertible

Convert your own struct/enum to AnyObject easily. You can cast your struct/enum directory if implement AnyObjectConvertible at that type.

  • extension YourOwnStruct: AnyObjectConvertible {}
  • NSNotificationCenter.defaultCenter().postNotificationName("foo", object: YourOwnStruct()) // OK
  • let value = notification.object as? YourOwnStruct

License: MIT

  • Swift

Instantiate

Storyboard and Nib is not type safe, if you use UIStoryboard or UINib, your code would be get some gloom. Instantiate take type-safe protocols for Storyboard and Nib. Lets' improve our code with type-safe protocols!

License: MIT

  • Swift

InstantiateStandard

Storyboard and Nib is not type safe, if you use UIStoryboard or UINib, your code would be get some gloom. Instantiate take type-safe protocols for Storyboard and Nib. Lets' improve our code with type-safe protocols!

License: MIT

  • Swift