Skip to content

Commit 57a344b

Browse files
0Hoonihsw1920
andcommitted
feat/#128 :: 사용자 사진 담아서 이미지 생성하기
Co-Authored-By: seuhong <[email protected]>
1 parent e40afb7 commit 57a344b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

PhotoGether/PresentationLayer/PhotoRoomFeature/PhotoRoomFeature/Source/ViewController/PhotoRoomViewController.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,18 @@ public final class PhotoRoomViewController: BaseViewController, ViewControllerCo
181181
let fetchEmojiListUseCase = FetchEmojiListUseCaseImpl(
182182
shapeRepository: shapeRepositoryImpl
183183
)
184-
let images = [
184+
185+
let imageList = images
186+
187+
188+
let tempImages: [UIImage] = [
189+
imageList[safe: 0] ?? PTGImage.temp3.image,
185190
PTGImage.temp1.image,
186191
PTGImage.temp2.image,
187-
PTGImage.temp3.image,
188-
PTGImage.temp4.image,
192+
imageList[safe: 1] ?? PTGImage.temp4.image
189193
]
190-
let frameImageGenerator = FrameImageGeneratorImpl(images: images)
194+
195+
let frameImageGenerator = FrameImageGeneratorImpl(images: tempImages)
191196

192197
let eventConnectionHostRepository = EventConnectionHostRepositoryImpl(clients: clients)
193198

0 commit comments

Comments
 (0)