GSM-MSG / GCMS-iOS

๊ด‘์ฃผSW๋งˆ์ด์Šคํ„ฐ๊ณ ๋“ฑํ•™๊ต ๋™์•„๋ฆฌ ๊ด€๋ฆฌ ์„œ๋น„์Šค
https://apps.apple.com/kr/app/gcms/id1616315883
22 stars 1 forks source link

๐Ÿ”€ :: ์‹คํŒจํ• ๋•Œ ์ „์šฉ Alert Step #58

Closed baekteun closed 2 years ago

baekteun commented 2 years ago

๊ฐœ์š”

ํ™•์ธ๋ฒ„ํŠผ๋งŒ ์žˆ๋Š” Alert ๋„์šฐ๊ธฐ ์ „์šฉ Step

์ž‘์—…์‚ฌํ•ญ

GCMSStep์— failureAlert(title: String?, message: String, action: UIAlertAction?) ์ถ”๊ฐ€

์‚ฌ์šฉ๋ฐฉ๋ฒ•

func presentToFailureAlert(title: String?, message: String?, action: UIAlertAction?) -> FlowContributors {
    let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)

    if let action = action {
        alert.addAction(action)
    } else {
        alert.addAction(.init(title: "์ทจ์†Œ", style: .default))
    }

    return .none
}

๊ธฐํƒ€