Extensions
The following extensions are available globally.
-
Extends each CLActivityType to have a description and a name.
See moreDeclaration
Swift
extension CLActivityType -
Declaration
Swift
extension Date -
Number of miles per hour in 1 meter per second
Extension to convert meters to other units
It was created to support conversion of units also in iOS9
(UnitConverterLinear)[https://developer.apple.com/documentation/foundation/unitlength#overview] is available only in iOS 10 or above.
It always asumes the value in meters (lengths) or meters per second (speeds)
See moreDeclaration
Swift
extension Double -
Extends GPXRoot to support getting the length of all tracks in meters
See moreDeclaration
Swift
extension GPXRoot -
Extension to support getting the distance of a track in meters.
See moreDeclaration
Swift
extension GPXTrack -
Extends the GPXTrackPoint to be able to be initialized with a
See moreCLLocationobject.Declaration
Swift
extension GPXTrackPoint -
This extension adds some methods to work with MapKit
See moreDeclaration
Swift
extension GPXTrackSegment -
Extends GPXWaypoint to support the MKAnnotation protocol. It allows to add the waypoint as a pin in the map
See moreDeclaration
Swift
extension GPXWaypoint: MKAnnotation -
Extension to display humanized filesizes
See moreDeclaration
Swift
extension Int -
Declaration
Swift
extension MKMapView -
from: https://stackoverflow.com/a/45073012/13292870 count occurances
See moreDeclaration
Swift
extension String -
To better support dark mode color switches.
See moreDeclaration
Swift
extension UIColor
View on GitHub
Extensions Reference