Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

convert meter to miles swift

extension CGFloat {  
  func getMiles() -> CGFloat{
       return self * 0.000621371192
  }
  function getMeters() -> CGFloat {
       return self * 1609.344
  }
}
 
PREVIOUS NEXT
Tagged: #convert #meter #miles #swift
ADD COMMENT
Topic
Name
6+7 =