Skip to content

Commit

Permalink
feat: PopupType CoachMark 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
leemhyungyu committed Oct 30, 2024
1 parent d5d4772 commit af57df3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import Foundation
public enum PopupType {
case text(content: String)
case button(content: String, buttonTitle: String)

case coachMark(content: String)
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ private extension PopupView {
WantedSansStyleText(content, style: .subTitle2, color: .secondary)
case .button(let content, _):
WantedSansStyleText(content, style: .subTitle2, color: .secondary)
case .coachMark(let content):
WantedSansStyleText(content, style: .subTitle2, color: .secondary)
}
}

Expand Down Expand Up @@ -69,6 +71,9 @@ private extension PopupView {
.frame(width: 227)
}
.padding(.lg)
case .coachMark:
popupText
.padding(.lg)
}
}
}
Expand All @@ -84,8 +89,9 @@ private extension PopupView {

var height: CGFloat {
switch popupType {
case .button: return 106
case .text: return 42
case .button: return 106
case .text: return 42
case .coachMark: return 42
}
}
}

0 comments on commit af57df3

Please sign in to comment.