mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
Update location bubble cells.
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
class LocationIncomingBubbleCell: LocationBubbleCell {
|
||||
class LocationIncomingBubbleCell: LocationBubbleCell, BubbleIncomingRoomCellProtocol {
|
||||
|
||||
override func setupViews() {
|
||||
super.setupViews()
|
||||
|
||||
+7
-8
@@ -16,18 +16,17 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
class LocationOutgoingWithoutSenderInfoBubbleCell: LocationBubbleCell {
|
||||
class LocationOutgoingWithoutSenderInfoBubbleCell: LocationBubbleCell, BubbleOutgoingRoomCellProtocol {
|
||||
|
||||
override func setupViews() {
|
||||
super.setupViews()
|
||||
|
||||
bubbleCellContentView?.showSenderInfo = false
|
||||
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = BubbleRoomCellLayoutConstants.outgoingBubbleBackgroundMargins.right
|
||||
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = BubbleRoomCellLayoutConstants.outgoingBubbleBackgroundMargins.left
|
||||
|
||||
// TODO: Use constants
|
||||
// Same as outgoing message
|
||||
let rightMargin: CGFloat = 34.0
|
||||
let leftMargin: CGFloat = 80.0
|
||||
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = rightMargin
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = leftMargin
|
||||
self.setupBubbleDecorations()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user