Skip to content

Commit 793a34f

Browse files
authored
Fix warning but explicitly saying that method is public not open in an extension (#3989)
1 parent 068c89c commit 793a34f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Sources/MapboxCoreNavigation/Directions.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extension Directions {
1616
- parameter completionHandler: The closure (block) to call with the resulting routes. This closure is executed on the application’s main thread.
1717
- returns: The data task used to perform the HTTP request. If, while waiting for the completion handler to execute, you no longer want the resulting routes, cancel this task.
1818
*/
19-
@discardableResult open func calculateWithCache(options: RouteOptions, completionHandler: @escaping RouteCompletionHandler) -> URLSessionDataTask? {
19+
@discardableResult public func calculateWithCache(options: RouteOptions, completionHandler: @escaping RouteCompletionHandler) -> URLSessionDataTask? {
2020
return calculate(options) { (session, result) in
2121
switch result {
2222
case .success(_):
@@ -43,7 +43,7 @@ extension Directions {
4343
- parameter options: A `RouteOptions` object specifying the requirements for the resulting routes.
4444
- parameter completionHandler: The closure (block) to call with the resulting routes. This closure is executed on the application’s main thread.
4545
*/
46-
open func calculateOffline(options: RouteOptions, completionHandler: @escaping RouteCompletionHandler) {
46+
public func calculateOffline(options: RouteOptions, completionHandler: @escaping RouteCompletionHandler) {
4747
MapboxRoutingProvider(.offline).calculateRoutes(options: options,
4848
completionHandler: completionHandler)
4949
}

Sources/MapboxCoreNavigation/RouteStep.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extension RouteStep {
1616
/**
1717
Returns true if the route step is on a motorway.
1818
*/
19-
open var isMotorway: Bool {
19+
public var isMotorway: Bool {
2020
return intersections?.first?.outletRoadClasses?.contains(.motorway) ?? false
2121
}
2222

@@ -34,7 +34,7 @@ extension RouteStep {
3434
/**
3535
Returns the last instruction for a given step.
3636
*/
37-
open var lastInstruction: SpokenInstruction? {
37+
public var lastInstruction: SpokenInstruction? {
3838
return instructionsSpokenAlongStep?.last
3939
}
4040
}

Sources/MapboxNavigation/BottomBannerViewControllerLayout.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ extension BottomBannerViewController {
134134
layoutConstraints.append(trailingSeparatorView.leadingAnchor.constraint(equalTo: bottomBannerView.trailingAnchor))
135135
}
136136

137-
open func reinstallConstraints() {
137+
public func reinstallConstraints() {
138138
NSLayoutConstraint.deactivate(verticalCompactConstraints)
139139
NSLayoutConstraint.deactivate(verticalRegularConstraints)
140140

0 commit comments

Comments
 (0)