Skip to content

Commit 78ca11d

Browse files
committed
Clean SPAlertIconPreset
1 parent 57d7b82 commit 78ca11d

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Sources/SPAlert/SPAlertIconPreset.swift

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,17 @@ import UIKit
2525
Represent icon wrapper.
2626
Included default styles and can be custom image.
2727
*/
28-
public enum SPAlertIconPreset: CaseIterable {
28+
public enum SPAlertIconPreset {
2929

3030
case done
3131
case error
3232
case heart
3333

3434
case custom(_ image: UIImage)
35-
36-
// MARK: - CaseIterable
37-
38-
public static var allCases: [SPAlertIconPreset] {
39-
return [.done, .heart]
40-
}
4135
}
4236

43-
// Get view by preset.
37+
// Get view by preset
38+
4439
public extension SPAlertIconPreset {
4540

4641
func createView() -> UIView {
@@ -56,7 +51,8 @@ public extension SPAlertIconPreset {
5651
}
5752
}
5853

59-
// Get layout by preset.
54+
// Get layout by preset
55+
6056
public extension SPAlertLayout {
6157

6258
convenience init() {

0 commit comments

Comments
 (0)