Thursday, October 29, 2026
HomeiOS Developmentios - UI just isn't updating after Protocol name Xcode

ios – UI just isn’t updating after Protocol name Xcode

[ad_1]

That is my protocol

 protocol PresenterToViewProtocol: AnyObject{
func showMovieList(MovieList: Array<movieModel>)

 }

Right here o name showMovieListMethod

extension MoviePresenter : InteractorToPresenterProtocol {
func movieFetchSuccess(movieModelArray: Array<movieModel>) {
    view?.showMovieList(MovieList: movieModelArray)
  }

}

// on MovieListViewController confirmed delegate

extension MovieListViewController:PresenterToViewProtocol{
func showMovieList(MovieList: Array<movieModel>) {
        self.Films = MovieList
         self.cowl.backgroundColor = UIColor.purple
         print(self.motion pictures.rely)
        self.trandingTableView.reloadData()
 }
}

on showMovieList perform name, it is printing the full rely of flicks. However after I reloadtableview() desk view just isn’t interacting is displaying any information. Even after I set to vary the background of a view it is not altering. after I set breakpoint is’ cease. So protocol known as correctly however UI just isn’t updating. i search in google did not discover related reply.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments