mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Merge commit '8ad27b9ef21990ebc224f9110b8e3ad6e83b2fd0'
This commit is contained in:
@@ -60,3 +60,5 @@ class TonNumberFormatter: NumberFormatter, @unchecked Sendable {
|
||||
return balanceText
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user