minor UI fix on incoming call banner
This commit is contained in:
parent
80151acad2
commit
45e209f831
|
@ -9,8 +9,6 @@ final class IncomingCallBanner: UIView, UIGestureRecognizerDelegate {
|
|||
let uuid: String
|
||||
let sdp: RTCSessionDescription
|
||||
|
||||
private var vibrationTimer: Timer?
|
||||
|
||||
// MARK: UI Components
|
||||
private lazy var profilePictureView: ProfilePictureView = {
|
||||
let result = ProfilePictureView()
|
||||
|
@ -26,7 +24,6 @@ final class IncomingCallBanner: UIView, UIGestureRecognizerDelegate {
|
|||
result.textColor = UIColor.white
|
||||
result.font = .boldSystemFont(ofSize: Values.largeFontSize)
|
||||
result.lineBreakMode = .byTruncatingTail
|
||||
result.textAlignment = .center
|
||||
return result
|
||||
}()
|
||||
|
||||
|
@ -92,7 +89,7 @@ final class IncomingCallBanner: UIView, UIGestureRecognizerDelegate {
|
|||
profilePictureView.publicKey = self.sessionID
|
||||
profilePictureView.update()
|
||||
displayNameLabel.text = Storage.shared.getContact(with: sessionID)?.name
|
||||
let stackView = UIStackView(arrangedSubviews: [profilePictureView, displayNameLabel, UIView.hStretchingSpacer(), hangUpButton, answerButton])
|
||||
let stackView = UIStackView(arrangedSubviews: [profilePictureView, displayNameLabel, hangUpButton, answerButton])
|
||||
stackView.axis = .horizontal
|
||||
stackView.alignment = .center
|
||||
stackView.spacing = Values.largeSpacing
|
||||
|
|
Loading…
Reference in New Issue