Skip to content

Commit

Permalink
Chore: public init
Browse files Browse the repository at this point in the history
  • Loading branch information
ITlearning committed Feb 1, 2024
1 parent dbad7a7 commit 98dce0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/SCToastAlert/SCToastAlert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public struct SCToastAlert {
toastAlert.show(title: title, subTitle: subTitle, type: type)
}

public init() { }

}

@available(iOS 13.0, *)
Expand Down
2 changes: 1 addition & 1 deletion Tests/SCToastAlertTests/SCToastAlertTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98dce0e

Please sign in to comment.