Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Fix TabBar description
Browse files Browse the repository at this point in the history
  • Loading branch information
sampettersson committed Aug 20, 2021
1 parent 9387d79 commit 00c769e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Presentation/Journey/TabbedJourney.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import Flow
import UIKit

extension UIViewController {
func makeStandalone<J: JourneyPresentation>(_ presentation: J, dismisser: @escaping (Error?) -> Void) -> (
func makeStandalone<J: JourneyPresentation>(
_ presentation: J,
dismisser: @escaping (Error?) -> Void
) -> (
viewController: UIViewController,
configurer: () -> Void,
bag: DisposeBag
Expand All @@ -24,8 +27,8 @@ extension UIViewController {
let transformedResult = presentation.transform(result)

let presentationEvent = PresentationEvent.willPresent(
.init("\(type(of: presentation.presentable))"),
from: .init(""),
.init(vc.presentationDescription),
from: .init(self.presentationDescription),
styleName: "default"
)

Expand Down
4 changes: 2 additions & 2 deletions Presentation/Journey/UIWindow+Journey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ extension UIWindow {
let transformedResult = presentation.transform(result)

let presentationEvent = PresentationEvent.willPresent(
.init(vc.debugPresentationTitle ?? ""),
from: .init(rootViewController?.debugPresentationTitle ?? ""),
.init(vc.presentationDescription),
from: .init(rootViewController?.presentationDescription ?? ""),
styleName: "default"
)

Expand Down

0 comments on commit 00c769e

Please sign in to comment.