Add liquid voice record button

This commit is contained in:
Ilya Laktyushin
2020-04-01 23:42:04 +04:00
parent 2d02870d59
commit ec896bd9ff
5 changed files with 504 additions and 16 deletions

View File

@@ -387,6 +387,10 @@ final class ChatTextInputMediaRecordingButton: TGModernConversationInputMicButto
return ChatTextInputMediaRecordingButtonPresenter(account: self.account!, presentController: self.presentController)
}
func micButtonDecoration() -> (UIView & TGModernConversationInputMicButtonDecoration)! {
return CombinedWaveView(frame: CGRect(origin: CGPoint(), size: CGSize(width: 640.0, height: 640.0)), color: self.theme.chat.inputPanel.actionControlFillColor)
}
private var previousSize = CGSize()
func layoutItems() {
let size = self.bounds.size