Add comments.

This commit is contained in:
SBiOSoftWhare
2020-08-03 19:43:45 +02:00
parent 9956426873
commit c865e7f5d1
9 changed files with 9 additions and 0 deletions
@@ -21,6 +21,7 @@ import MatrixKit
var bubbleCellContentView: BubbleCellContentView? { get }
}
/// `BaseBubbleCell` 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.
@objcMembers
class BaseBubbleCell: MXKRoomBubbleTableViewCell, BaseBubbleCellType {
@@ -17,6 +17,7 @@
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.
@objcMembers
final class BubbleCellContentView: UIView, NibLoadable {
@@ -16,6 +16,7 @@
import Foundation
/// `BubbleCellReactionsDisplayable` is a protocol indicating that a cell support displaying reactions.
@objc protocol BubbleCellReactionsDisplayable {
func addReactionsView(_ reactionsView: UIView)
func removeReactionsView()
@@ -16,6 +16,7 @@
import Foundation
/// `BubbleCellReadReceiptsDisplayable` is a protocol indicating that a cell support displaying read receipts.
@objc protocol BubbleCellReadReceiptsDisplayable {
func addReadReceiptsView(_ readReceiptsView: UIView)
func removeReadReceiptsView()
@@ -20,6 +20,7 @@ import UIKit
static func sizingViewHeightHashValue(from bubbleCellData: MXKRoomBubbleCellData) -> Int
}
/// `SizableBaseBubbleCell` allows a cell using Auto Layout that inherits from this class to automatically return the height of the cell and cache the result.
@objcMembers
class SizableBaseBubbleCell: BaseBubbleCell, SizableBaseBubbleCellType {
@@ -16,6 +16,7 @@
import Foundation
/// `SizingViewHeight` allows to associate a height for a given width to a unique value.
final class SizingViewHeight: Hashable, Equatable, CustomStringConvertible {
// MARK: - Properties
@@ -16,6 +16,7 @@ limitations under the License.
import Foundation
/// `SizingViewHeightStore` allows to store `SizingViewHeight` for a given hash value
final class SizingViewHeightStore {
private var sizes = Set<SizingViewHeight>()