From 8bc4b5137ef0ac66b2c6bc41e2c1b6fff1213b04 Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:01:03 +0900 Subject: [PATCH 1/8] =?UTF-8?q?:bug:=20=ED=83=9C=EA=B7=B8=EC=99=80=20?= =?UTF-8?q?=EC=9E=AC=EC=83=9D=EB=B7=B0=20=EC=99=94=EB=8B=A4=EA=B0=94?= =?UTF-8?q?=EB=8B=A4=20=EC=8B=9C=20=EB=88=84=EC=A0=81=EB=90=98=EB=8D=98=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Layover/Layover/Scenes/Profile/ProfileInteractor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/Layover/Layover/Scenes/Profile/ProfileInteractor.swift b/iOS/Layover/Layover/Scenes/Profile/ProfileInteractor.swift index 1789ddb..4ea5cc2 100644 --- a/iOS/Layover/Layover/Scenes/Profile/ProfileInteractor.swift +++ b/iOS/Layover/Layover/Scenes/Profile/ProfileInteractor.swift @@ -60,7 +60,7 @@ final class ProfileInteractor: ProfileBusinessLogic, ProfileDataStore { guard let userProfile = await userWorker?.fetchProfile(by: profileId) else { return false } - + posts = [] nickname = userProfile.username introduce = userProfile.introduce From b2de18287d377cba7a3317ade482e610dc8624b3 Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:37:07 +0900 Subject: [PATCH 2/8] =?UTF-8?q?:recycle:=20=EC=85=80=20=EB=A1=9C=EB=94=A9?= =?UTF-8?q?=20=EC=86=8D=EB=8F=84=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scenes/Playback/Cell/PlaybackCell.swift | 7 ++- .../Scenes/Playback/PlaybackInteractor.swift | 53 ++++++++++++------- .../Scenes/Playback/PlaybackModels.swift | 31 +++++++++-- .../Scenes/Playback/PlaybackPresenter.swift | 6 +++ .../Scenes/Playback/PlaybackView.swift | 4 +- .../Playback/PlaybackViewController.swift | 14 ++++- 6 files changed, 85 insertions(+), 30 deletions(-) diff --git a/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift b/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift index c61c01e..0f06ca2 100644 --- a/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift +++ b/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift @@ -41,14 +41,17 @@ final class PlaybackCell: UICollectionViewCell { playbackView.setDescriptionViewUI() playbackView.profileLabel.text = post.member.username setTagButtons(with: post.tags) - playbackView.setProfileButton(member: post.member) - playbackView.setLocationText(location: post.board.location ?? "이름 모를 곳") memberID = nil memberID = post.member.memberID playbackView.profileButton.removeTarget(nil, action: nil, for: .allEvents) playbackView.profileButton.addTarget(self, action: #selector(profileButtonDidTap), for: .touchUpInside) } + func setProfileImageAndLocation(imageData: Data?, location: String) { + playbackView.setLocationText(location: location) + playbackView.setProfileButton(imageData: imageData) + } + func addAVPlayer(url: URL) { playbackView.resetPlayer() playbackView.addAVPlayer(url: url) diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift index 6b6d518..bcbe41e 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift @@ -31,6 +31,8 @@ protocol PlaybackBusinessLogic { func moveToTagPlay(with request: PlaybackModels.MoveToRelativeView.Request) @discardableResult func fetchPosts() -> Task + @discardableResult + func loadProfileImageAndLocation(with request: PlaybackModels.LoadProfileImageAndLocation.Request) -> Task } protocol PlaybackDataStore: AnyObject { @@ -84,7 +86,7 @@ final class PlaybackInteractor: PlaybackBusinessLogic, PlaybackDataStore { posts = worker.makeInfiniteScroll(posts: posts) self.posts = posts } - let videos: [Models.PlaybackVideo] = await transPostToVideo(posts) + let videos: [Models.PlaybackVideo] = transPostToVideo(posts) let response: Models.LoadPlaybackVideoList.Response = Models.LoadPlaybackVideoList.Response(videos: videos) await MainActor.run { presenter?.presentVideoList(with: response) @@ -251,25 +253,23 @@ final class PlaybackInteractor: PlaybackBusinessLogic, PlaybackDataStore { previousCell.playbackView.playPlayer() } - private func transPostToVideo(_ posts: [Post]) async -> [Models.PlaybackVideo] { - return await posts.asyncCompactMap { post in + private func transPostToVideo(_ posts: [Post]) -> [Models.PlaybackVideo] { + return posts.compactMap { post in guard let videoURL: URL = post.board.videoURL else { return nil } - async let profileImageData = self.worker?.fetchImageData(with: post.member.profileImageURL) - async let thumbnailImageData = self.worker?.fetchImageData(with: post.board.thumbnailImageURL) - async let location = self.worker?.transLocation(latitude: post.board.latitude, longitude: post.board.longitude) - return Models.PlaybackVideo(displayPost: Models.DisplayedPost( - member: Models.Member( - memberID: post.member.identifier, - username: post.member.username, - profileImageData: await profileImageData), - board: Models.Board( - boardID: post.board.identifier, - title: post.board.title, - description: post.board.description, - thumbnailImageData: await thumbnailImageData, - videoURL: videoURL, - location: await location), - tags: post.tag)) + return Models.PlaybackVideo( + displayedPost: Models.DisplayedPost( + member: Models.Member( + memberID: post.member.identifier, + username: post.member.username, + profileImageURL: post.member.profileImageURL), + board: Models.Board( + boardID: post.board.identifier, + title: post.board.title, + description: post.board.title, + videoURL: videoURL, + latitude: post.board.latitude, + longitude: post.board.longitude), + tags: post.tag)) } } @@ -314,7 +314,7 @@ final class PlaybackInteractor: PlaybackBusinessLogic, PlaybackDataStore { } guard let newPosts else { return false } self.posts?.append(contentsOf: newPosts) - let videos: [Models.PlaybackVideo] = await transPostToVideo(newPosts) + let videos: [Models.PlaybackVideo] = transPostToVideo(newPosts) let response: Models.LoadPlaybackVideoList.Response = Models.LoadPlaybackVideoList.Response(videos: videos) await MainActor.run { presenter?.presentLoadFetchVideos(with: response) @@ -325,4 +325,17 @@ final class PlaybackInteractor: PlaybackBusinessLogic, PlaybackDataStore { return false } } + + func loadProfileImageAndLocation(with request: PlaybackModels.LoadProfileImageAndLocation.Request) -> Task { + Task { + async let profileImageData = self.worker?.fetchImageData(with: request.profileImageURL) + async let location: String? = self.worker?.transLocation(latitude: request.latitude, longitude: request.longitude) + let response: Models.LoadProfileImageAndLocation.Response = Models.LoadProfileImageAndLocation.Response(curCell: request.curCell, profileImageData: await profileImageData, location: await location) + await MainActor.run { + presenter?.presentLoadProfileImageAndLocation(with: response) + return true + } + return false + } + } } diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackModels.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackModels.swift index f53b77d..905d63b 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackModels.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackModels.swift @@ -12,7 +12,7 @@ enum PlaybackModels { // MARK: - Properties Type struct PlaybackVideo: Hashable { var id: UUID = UUID() - let displayPost: DisplayedPost + let displayedPost: DisplayedPost } enum ParentView { @@ -32,16 +32,16 @@ enum PlaybackModels { struct Member: Hashable { let memberID: Int let username: String - let profileImageData: Data? + let profileImageURL: URL? } struct Board: Hashable { let boardID: Int let title: String let description: String? - let thumbnailImageData: Data? let videoURL: URL - let location: String? + let latitude: Double + let longitude: Double } // MARK: - UseCase Load Video List @@ -235,4 +235,27 @@ enum PlaybackModels { } } + + // MARK: - UseCase Load ProfileImage & Location + + enum LoadProfileImageAndLocation { + struct Request { + let curCell: PlaybackCell + let profileImageURL: URL? + let latitude: Double + let longitude: Double + } + + struct Response { + let curCell: PlaybackCell + let profileImageData: Data? + let location: String? + } + + struct ViewModel { + let curCell: PlaybackCell + let profileImageData: Data? + let location: String + } + } } diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackPresenter.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackPresenter.swift index 75ff4ba..5bfafa8 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackPresenter.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackPresenter.swift @@ -26,6 +26,7 @@ protocol PlaybackPresentationLogic { func presentDeleteVideo(with response: PlaybackModels.DeletePlaybackVideo.Response) func presentProfile() func presentTagPlay() + func presentLoadProfileImageAndLocation(with response: PlaybackModels.LoadProfileImageAndLocation.Response) } final class PlaybackPresenter: PlaybackPresentationLogic { @@ -128,4 +129,9 @@ final class PlaybackPresenter: PlaybackPresentationLogic { func presentTagPlay() { viewController?.routeToTagPlay() } + + func presentLoadProfileImageAndLocation(with response: PlaybackModels.LoadProfileImageAndLocation.Response) { + let viewModel: Models.LoadProfileImageAndLocation.ViewModel = Models.LoadProfileImageAndLocation.ViewModel(curCell: response.curCell, profileImageData: response.profileImageData, location: response.location ?? "이름 모를 곳") + viewController?.setProfileImageAndLocation(viewModel: viewModel) + } } diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift index 90b2f64..84aa79d 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift @@ -201,8 +201,8 @@ final class PlaybackView: UIView { } } - func setProfileButton(member: PlaybackModels.Member) { - if let imageData: Data = member.profileImageData { + func setProfileButton(imageData: Data?) { + if let imageData { profileButton.setImage(UIImage(data: imageData), for: .normal) } else { profileButton.setImage(UIImage.profile, for: .normal) diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift index 6416113..9d56ba9 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift @@ -33,6 +33,7 @@ protocol PlaybackDisplayLogic: AnyObject { func deleteVideo(viewModel: PlaybackModels.DeletePlaybackVideo.ViewModel) func routeToProfile() func routeToTagPlay() + func setProfileImageAndLocation(viewModel: PlaybackModels.LoadProfileImageAndLocation.ViewModel) } final class PlaybackViewController: BaseViewController { @@ -244,14 +245,19 @@ extension PlaybackViewController: PlaybackDisplayLogic { playbackCollectionView.register(PlaybackCell.self, forCellWithReuseIdentifier: PlaybackCell.identifier) dataSource = UICollectionViewDiffableDataSource(collectionView: playbackCollectionView) { (collectionView, indexPath, playbackVideo) -> UICollectionViewCell? in guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: PlaybackCell.identifier, for: indexPath) as? PlaybackCell else { return PlaybackCell() } - cell.setPlaybackContents(post: playbackVideo.displayPost) + cell.setPlaybackContents(post: playbackVideo.displayedPost) if let teleportIndex = viewModel.teleportIndex { if indexPath.row == 0 || indexPath.row == teleportIndex { return cell } } + cell.addAVPlayer(url: playbackVideo.displayedPost.board.videoURL) + self.interactor?.loadProfileImageAndLocation(with: Models.LoadProfileImageAndLocation.Request( + curCell: cell, + profileImageURL: playbackVideo.displayedPost.member.profileImageURL, + latitude: playbackVideo.displayedPost.board.latitude, + longitude: playbackVideo.displayedPost.board.longitude)) cell.delegate = self - cell.addAVPlayer(url: playbackVideo.displayPost.board.videoURL) return cell } } @@ -298,6 +304,10 @@ extension PlaybackViewController: PlaybackDisplayLogic { func routeToTagPlay() { router?.routeToTagPlay() } + + func setProfileImageAndLocation(viewModel: PlaybackModels.LoadProfileImageAndLocation.ViewModel) { + viewModel.curCell.setProfileImageAndLocation(imageData: viewModel.profileImageData, location: viewModel.location) + } } extension PlaybackViewController: UICollectionViewDelegateFlowLayout { From 978fe3fac25c3a83c048554200216a668c412b48 Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:49:54 +0900 Subject: [PATCH 3/8] =?UTF-8?q?:wrench:=20descriptionView=ED=81=AC?= =?UTF-8?q?=EA=B8=B0=20description=EC=95=88=EB=93=A4=EC=96=B4=EA=B0=80?= =?UTF-8?q?=EA=B3=A0=20title=EB=93=A4=EC=96=B4=EA=B0=84=EA=B1=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Layover/Layover/DesignSystem/LODescriptionView.swift | 2 +- iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift | 2 +- iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iOS/Layover/Layover/DesignSystem/LODescriptionView.swift b/iOS/Layover/Layover/DesignSystem/LODescriptionView.swift index c7f8a23..450fed3 100644 --- a/iOS/Layover/Layover/DesignSystem/LODescriptionView.swift +++ b/iOS/Layover/Layover/DesignSystem/LODescriptionView.swift @@ -8,7 +8,7 @@ import UIKit final class LODescriptionView: UIView { - static let descriptionWidth: CGFloat = 170 + static let descriptionWidth: CGFloat = 210 static let descriptionHeight: CGFloat = 63 // MARK: - View isTouched State diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift index bcbe41e..4ebe050 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackInteractor.swift @@ -265,7 +265,7 @@ final class PlaybackInteractor: PlaybackBusinessLogic, PlaybackDataStore { board: Models.Board( boardID: post.board.identifier, title: post.board.title, - description: post.board.title, + description: post.board.description, videoURL: videoURL, latitude: post.board.latitude, longitude: post.board.longitude), diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift index 84aa79d..77636d4 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift @@ -51,6 +51,7 @@ final class PlaybackView: UIView { button.layer.borderColor = UIColor.layoverWhite.cgColor button.backgroundColor = .layoverWhite button.clipsToBounds = true + button.imageView?.contentMode = .scaleAspectFill return button }() From 01c9c441f44179ef1a6a8d121a194572c0659fb0 Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 19:09:22 +0900 Subject: [PATCH 4/8] =?UTF-8?q?:wrench:=20=EC=8B=A0=EA=B3=A0=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=94=BD=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Layover/Layover/Network/DTOs/ReportDTO.swift | 2 +- .../Factories/DefaultPostManagerEndPointFactory.swift | 2 +- iOS/Layover/Layover/Scenes/Report/ReportConfigurator.swift | 4 ++-- iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift b/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift index 8588bd8..d2d5dbf 100644 --- a/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift +++ b/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift @@ -10,6 +10,6 @@ import Foundation struct ReportDTO: Codable { let memberId: Int? - let boardID: Int + let boardId: Int let reportType: String } diff --git a/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift b/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift index 061f5de..d337262 100644 --- a/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift +++ b/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift @@ -17,7 +17,7 @@ struct DefaultPostManagerEndPointFactory: PostManagerEndPointFactory { func reportPlaybackVideoEndpoint(boardID: Int, reportType: String) -> EndPoint> { let bodyParmeters: ReportDTO = ReportDTO( memberId: nil, - boardID: boardID, + boardId: boardID, reportType: reportType) return EndPoint( diff --git a/iOS/Layover/Layover/Scenes/Report/ReportConfigurator.swift b/iOS/Layover/Layover/Scenes/Report/ReportConfigurator.swift index 7de9c41..289187d 100644 --- a/iOS/Layover/Layover/Scenes/Report/ReportConfigurator.swift +++ b/iOS/Layover/Layover/Scenes/Report/ReportConfigurator.swift @@ -17,8 +17,8 @@ final class ReportConfigurator: Configurator { let viewController: ReportViewController = viewController let interactor: ReportInteractor = ReportInteractor() let presenter: ReportPresenter = ReportPresenter() -// let worker: ReportWorker = ReportWorker() - let worker: ReportWorkerProtocol = MockReportWorker() + let worker: ReportWorker = ReportWorker() +// let worker: ReportWorkerProtocol = MockReportWorker() let router: ReportRouter = ReportRouter() router.viewController = viewController diff --git a/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift b/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift index 9182dec..f9e499f 100644 --- a/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift +++ b/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift @@ -36,7 +36,7 @@ final class MockReportWorker: ReportWorkerProtocol { do { let bodyParameters = ReportDTO( memberId: nil, - boardID: 1, + boardId: 1, reportType: "청소년에게 유해한 내용입니다.") let endPoint = EndPoint>(path: "/report", method: .POST, From e12b1ee7bc5533c883b28416a058f2b9c2e4d9a7 Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:02:54 +0900 Subject: [PATCH 5/8] =?UTF-8?q?:recycle:=20=EC=BD=94=EB=94=A9=ED=82=A4=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Layover/Layover/Network/DTOs/ReportDTO.swift | 10 ++++++++-- .../Factories/DefaultPostManagerEndPointFactory.swift | 4 ++-- .../Layover/Workers/Mocks/MockReportWorker.swift | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift b/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift index d2d5dbf..69ae128 100644 --- a/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift +++ b/iOS/Layover/Layover/Network/DTOs/ReportDTO.swift @@ -9,7 +9,13 @@ import Foundation struct ReportDTO: Codable { - let memberId: Int? - let boardId: Int + let memberID: Int? + let boardID: Int let reportType: String + + enum CodingKeys: String, CodingKey { + case memberID = "memberId" + case boardID = "boardId" + case reportType + } } diff --git a/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift b/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift index d337262..61e2048 100644 --- a/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift +++ b/iOS/Layover/Layover/Network/EndPoint/Factories/DefaultPostManagerEndPointFactory.swift @@ -16,8 +16,8 @@ protocol PostManagerEndPointFactory { struct DefaultPostManagerEndPointFactory: PostManagerEndPointFactory { func reportPlaybackVideoEndpoint(boardID: Int, reportType: String) -> EndPoint> { let bodyParmeters: ReportDTO = ReportDTO( - memberId: nil, - boardId: boardID, + memberID: nil, + boardID: boardID, reportType: reportType) return EndPoint( diff --git a/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift b/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift index f9e499f..6a28cd0 100644 --- a/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift +++ b/iOS/Layover/Layover/Workers/Mocks/MockReportWorker.swift @@ -35,8 +35,8 @@ final class MockReportWorker: ReportWorkerProtocol { do { let bodyParameters = ReportDTO( - memberId: nil, - boardId: 1, + memberID: nil, + boardID: 1, reportType: "청소년에게 유해한 내용입니다.") let endPoint = EndPoint>(path: "/report", method: .POST, From c534c2071dfb9bb3a4472599904fb80111911d6e Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:07:21 +0900 Subject: [PATCH 6/8] =?UTF-8?q?:wrench:=20=EB=8D=94=EB=AF=B8=EC=85=80?= =?UTF-8?q?=EC=97=90=20=EC=9D=B4=EC=A0=84=20=EC=98=81=EC=83=81=20=EC=95=88?= =?UTF-8?q?=EB=B3=B4=EC=9D=B4=EA=B2=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resetCode 추가 --- iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift index 9d56ba9..86598ff 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackViewController.swift @@ -248,6 +248,7 @@ extension PlaybackViewController: PlaybackDisplayLogic { cell.setPlaybackContents(post: playbackVideo.displayedPost) if let teleportIndex = viewModel.teleportIndex { if indexPath.row == 0 || indexPath.row == teleportIndex { + cell.playbackView.resetPlayer() return cell } } From dadd264d08c33042fe1f9c9520e12212e1341c58 Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:12:54 +0900 Subject: [PATCH 7/8] =?UTF-8?q?:wrench:=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=ED=85=8C=EB=91=90=EB=A6=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift index 77636d4..3fe80d1 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift @@ -48,7 +48,7 @@ final class PlaybackView: UIView { let button: UIButton = UIButton() button.layer.cornerRadius = 19 button.layer.borderWidth = 1 - button.layer.borderColor = UIColor.layoverWhite.cgColor + button.layer.borderColor = UIColor.grey400.cgColor button.backgroundColor = .layoverWhite button.clipsToBounds = true button.imageView?.contentMode = .scaleAspectFill From ac950c19812460ed5ecb35fe08970c973dc1edd5 Mon Sep 17 00:00:00 2001 From: chopmozzi <44396392+chopmozzi@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:20:33 +0900 Subject: [PATCH 8/8] =?UTF-8?q?:sparkles:=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC,=20=EC=A7=80=EB=8F=84=20=EA=B8=B0=EB=B3=B8?= =?UTF-8?q?=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이제 안 어색함 --- iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift | 1 + iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift b/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift index 0f06ca2..cc783f8 100644 --- a/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift +++ b/iOS/Layover/Layover/Scenes/Playback/Cell/PlaybackCell.swift @@ -39,6 +39,7 @@ final class PlaybackCell: UICollectionViewCell { playbackView.descriptionView.titleLabel.text = post.board.title playbackView.descriptionView.setText(post.board.description ?? "") playbackView.setDescriptionViewUI() + playbackView.profileButton.setImage(UIImage.profile, for: .normal) playbackView.profileLabel.text = post.member.username setTagButtons(with: post.tags) memberID = nil diff --git a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift index 3fe80d1..0b7248e 100644 --- a/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift +++ b/iOS/Layover/Layover/Scenes/Playback/PlaybackView.swift @@ -66,6 +66,7 @@ final class PlaybackView: UIView { private let locationLabel: UILabel = { let label: UILabel = UILabel() label.font = .loFont(type: .body2) + label.text = "이름 모를 곳에서" label.textColor = UIColor.layoverWhite return label }()