mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Rename BubbleCellContentView to RoomCellContentView.
This commit is contained in:
@@ -17,7 +17,7 @@ limitations under the License.
|
||||
import UIKit
|
||||
|
||||
@objc protocol BaseRoomCellProtocol: Themable {
|
||||
var bubbleCellContentView: BubbleCellContentView? { get }
|
||||
var bubbleCellContentView: RoomCellContentView? { get }
|
||||
}
|
||||
|
||||
/// `BaseRoomCell` allows a bubble cell that inherits from this class to embed and manage the default room message outer views and add an inner content view.
|
||||
@@ -32,7 +32,7 @@ class BaseRoomCell: MXKRoomBubbleTableViewCell, BaseRoomCellProtocol {
|
||||
|
||||
// MARK: Public
|
||||
|
||||
weak var bubbleCellContentView: BubbleCellContentView?
|
||||
weak var bubbleCellContentView: RoomCellContentView?
|
||||
|
||||
private(set) var theme: Theme?
|
||||
|
||||
@@ -240,7 +240,7 @@ class BaseRoomCell: MXKRoomBubbleTableViewCell, BaseRoomCellProtocol {
|
||||
guard self.bubbleCellContentView == nil else {
|
||||
return
|
||||
}
|
||||
let bubbleCellContentView = BubbleCellContentView.instantiate()
|
||||
let bubbleCellContentView = RoomCellContentView.instantiate()
|
||||
self.contentView.vc_addSubViewMatchingParent(bubbleCellContentView)
|
||||
self.bubbleCellContentView = bubbleCellContentView
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
|
||||
<capability name="System colors in document resources" minToolsVersion="11.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
@@ -10,7 +8,7 @@
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="zG5-YA-Ijy" customClass="BubbleCellContentView" customModule="Riot" customModuleProvider="target">
|
||||
<view contentMode="scaleToFill" id="zG5-YA-Ijy" customClass="RoomCellContentView" customModule="Riot" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="595" height="97"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
|
||||
+8
-8
@@ -17,9 +17,9 @@
|
||||
import UIKit
|
||||
import Reusable
|
||||
|
||||
/// `BubbleCellContentView` is a container view that display the default room message outer views and enables to manage them. Like pagination title, sender info, read receipts, reactions, encryption status.
|
||||
/// `RoomCellContentView` is a container view that display the default room message outer views and enables to manage them. Like pagination title, sender info, read receipts, reactions, encryption status.
|
||||
@objcMembers
|
||||
final class BubbleCellContentView: UIView, NibLoadable {
|
||||
final class RoomCellContentView: UIView, NibLoadable {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -158,8 +158,8 @@ final class BubbleCellContentView: UIView, NibLoadable {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
class func instantiate() -> BubbleCellContentView {
|
||||
return BubbleCellContentView.loadFromNib()
|
||||
class func instantiate() -> RoomCellContentView {
|
||||
return RoomCellContentView.loadFromNib()
|
||||
}
|
||||
|
||||
// MARK: - Public
|
||||
@@ -172,7 +172,7 @@ final class BubbleCellContentView: UIView, NibLoadable {
|
||||
}
|
||||
|
||||
// MARK: - BubbleCellReadReceiptsDisplayable
|
||||
extension BubbleCellContentView: BubbleCellReadReceiptsDisplayable {
|
||||
extension RoomCellContentView: BubbleCellReadReceiptsDisplayable {
|
||||
|
||||
func addReadReceiptsView(_ readReceiptsView: UIView) {
|
||||
self.readReceiptsContentView.vc_removeAllSubviews()
|
||||
@@ -187,7 +187,7 @@ extension BubbleCellContentView: BubbleCellReadReceiptsDisplayable {
|
||||
}
|
||||
|
||||
// MARK: - BubbleCellReactionsDisplayable
|
||||
extension BubbleCellContentView: BubbleCellReactionsDisplayable {
|
||||
extension RoomCellContentView: BubbleCellReactionsDisplayable {
|
||||
|
||||
func addReactionsView(_ reactionsView: UIView) {
|
||||
self.reactionsContentView.vc_removeAllSubviews()
|
||||
@@ -219,7 +219,7 @@ extension BubbleCellContentView: BubbleCellReactionsDisplayable {
|
||||
}
|
||||
|
||||
// MARK: - BubbleCellThreadSummaryDisplayable
|
||||
extension BubbleCellContentView: BubbleCellThreadSummaryDisplayable {
|
||||
extension RoomCellContentView: BubbleCellThreadSummaryDisplayable {
|
||||
|
||||
func addThreadSummaryView(_ threadSummaryView: ThreadSummaryView) {
|
||||
|
||||
@@ -261,7 +261,7 @@ extension BubbleCellContentView: BubbleCellThreadSummaryDisplayable {
|
||||
}
|
||||
|
||||
// MARK: - RoomCellURLPreviewDisplayable
|
||||
extension BubbleCellContentView: RoomCellURLPreviewDisplayable {
|
||||
extension RoomCellContentView: RoomCellURLPreviewDisplayable {
|
||||
|
||||
func addURLPreviewView(_ urlPreviewView: UIView) {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
/// BubbleCellContentView decoration view items alignment
|
||||
/// RoomCellContentView decoration view items alignment
|
||||
enum RoomCellDecorationAlignment {
|
||||
case left
|
||||
case right
|
||||
|
||||
Reference in New Issue
Block a user