Skip to content

Commit 2abc9a5

Browse files
committed
Squashed commit of the following: commit 4c23b03 Author: 0Hooni <thddudgns972@gmail.com> Date: Sun Oct 19 20:20:32 2025 +0900 Squashed commit of the following: commit a9ec806 Author: 0Hooni <thddudgns972@gmail.com> Date: Mon Sep 15 09:48:09 2025 +0900 chore/#177: ํ”„๋ ˆ์ž„์›Œํฌ ์˜์กด์„ฑ ์ถ”๊ฐ€ commit 3f356c8 Author: 0Hooni <thddudgns972@gmail.com> Date: Mon Sep 15 09:47:51 2025 +0900 fix/#177: ๋ฐฐ๋„ˆ ์„ ํƒ์‹œ ๋ฐœ์ƒํ•˜๋˜ ์ธ๋ฑ์Šค ์—๋Ÿฌ ํ•ด๊ฒฐ commit ae8a183 Author: 0Hooni <thddudgns972@gmail.com> Date: Fri Sep 12 20:45:39 2025 +0900 docs/#176: ๋ฌธ์ œ ๋ฒ”์œ„ ์ฃผ์„ ์ถ”๊ฐ€ commit 3251ccb Author: 0Hooni <thddudgns972@gmail.com> Date: Fri Sep 12 20:45:20 2025 +0900 fix/#176: ํ™ˆํ™”๋ฉด ๋ฌดํ•œ์บ๋Ÿฌ์…€ ์—๋Ÿฌ ์ž„์‹œ ํ•ด๊ฒฐ - ์ธ๋ฑ์Šค๊ฐ€ 1 ์ด์ƒ์ผ๋•Œ๋งŒ ๋™์ž‘ํ•˜๋„๋ก ์ˆ˜์ •
1 parent e579b71 commit 2abc9a5

File tree

3 files changed

+30
-15
lines changed

3 files changed

+30
-15
lines changed

โ€ŽPoppool/PresentationLayer/Presentation/Presentation.xcodeproj/project.pbxprojโ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
05125BA12DB6275C001342A2 /* PanModal in Frameworks */ = {isa = PBXBuildFile; productRef = 05125BA02DB6275C001342A2 /* PanModal */; };
1212
051631302DC3D1FD00A6C0D1 /* DesignSystem.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0516312F2DC3D1FD00A6C0D1 /* DesignSystem.framework */; };
1313
0520B78D2E7410BF009E4BF3 /* RxRelay in Frameworks */ = {isa = PBXBuildFile; productRef = 0520B78C2E7410BF009E4BF3 /* RxRelay */; };
14+
0520C7222E77999F009E4BF3 /* LoginFeatureInterface.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0520C7212E77999F009E4BF3 /* LoginFeatureInterface.framework */; };
1415
0522C1E12DB67C8300B141FF /* RxSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 0522C1E02DB67C8300B141FF /* RxSwift */; };
1516
055C24D72E28FC6200AD389C /* PresentationInterface.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05734C352DCDF6EC0093825D /* PresentationInterface.framework */; };
1617
055C24E32E28FCA000AD389C /* DesignSystem.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0516312F2DC3D1FD00A6C0D1 /* DesignSystem.framework */; };
@@ -51,6 +52,7 @@
5152

5253
/* Begin PBXFileReference section */
5354
0516312F2DC3D1FD00A6C0D1 /* DesignSystem.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = DesignSystem.framework; sourceTree = BUILT_PRODUCTS_DIR; };
55+
0520C7212E77999F009E4BF3 /* LoginFeatureInterface.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = LoginFeatureInterface.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5456
055C24D02E28FC3800AD389C /* PresentationTesting.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PresentationTesting.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5557
05734C352DCDF6EC0093825D /* PresentationInterface.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PresentationInterface.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5658
05734C402DCDF7190093825D /* SearchFeatureInterface.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = SearchFeatureInterface.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -107,6 +109,7 @@
107109
05C1D62C2DB53A8200508FFD /* DomainInterface.framework in Frameworks */,
108110
05734C3C2DCDF6FE0093825D /* PresentationInterface.framework in Frameworks */,
109111
05125B982DB626E3001342A2 /* ReactorKit in Frameworks */,
112+
0520C7222E77999F009E4BF3 /* LoginFeatureInterface.framework in Frameworks */,
110113
05BDD5CF2DB6770300C1E192 /* Lottie in Frameworks */,
111114
08B2A35B2DB66B5A00E57EFA /* FloatingPanel in Frameworks */,
112115
08B2A3612DB66BAB00E57EFA /* Then in Frameworks */,
@@ -150,6 +153,7 @@
150153
05C1D6292DB53A8200508FFD /* Frameworks */ = {
151154
isa = PBXGroup;
152155
children = (
156+
0520C7212E77999F009E4BF3 /* LoginFeatureInterface.framework */,
153157
05734C482DCDF7960093825D /* DesignSystem.framework */,
154158
05734C402DCDF7190093825D /* SearchFeatureInterface.framework */,
155159
0516312F2DC3D1FD00A6C0D1 /* DesignSystem.framework */,

โ€ŽPoppool/PresentationLayer/Presentation/Presentation/Scene/Home/Main/HomeReactor.swiftโ€Ž

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,26 @@ final class HomeReactor: Reactor {
353353
} else {
354354
switch indexPath.section {
355355
case 0:
356-
if let id = loginImageBannerSection.inputDataList.first?.idList[indexPath.row - 1] {
357-
let controller = DetailController()
358-
controller.reactor = DetailReactor(
359-
popUpID: id,
360-
userAPIUseCase: userAPIUseCase,
361-
popUpAPIUseCase: DIContainer.resolve(PopUpAPIUseCase.self),
362-
commentAPIUseCase: DIContainer.resolve(CommentAPIUseCase.self),
363-
preSignedUseCase: DIContainer.resolve(PreSignedUseCase.self)
364-
)
365-
currentController.navigationController?.pushViewController(controller, animated: true)
356+
if indexPath.row == 0,
357+
let id = loginImageBannerSection.inputDataList.first?.idList[indexPath.row] {
358+
moveToDetail(id: id)
359+
} else if indexPath.row != 0,
360+
let id = loginImageBannerSection.inputDataList.first?.idList[indexPath.row - 1] {
361+
moveToDetail(id: id)
366362
}
363+
364+
func moveToDetail(id: Int64) {
365+
let controller = DetailController()
366+
controller.reactor = DetailReactor(
367+
popUpID: id,
368+
userAPIUseCase: userAPIUseCase,
369+
popUpAPIUseCase: DIContainer.resolve(PopUpAPIUseCase.self),
370+
commentAPIUseCase: DIContainer.resolve(CommentAPIUseCase.self),
371+
preSignedUseCase: DIContainer.resolve(PreSignedUseCase.self)
372+
)
373+
currentController.navigationController?.pushViewController(controller, animated: true)
374+
}
375+
367376
case 2:
368377
let controller = HomeListController()
369378
controller.reactor = HomeListReactor(

โ€ŽPoppool/PresentationLayer/Presentation/Presentation/Scene/Home/Main/View/ImageBannerSection/ImageBannerSection/ImageBannerSectionCell.swiftโ€Ž

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@ final class ImageBannerSectionCell: UICollectionViewCell {
9494
playButton.isHidden = true
9595
isAutoBannerPlay = true
9696
autoScrollTimer = Timer.scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
97-
guard let self = self else { return }
98-
self.contentCollectionView.scrollToItem(
99-
at: .init(row: self.currentIndex + 1, section: 0),
100-
at: .centeredHorizontally, animated: true
101-
)
97+
guard let self else { return }
98+
if self.contentCollectionView.numberOfItems(inSection: 0) > 1 {
99+
self.contentCollectionView.scrollToItem(
100+
at: .init(row: self.currentIndex + 1, section: 0),
101+
at: .centeredHorizontally, animated: true
102+
)
103+
}
102104
}
103105
}
104106
}

0 commit comments

Comments
ย (0)