'Angle to Double or CGFloat or String - SwiftUI
In swift Angle(degrees : 20.0) , So now I want to convert or store that 20.0 in a Double or String or CGFloat .
What is the process?
Solution 1:[1]
Instances of type Angle have degrees property of type Double. See the documentation.
let angle = Angle(degrees: 20)
let degrees = angle.degrees // 20 of type Double
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
