mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Screen sharing in 1-to-1 calls
This commit is contained in:
@@ -46,6 +46,7 @@ final class CallControllerButtonItemNode: HighlightTrackingButtonNode {
|
||||
case end
|
||||
case cancel
|
||||
case share
|
||||
case screencast
|
||||
}
|
||||
|
||||
var appearance: Appearance
|
||||
@@ -299,6 +300,10 @@ final class CallControllerButtonItemNode: HighlightTrackingButtonNode {
|
||||
})
|
||||
case .share:
|
||||
image = generateTintedImage(image: UIImage(bundleImageName: "Call/CallShareButton"), color: imageColor)
|
||||
case .screencast:
|
||||
if let iconImage = generateTintedImage(image: UIImage(bundleImageName: "Call/ScreenSharePhone"), color: imageColor) {
|
||||
image = generateScaledImage(image: iconImage, size: iconImage.size.aspectFitted(CGSize(width: 38.0, height: 38.0)))
|
||||
}
|
||||
}
|
||||
|
||||
if let image = image {
|
||||
|
||||
Reference in New Issue
Block a user