Morgan Berger

3pods

BadasSwift

License: MIT

Swift_Extensions

This pod contains extensions of the Date and UIView class.

Date ------------------------------------------------------------------------------------------------------- New attributes : - stringFromDate -> return the string of a Date formatted like this : "dd/MM/yyyy" - stringFromDateHour -> return the string of a Data formatted like this : "dd/MM/yyyy HH:mm:ss"

New constructor :

- init(withDateString:String) -> which take as a parameter a date string formatted : "dd/MM/yyyy"

UIView ----------------------------------------------------------------------------------------------------- New attributes : - width -> CGFLoat - height -> CGFLoat - size -> CGSize - origin -> CGPoint - x -> CGFLoat - y -> CGFLoat - centerX -> CGFLoat - centerY -> CGFLoat - top -> CGFLoat - left -> CGFLoat

- bottom -> CGFLoat

- right -> CGFLoat

New method : - activateBorders() -> Put 1.0 widthed black border to the view (for debug purposes)


License: MIT

  • Swift