Skip to content

Commit

Permalink
Make NSNumber extension internal (#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
evil159 authored Mar 3, 2023
1 parent 6233c98 commit 536bbb8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/MapboxMaps/Foundation/Extensions/NSNumber.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 536bbb8

Please sign in to comment.