Skip to content

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages