Just some useful Swift extensions I have created for projects that I have worked on.
- removeObject(object: U) - Removes the passed in object from the array.
- setCenterCoordinate(centerCoordinate: CLLocationCoordinate2D, zoomLevel: Int, animated: Bool)
- milesToMeters()
- metersToKilometers()
- metersToMiles()
- metersToFeet()
- metersToYards()
- shortDescription(precision: Int) -> String
- isEmail() -> Bool
- isValidURL() -> Bool
- addDropShadow(shadowOffset offset: CGSize) -> NSAttributedString
- lastNCharacters(n: Int) -> String?
- loadFromNibNamed(nibNamed: String, bundle : NSBundle? = nil) -> UIView?
- func classNameAsString(obj: Any) -> String