mirror of https://github.com/oxen-io/session-ios
Clean
parent
be00f8c6ad
commit
1338fcda21
@ -1,5 +1,7 @@
|
||||
|
||||
extension CGFloat {
|
||||
/// Rounds the float to decimal places value
|
||||
|
||||
/// Round the number to the given amount of decimal places.
|
||||
func rounded(toPlaces places:Int) -> CGFloat {
|
||||
let divisor = pow(10.0, CGFloat(places))
|
||||
return (self * divisor).rounded() / divisor
|
@ -1,4 +1,6 @@
|
||||
|
||||
extension UIColor {
|
||||
|
||||
public func adjust(hueBy degrees: CGFloat) -> UIColor {
|
||||
|
||||
var currentHue: CGFloat = 0.0
|
Loading…
Reference in New Issue