Skip to content

Commit

Permalink
➕[ADD] : 메세지라벨 옵셔널 타입 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dumpwithlove committed Jul 18, 2023
1 parent 5f91d33 commit 8fb3310
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/SDSKit/Component/Alert/SDS-UIView+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SnapKit

public extension UIView {
func showAlert(title: String? = nil,
message: String,
message: String? = nil,
cancelButtonMessage: String? = nil,
okButtonMessage: String,
type: SDSAlertType) -> AlertView {
Expand Down
10 changes: 8 additions & 2 deletions Sources/SDSKit/Component/Alert/SDSAlert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class AlertView: UIView {
// MARK: - Life Cycle

public init(title: String? = nil,
message: String,
message: String? = nil,
cancelButtonMessage: String? = nil,
okButtonMessage: String,
type: SDSAlertType) {
Expand All @@ -92,7 +92,13 @@ public class AlertView: UIView {
else {
titleLabel.text = title
}
messageLabel.text = message
if message == nil {
messageLabel.isHidden = true
}
else {
messageLabel.text = message
}
// messageLabel.text = message
if cancelButtonMessage == nil {
cancelButton.isHidden = true
}
Expand Down

0 comments on commit 8fb3310

Please sign in to comment.