-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
69 additions
and
8 deletions.
There are no files selected for viewing
77 changes: 69 additions & 8 deletions
77
Projects/Modules/MukgenKit/Sources/DesignSystem/UILabel/Auth/MukgenTitleLabelType.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
|