Skip to content

Commit

Permalink
[ADD] TeamNADA#88 - 명함생성뷰에서 피커뷰로 생년월일, mbti 설정
Browse files Browse the repository at this point in the history
### Descriptions
- 주석삭제
- FrontCardCreationViewCell 에 estimatedItemSize 를 zero 으로 설정(스보 설정 대신)
  • Loading branch information
hyun99999 committed Nov 27, 2021
1 parent 023b9f0 commit e3f1623
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: "*명함의 배경을 선택해 주세요.")
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<constraints>
<constraint firstAttribute="height" constant="60" id="bbj-v2-jbC"/>
</constraints>
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="OSy-Yq-ISV">
<collectionViewFlowLayout key="collectionViewLayout" automaticEstimatedItemSize="YES" minimumLineSpacing="10" minimumInteritemSpacing="10" id="OSy-Yq-ISV">
<size key="itemSize" width="128" height="128"/>
<size key="headerReferenceSize" width="0.0" height="0.0"/>
<size key="footerReferenceSize" width="0.0" height="0.0"/>
Expand Down

0 comments on commit e3f1623

Please sign in to comment.