diff --git a/Sources/SCToastAlert/SCToastAlert.swift b/Sources/SCToastAlert/SCToastAlert.swift index ba26b92..c7edf60 100644 --- a/Sources/SCToastAlert/SCToastAlert.swift +++ b/Sources/SCToastAlert/SCToastAlert.swift @@ -11,6 +11,8 @@ public struct SCToastAlert { toastAlert.show(title: title, subTitle: subTitle, type: type) } + public init() { } + } @available(iOS 13.0, *) diff --git a/Tests/SCToastAlertTests/SCToastAlertTests.swift b/Tests/SCToastAlertTests/SCToastAlertTests.swift index f547eb4..d16443a 100644 --- a/Tests/SCToastAlertTests/SCToastAlertTests.swift +++ b/Tests/SCToastAlertTests/SCToastAlertTests.swift @@ -7,7 +7,7 @@ final class SCToastAlertTests: XCTestCase { func test() { if #available(iOS 13.0, *) { - var toast = ToastAlert() + var toast = SCToastAlert() toast.show(title: "Hello World", type: .white()) } else { // Fallback on earlier versions