Skip to content

Commit

Permalink
[FIX] #145 - 메인 flip 속도 조절 및 공유버튼 히든
Browse files Browse the repository at this point in the history
- 명함 메인뷰 공유하기 보이게 하기
- 팀나다뷰 공유하기 hidden
  • Loading branch information
hyun99999 committed Dec 14, 2021
1 parent 3914e85 commit 7f9097e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NADA-iOS-forRelease/Sources/Cells/CardCell/MainCardCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class MainCardCell: CardCell {
// MARK: - Properties

private var isFront = true
private var isShareable = true

public var isShareable: Bool?
public var cardDataModel: Card?

// MARK: - View Life Cycle
Expand Down Expand Up @@ -49,7 +49,7 @@ extension MainCardCell {
cardDataModel.mbti,
cardDataModel.instagram ?? "",
cardDataModel.link ?? "",
isShareable: isShareable)
isShareable: isShareable ?? false)

contentView.addSubview(frontCard)
}
Expand Down Expand Up @@ -81,7 +81,7 @@ extension MainCardCell {
cardDataModel.oneTMI ?? "",
cardDataModel.twoTMI ?? "",
cardDataModel.thirdTMI ?? "",
isShareable: isShareable)
isShareable: isShareable ?? false)

contentView.addSubview(backCard)
isFront = false
Expand All @@ -98,7 +98,7 @@ extension MainCardCell {
cardDataModel.mbti,
cardDataModel.instagram ?? "",
cardDataModel.link ?? "",
isShareable: isShareable)
isShareable: isShareable ?? false)

contentView.addSubview(frontCard)
isFront = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ extension FrontViewController: VerticalCardSwiperDatasource {
guard let cell = verticalCardSwiperView.dequeueReusableCell(withReuseIdentifier: Const.Xib.mainCardCell, for: index) as? MainCardCell else { return CardCell() }
guard let cardDataList = cardDataList else { return CardCell() }
cell.initCell(cardDataModel: cardDataList[index])
cell.isShareable = true
cell.setFrontCard()

return cell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ extension TeamNADAViewController: VerticalCardSwiperDatasource {
guard let cell = verticalCardSwiperView.dequeueReusableCell(withReuseIdentifier: Const.Xib.mainCardCell, for: index) as? MainCardCell else { return CardCell() }
guard let cardDataList = cardDataList else { return CardCell() }
cell.initCell(cardDataModel: cardDataList[index])
cell.isShareable = false
cell.setFrontCard()

return cell
Expand Down

0 comments on commit 7f9097e

Please sign in to comment.