Merge commit '8ad27b9ef21990ebc224f9110b8e3ad6e83b2fd0'

This commit is contained in:
Isaac
2024-06-14 11:49:57 +04:00
24 changed files with 1036 additions and 364 deletions

View File

@@ -60,3 +60,5 @@ class TonNumberFormatter: NumberFormatter, @unchecked Sendable {
return balanceText
}
}

View File

@@ -21,7 +21,7 @@ func makeCIColor(color: GColor) -> CIColor {
#endif
}
extension GColor {
public extension GColor {
var redValue: CGFloat{ return makeCIColor(color: self).red }
var greenValue: CGFloat{ return makeCIColor(color: self).green }
var blueValue: CGFloat{ return makeCIColor(color: self).blue }

View File

@@ -20,6 +20,6 @@ public typealias GView = UIView
#endif
extension GView {
public extension GView {
static let oneDevicePixel: CGFloat = (1.0 / max(2, min(1, deviceScale)))
}