mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Add additional text to beta view
This commit is contained in:
@@ -39,6 +39,7 @@ final class ThreadsBetaCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
public let threadId: String
|
||||
public let infoText: String
|
||||
public let additionalText: String?
|
||||
private let slidingModalPresenter = SlidingModalPresenter()
|
||||
private var coordinator: ThreadsBetaCoordinator?
|
||||
|
||||
@@ -48,9 +49,10 @@ final class ThreadsBetaCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
init(threadId: String, infoText: String) {
|
||||
init(threadId: String, infoText: String, additionalText: String?) {
|
||||
self.threadId = threadId
|
||||
self.infoText = infoText
|
||||
self.additionalText = additionalText
|
||||
super.init()
|
||||
}
|
||||
|
||||
@@ -58,7 +60,9 @@ final class ThreadsBetaCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
func present(from viewController: UIViewController, animated: Bool) {
|
||||
|
||||
let threadsBetaCoordinator = ThreadsBetaCoordinator(threadId: threadId, infoText: infoText)
|
||||
let threadsBetaCoordinator = ThreadsBetaCoordinator(threadId: threadId,
|
||||
infoText: infoText,
|
||||
additionalText: additionalText)
|
||||
threadsBetaCoordinator.delegate = self
|
||||
guard let presentable = threadsBetaCoordinator.toPresentable() as? SlidingModalPresentable.ViewControllerType else {
|
||||
MXLog.error("[ThreadsBetaCoordinatorBridgePresenter] Presentable is not 'SlidingModalPresentable'")
|
||||
|
||||
Reference in New Issue
Block a user