Skip to content

Commit 3b73be8

Browse files
authored
Merge pull request #72 from alpaycli/ReadableInit
Made AlertView's init more readable.
2 parents fc1ce7a + 448c7f4 commit 3b73be8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/AlertKit/Views/AlertAppleMusic16View.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class AlertAppleMusic16View: UIView, AlertViewProtocol {
4141
return view
4242
}()
4343

44-
public init(title: String?, subtitle: String?, icon: AlertIcon?) {
44+
public init(title: String? = nil, subtitle: String? = nil, icon: AlertIcon? = nil) {
4545

4646
if let title = title {
4747
let label = UILabel()

Sources/AlertKit/Views/AlertAppleMusic17View.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class AlertAppleMusic17View: UIView, AlertViewProtocol, AlertViewInternal
4444
#endif
4545
}()
4646

47-
public init(title: String?, subtitle: String?, icon: AlertIcon?) {
47+
public init(title: String? = nil, subtitle: String? = nil, icon: AlertIcon? = nil) {
4848

4949
if let title = title {
5050
let label = UILabel()

0 commit comments

Comments
 (0)