File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
ForPDA/Sources/Modules/ArticlePages Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,10 @@ extension ArticlePagesVC: ArticlePagesVCProtocol {
118118 }
119119
120120 func reconfigureHeader( model: ArticleHeaderViewModel ) {
121- headerView. configure ( model: model)
122- configureNavigationTitle ( model. title)
121+ Task { @MainActor in
122+ headerView. configure ( model: model)
123+ configureNavigationTitle ( model. title)
124+ }
123125 }
124126}
125127
@@ -302,10 +304,12 @@ extension ArticlePagesVC: ArticlePageControllerDelegate {
302304extension ArticlePagesVC {
303305
304306 private func configureNavigationTitle( _ deeplinkTitle: String ? = nil ) {
305- let label = MarqueeLabel ( frame: . zero, rate: 30 , fadeLength: 0 )
306- label. text = deeplinkTitle != nil ? deeplinkTitle : presenter. article. info? . title
307- label. fadeLength = 30
308- navigationItem. titleView = label
307+ Task { @MainActor in
308+ let label = MarqueeLabel ( frame: . zero, rate: 30 , fadeLength: 0 )
309+ label. text = deeplinkTitle != nil ? deeplinkTitle : presenter. article. info? . title
310+ label. fadeLength = 30
311+ navigationItem. titleView = label
312+ }
309313 }
310314
311315 private func configureMenu( ) {
You can’t perform that action at this time.
0 commit comments