Skip to content

Just some useful Swift extensions I have created for projects that I have worked on.

License

Notifications You must be signed in to change notification settings

goto10/EBCExtensions

Repository files navigation

8bit code logo

EBCExtensions

Just some useful Swift extensions I have created for projects that I have worked on.

Array Extentions

  • removeObject(object: U) - Removes the passed in object from the array.

MapKit Extentions

  • setCenterCoordinate(centerCoordinate: CLLocationCoordinate2D, zoomLevel: Int, animated: Bool)

Double Extentions

  • milesToMeters()
  • metersToKilometers()
  • metersToMiles()
  • metersToFeet()
  • metersToYards()
  • shortDescription(precision: Int) -> String

String Extentions

  • isEmail() -> Bool
  • isValidURL() -> Bool
  • addDropShadow(shadowOffset offset: CGSize) -> NSAttributedString
  • lastNCharacters(n: Int) -> String?

UIVIew Extentions

  • loadFromNibNamed(nibNamed: String, bundle : NSBundle? = nil) -> UIView?

Utility Functions

  • func classNameAsString(obj: Any) -> String

Created by 8bit code

About

Just some useful Swift extensions I have created for projects that I have worked on.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages