mirror of https://github.com/oxen-io/session-ios
Delete tooltip
parent
9dd1ab023b
commit
6f7d7228e7
@ -1,32 +0,0 @@
|
||||
//
|
||||
// Copyright (c) 2020 Open Whisper Systems. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
@objc
|
||||
public class GroupCallTooltip: TooltipView {
|
||||
@objc
|
||||
public class func present(fromView: UIView,
|
||||
widthReferenceView: UIView,
|
||||
tailReferenceView: UIView,
|
||||
wasTappedBlock: (() -> Void)?) -> GroupCallTooltip {
|
||||
return GroupCallTooltip(fromView: fromView, widthReferenceView: widthReferenceView, tailReferenceView: tailReferenceView, wasTappedBlock: wasTappedBlock)
|
||||
}
|
||||
|
||||
public override func bubbleContentView() -> UIView {
|
||||
let label = UILabel()
|
||||
label.text = NSLocalizedString(
|
||||
"GROUP_CALL_START_TOOLTIP",
|
||||
comment: "Tooltip highlighting group calls."
|
||||
)
|
||||
label.font = UIFont.ows_dynamicTypeSubheadline
|
||||
label.textColor = UIColor.ows_white
|
||||
|
||||
return horizontalStack(forSubviews: [label])
|
||||
}
|
||||
|
||||
public override var bubbleColor: UIColor { .ows_accentGreen }
|
||||
|
||||
public override var tailDirection: TooltipView.TailDirection { .up }
|
||||
}
|
Loading…
Reference in New Issue