@@ -36,7 +36,6 @@ final class HomePresenter {
3636 /// List of airing today shows for UI display
3737 private var airingTodayShows : [ AiringTodayPresentation ] = [ ]
3838
39-
4039 // MARK: - Init
4140 init ( view: PresenterToViewHomeProtocol ? ,
4241 interactor: PresenterToInteractorHomeProtocol ,
@@ -52,14 +51,11 @@ final class HomePresenter {
5251 }
5352}
5453
55-
5654// MARK: - ViewToPresenterHomeProtocol
5755/// Handles actions triggered by the View layer.
5856@MainActor
5957extension HomePresenter : ViewToPresenterHomeProtocol {
6058
61-
62-
6359 func viewDidLoad( ) {
6460 view? . setBackColorAble ( color: " backColor " )
6561 view? . setNavigationTitle ( title: LocalizableUI . homePageNavTitle. localized)
@@ -69,19 +65,14 @@ extension HomePresenter: ViewToPresenterHomeProtocol {
6965 }
7066 }
7167
72-
73-
7468 func loadData( ) async {
7569 view? . startLoading ( )
7670 await interactor. loadData ( )
7771 view? . finishLoading ( )
7872 }
7973
80-
81-
8274}
8375
84-
8576// MARK: - CollectionViewSources
8677/// Provides collection view data, layout, and interaction logic.
8778extension HomePresenter {
@@ -106,7 +97,6 @@ extension HomePresenter {
10697 }
10798 }
10899
109-
110100 func numberOfSections( ) -> Int {
111101 SectionType . allCases. count
112102 }
@@ -123,7 +113,6 @@ extension HomePresenter {
123113 }
124114 }
125115
126-
127116 func didSelectItem( section: Int , item: Int ) {
128117 guard let sectionType = SectionType ( rawValue: section) else { return }
129118 switch sectionType {
@@ -137,7 +126,7 @@ extension HomePresenter {
137126 }
138127
139128 func titleForSection( at section: Int ) -> GenericCollectionViewKit . HeaderViewItem {
140- var headerViewItem : HeaderViewItem
129+ var headerViewItem : HeaderViewItem
141130 guard let sectionType = SectionType ( rawValue: section) else {
142131 headerViewItem = . init( title: " " , sizeType: . empty)
143132 return headerViewItem
@@ -160,7 +149,6 @@ extension HomePresenter {
160149 return headerViewItem
161150 }
162151
163-
164152 func onTappedTitleButton( buttonType: TitleForSectionButtonType , section: Int ) {
165153 guard let sectionType = SectionType ( rawValue: section) else { return }
166154
@@ -196,7 +184,6 @@ extension HomePresenter {
196184 }
197185}
198186
199-
200187// MARK: - InteractorToPresenterHomeProtocol
201188/// Receives data from the Interactor and updates the view.
202189extension HomePresenter : InteractorToPresenterHomeProtocol {
@@ -219,4 +206,3 @@ extension HomePresenter: InteractorToPresenterHomeProtocol {
219206 }
220207
221208}
222-
0 commit comments