Skip to content

Commit 6ad1e21

Browse files
github-actions[bot]Anka
andauthored
RD-1268: Perform Bulletproofing on Swift SDK Repo (#168)
Co-authored-by: Anka <runner@sat12-bq146-d8cc26ba-0d7d-4a6b-93e9-2fb6f6c009b2-4223227606FC.local>
1 parent 8830395 commit 6ad1e21

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

Sources/MapTilerSDK/MTEvent.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ public enum MTEvent: String {
2525
/// Triggered whenever the cooperativeGestures option prevents a gesture from being handled by the map.
2626
case didPreventCooperativeGesture = "cooperativegestureprevented"
2727

28-
/// Triggerred when any map data loads or changes.
28+
/// Triggered when any map data loads or changes.
2929
case dataDidUpdate = "data"
3030

31-
/// Triggerred when a request for one of the map's sources' tiles is aborted.
32-
/// Triggerred when a request for one of the map's sources' data is aborted.
31+
/// Triggered when a request for one of the map's sources' tiles is aborted.
32+
/// Triggered when a request for one of the map's sources' data is aborted.
3333
case dataUpdateDidAbort = "dataabort"
3434

35-
/// Triggered when any map data (style, source, tile, etc) begins loading or changing asyncronously.
35+
/// Triggered when any map data (style, source, tile, etc) begins loading or changing asynchronously.
3636
///
37-
/// All dataloading events are followed by a dataDidUpdate, dataUpdateDidAbort or error events.
37+
/// All data loading events are followed by a dataDidUpdate, dataUpdateDidAbort or error events.
3838
case dataLoadingDidStart = "dataloading"
3939

4040
/// Triggered when a user taps and releases twice at the same point on the map in rapid succession.
@@ -60,7 +60,7 @@ public enum MTEvent: String {
6060
case didLoad = "load"
6161

6262
/// Triggered only once in a Map instance lifecycle, when both the load event
63-
/// and the terrain event with non-null terrain are triggered..
63+
/// and the terrain event with non-null terrain are triggered.
6464
case didLoadWithTerrain = "loadWithTerrain"
6565

6666
/// Triggered repeatedly during an animated transition from one view to another,
@@ -126,15 +126,15 @@ public enum MTEvent: String {
126126
/// Triggered when a request for one of the map's sources' data is aborted.
127127
case sourceUpdateDidAbort = "sourcedataabort"
128128

129-
/// Triggered when one of the map's sources begins loading or changing asyncronously.
129+
/// Triggered when one of the map's sources begins loading or changing asynchronously.
130130
///
131131
/// All sourceUpdateDidStart events are followed by a sourceDidUpdate, sourceUpdateDidAbort or error events.
132132
case sourceUpdateDidStart = "sourcedataloading"
133133

134134
/// Triggered when the map's style loads or changes.
135135
case styleDidUpdate = "styledata"
136136

137-
/// Triggered when the map's style begins loading or changing asyncronously.
137+
/// Triggered when the map's style begins loading or changing asynchronously.
138138
///
139139
/// All styleUpdateDidStart events are followed by a styleDidUpdate or error events.
140140
case styleUpdateDidStart = "styledataloading"

Sources/MapTilerSDK/Map/Extensions/MTNavigable/MTMapView+MTNavigable.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extension MTMapView: MTNavigable {
4646
/// - animationOptions: Optional animation options to use.
4747
/// - completionHandler: A handler block to execute when function finishes.
4848
/// - Note: The animation will be skipped, and this will behave equivalently to jumpTo
49-
/// if the user has the reduced motion accesibility feature enabled,
49+
/// if the user has the reduced motion accessibility feature enabled,
5050
/// unless options includes essential: true.
5151
@available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
5252
public func flyTo(
@@ -71,7 +71,7 @@ extension MTMapView: MTNavigable {
7171
/// - options: Custom options to use.
7272
/// - animationOptions: Optional animation options to use.
7373
/// - completionHandler: A handler block to execute when function finishes.
74-
/// - Note: The transition will happen instantly if the user has enabled the reduced motion accesibility feature,
74+
/// - Note: The transition will happen instantly if the user has enabled the reduced motion accessibility feature,
7575
/// unless options includes essential: true.
7676
@available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
7777
public func easeTo(
@@ -408,7 +408,7 @@ extension MTMapView {
408408
/// - animationOptions: Optional animation options to use.
409409
/// - completionHandler: A handler block to execute when function finishes.
410410
/// - Note: The animation will be skipped, and this will behave equivalently to jumpTo
411-
/// if the user has the reduced motion accesibility feature enabled,
411+
/// if the user has the reduced motion accessibility feature enabled,
412412
/// unless options includes essential: true.
413413
public func flyTo(
414414
_ center: CLLocationCoordinate2D,
@@ -430,7 +430,7 @@ extension MTMapView {
430430
/// - options: Custom options to use.
431431
/// - animationOptions: Optional animation options to use.
432432
/// - completionHandler: A handler block to execute when function finishes.
433-
/// - Note: The transition will happen instantly if the user has enabled the reduced motion accesibility feature,
433+
/// - Note: The transition will happen instantly if the user has enabled the reduced motion accessibility feature,
434434
/// unless options includes essential: true.
435435
public func easeTo(
436436
_ center: CLLocationCoordinate2D,

Sources/MapTilerSDK/Map/MTMapCameraHelper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public class MTMapCameraHelper {
131131
}
132132

133133
extension MTMapCameraHelper {
134-
/// Returns boolean inidicating whether camera object is equal to the reciever.
134+
/// Returns a Boolean indicating whether the camera object is equal to the receiver.
135135
/// - Parameters:
136136
/// - camera: MTMapCamera object to compare with.
137137
public func isEqualToMapCameraHelper(_ camera: MTMapCameraHelper) -> Bool {

Sources/MapTilerSDK/Map/MTMapView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ open class MTMapView: UIView, Sendable {
9292
commonInit()
9393
}
9494

95-
/// Initializes the map with the coder..
95+
/// Initializes the map with the coder.
9696
required public init?(coder: NSCoder) {
9797
super.init(coder: coder)
9898

@@ -127,9 +127,9 @@ open class MTMapView: UIView, Sendable {
127127

128128
/// Initializes location tracking manager.
129129
///
130-
/// In order to track user location you have to initalize the MLLocationManager,
131-
/// add neccessary Privacy Location messages to info.plist, subscribe to MTLocationManagerDelegate
132-
/// and start location updates and/or request location once via locationManager property on MTMapView.
130+
/// In order to track user location you have to initialize the MLLocationManager,
131+
/// add necessary Privacy Location messages to Info.plist, subscribe to MTLocationManagerDelegate
132+
/// and start location updates and/or request location once via the locationManager property on MTMapView.
133133
/// - Parameters:
134134
/// - manager: Optional external CLLocationManager to use.
135135
/// - accuracy: Optional desired accuracy to use.

Sources/MapTilerSDK/Map/Style/MTMapReferenceStyle.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public enum MTMapReferenceStyle: Identifiable, Hashable, Sendable {
107107
}
108108
}
109109

110-
/// Returns reference style name..
110+
/// Returns the reference style name.
111111
public func getName() -> String {
112112
switch self {
113113
case .streets:

Sources/MapTilerSDK/Map/Types/MTColor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import UIKit
1313
public struct MTColor: Sendable, Codable {
1414
let hex: String
1515

16-
/// CGColor representaion of the MTColor
16+
/// CGColor representation of the MTColor.
1717
public var cgColor: CGColor? {
1818
return UIColor(hex: hex)?.cgColor
1919
}

0 commit comments

Comments
 (0)