Skip to content

Commit

Permalink
✨ :: [#135] 먹젠 타이틀 레이블 타입 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunho0922 committed Jan 1, 2024
1 parent 28f01ac commit e8b6624
Showing 1 changed file with 69 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,70 @@
//
// MukgenTitleLabelType.swift
// MukgenKit
//
// Created by 이은호 on 1/1/24.
// Copyright © 2024 Mukgen. All rights reserved.
//

import Foundation
import UIKit

public enum MukgenTitleLabelType: String, RawRepresentable {
case loginTitle
case startTitle
case emailTitle
case idPwTitle
case telTitle
case checkTitle
case nicknameTitle

public var title: String? {
switch self {
case .loginTitle:
return "로그인을 위한\n정보를 입력해주세요."
case .startTitle:
return "시작하기"
case .emailTitle:
return "이메일 인증을 진행해주세요."
case .checkTitle:
return "인증번호를 입력해주세요."
case .idPwTitle:
return "아이디와\n비밀번호를 입력해주세요."
case .telTitle:
return "전화번호를 입력해주세요."
case .nicknameTitle:
return "등록하기"
}
}

public var subTitle: String? {
switch self {
case .startTitle:
return "먹젠과 함께 학교에서 즐거운 식생활을 누려보세요."
case .emailTitle:
return "입력한 이메일로 인증번호가 전송됩니다."
case .checkTitle:
return " 로 메일이 전송되었습니다."
case .idPwTitle:
return nil
case .telTitle:
return "배달 파티 모집 시 사용됩니다."
case .nicknameTitle:
return nil
case .loginTitle:
return nil
}
}

public var titleNuberOfLine: Int? {
switch self {
case .loginTitle:
return 2
case .startTitle:
return 1
case .emailTitle:
return 1
case .checkTitle:
return 1
case .idPwTitle:
return 2
case .telTitle:
return 1
case .nicknameTitle:
return 1
}
}
}

0 comments on commit e8b6624

Please sign in to comment.