Skip to content

Commit

Permalink
Merge pull request #72 from alpaycli/ReadableInit
Browse files Browse the repository at this point in the history
Made AlertView's init more readable.
  • Loading branch information
ivanvorobei authored Apr 11, 2024
2 parents fc1ce7a + 448c7f4 commit 3b73be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/AlertKit/Views/AlertAppleMusic16View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class AlertAppleMusic16View: UIView, AlertViewProtocol {
return view
}()

public init(title: String?, subtitle: String?, icon: AlertIcon?) {
public init(title: String? = nil, subtitle: String? = nil, icon: AlertIcon? = nil) {

if let title = title {
let label = UILabel()
Expand Down
2 changes: 1 addition & 1 deletion Sources/AlertKit/Views/AlertAppleMusic17View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class AlertAppleMusic17View: UIView, AlertViewProtocol, AlertViewInternal
#endif
}()

public init(title: String?, subtitle: String?, icon: AlertIcon?) {
public init(title: String? = nil, subtitle: String? = nil, icon: AlertIcon? = nil) {

if let title = title {
let label = UILabel()
Expand Down

0 comments on commit 3b73be8

Please sign in to comment.