From 536bbb8ac3bf8828a7f3096d5ad8f69e09a76f7e Mon Sep 17 00:00:00 2001 From: Roman Laitarenko Date: Fri, 3 Mar 2023 11:44:28 +0200 Subject: [PATCH] Make NSNumber extension internal (#1371) --- Sources/MapboxMaps/Foundation/Extensions/NSNumber.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/MapboxMaps/Foundation/Extensions/NSNumber.swift b/Sources/MapboxMaps/Foundation/Extensions/NSNumber.swift index ba88cd7defab..aa7f647e35be 100644 --- a/Sources/MapboxMaps/Foundation/Extensions/NSNumber.swift +++ b/Sources/MapboxMaps/Foundation/Extensions/NSNumber.swift @@ -2,17 +2,15 @@ import Foundation import CoreGraphics import CoreLocation -/// :nodoc: -/// Deprecated. These extensions will be removed from the public API in a future major version. extension NSNumber { /// Converts an `NSNumber` to a `CGFloat` value from its `Double` representation. - public var CGFloat: CGFloat { + internal var CGFloat: CGFloat { CoreGraphics.CGFloat(doubleValue) } /// Converts the `Float` value of an `NSNumber` to a `CLLocationDirection` representation. - public var CLLocationDirection: CLLocationDirection { + internal var CLLocationDirection: CLLocationDirection { CoreLocation.CLLocationDirection(doubleValue) }