Files
Morgan Pretty ceb6405bb6 Further progress wiring up Session Pro to Pro Settings
• Added some convenience code to clean up the DSL of consuming events
• Cleaned up some profile name logic
• Updated the code to use the `displayNameRetriever` approach where possible instead of resorting to a database query on the main thread
• Updated the ObservationBuilder to accept a stream (so we can observe events directly from a stream)
• Wired a bunch of the Session Pro Settings UI to the proper pro state
• Fixed a bug where the toggle wouldn't be tinted the right colour in SwiftUI screens
• Fixed a bug where mentions wouldn't work correctly
• Fixed a bug where mentions could crash when backspacing
• Fixed a bug where determining whether a string was RTL could cause lag
• Fixed a bug where the attachment and voice message buttons weren't visible in message requests
• Fixed a bug where the scroll to bottom button wouldn't work correctly
2025-11-25 14:33:59 +11:00

18 lines
479 B
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import UIKit
public protocol ReusableView: AnyObject {
static var defaultReuseIdentifier: String { get }
}
public extension ReusableView where Self: UIView {
static var defaultReuseIdentifier: String {
return String(describing: self.self)
}
}
extension UICollectionReusableView: ReusableView {}
extension UITableViewCell: ReusableView {}
extension UITableViewHeaderFooterView: ReusableView {}