move gradient up with keyboard

// FREEBIE
pull/1/head
sdkjfhsdkjhfsdlkjhfsdf 7 years ago
parent 653a272b54
commit 7907a64dfe

@ -131,12 +131,6 @@ public class AttachmentApprovalViewController: OWSViewController, CaptioningTool
topGradient.autoPinWidthToSuperview()
topGradient.autoPinEdge(toSuperviewEdge: .top)
topGradient.autoSetDimension(.height, toSize: ScaleFromIPhone5(60))
let bottomGradient = GradientView(from: UIColor.clear, to: backgroundColor)
self.view.addSubview(bottomGradient)
bottomGradient.autoPinWidthToSuperview()
bottomGradient.autoPinEdge(toSuperviewEdge: .bottom)
bottomGradient.autoSetDimension(.height, toSize: ScaleFromIPhone5(100))
}
// Hide the play button embedded in the MediaView and replace it with our own.
@ -441,6 +435,12 @@ class CaptioningToolbar: UIView, UITextViewDelegate {
// Increase hit area of send button
sendButton.contentEdgeInsets = UIEdgeInsets(top: 6, left: 8, bottom: 6, right: 8)
let bottomGradient = GradientView(from: UIColor.clear, to: UIColor.black)
self.addSubview(bottomGradient)
bottomGradient.autoPinWidthToSuperview()
bottomGradient.autoPinEdge(toSuperviewEdge: .bottom)
bottomGradient.autoSetDimension(.height, toSize: ScaleFromIPhone5(100))
addSubview(sendButton)
addSubview(textView)

Loading…
Cancel
Save