From e3f1623e562f1933f301570cc516fb192ec2b7e6 Mon Sep 17 00:00:00 2001 From: hyungyu Kim Date: Sun, 28 Nov 2021 02:21:46 +0900 Subject: [PATCH] =?UTF-8?q?[ADD]=20#88=20-=20=EB=AA=85=ED=95=A8=EC=83=9D?= =?UTF-8?q?=EC=84=B1=EB=B7=B0=EC=97=90=EC=84=9C=20=ED=94=BC=EC=BB=A4?= =?UTF-8?q?=EB=B7=B0=EB=A1=9C=20=EC=83=9D=EB=85=84=EC=9B=94=EC=9D=BC,=20mb?= =?UTF-8?q?ti=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Descriptions - 주석삭제 - FrontCardCreationViewCell 에 estimatedItemSize 를 zero 으로 설정(스보 설정 대신) --- .../Resouces/Extensions/UIViewController+Extension.swift | 8 -------- .../FrontCardCreationCollectionViewCell.swift | 4 ++++ .../CreationCard/FrontCardCreationCollectionViewCell.xib | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/NADA-iOS-forRelease/Resouces/Extensions/UIViewController+Extension.swift b/NADA-iOS-forRelease/Resouces/Extensions/UIViewController+Extension.swift index d94312d9..020a6412 100644 --- a/NADA-iOS-forRelease/Resouces/Extensions/UIViewController+Extension.swift +++ b/NADA-iOS-forRelease/Resouces/Extensions/UIViewController+Extension.swift @@ -16,18 +16,10 @@ extension UIViewController { cancelAction: ((UIAlertAction) -> Void)? = nil, deleteAction: ((UIAlertAction) -> Void)?, completion: (() -> Void)? = nil) { - let alertViewController = UIAlertController(title: title, message: message, preferredStyle: .alert) - // FIXME: - 민재선배 아래주석 삭제해도 되나요?? - // alertViewController.setTitle(font: UIFont.boldSystemFont(ofSize: 17), color: UIColor.white) - // alertViewController.setMessage(font: UIFont.systemFont(ofSize: 13), color: UIColor.white) - // alertViewController.setTint(color: .mainBlue) - - // alertViewController.view.subviews.first?.subviews.first?.subviews.first?.backgroundColor = UIColor(red: 30/255, green: 30/255, blue: 30/255, alpha: 3/4) - let cancelAction = UIAlertAction(title: "취소", style: .cancel, handler: cancelAction) alertViewController.addAction(cancelAction) diff --git a/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.swift b/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.swift index f3d7353d..97f1e649 100644 --- a/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.swift +++ b/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.swift @@ -59,6 +59,7 @@ extension FrontCardCreationCollectionViewCell { backgroundSettingCollectionView.backgroundColor = .background let collectionViewLayout = backgroundSettingCollectionView.collectionViewLayout as? UICollectionViewFlowLayout + collectionViewLayout?.estimatedItemSize = .zero collectionViewLayout?.scrollDirection = .horizontal let backgroundAttributeString = NSMutableAttributedString(string: "*명함의 배경을 선택해 주세요.") @@ -176,6 +177,9 @@ extension FrontCardCreationCollectionViewCell: UICollectionViewDelegateFlowLayou return UIEdgeInsets(top: 0, left: 26, bottom: 0, right: 26) } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { + return 0 + } + func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { return 12 } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { diff --git a/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.xib b/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.xib index b0099cc2..bbe18b1b 100644 --- a/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.xib +++ b/NADA-iOS-forRelease/Sources/Cells/CreationCard/FrontCardCreationCollectionViewCell.xib @@ -36,7 +36,7 @@ - +