Skip to content

Commit d2ddcd5

Browse files
committed
Remove .magic preset
1 parent dee821d commit d2ddcd5

File tree

8 files changed

+1
-213
lines changed

8 files changed

+1
-213
lines changed

Assets/Readme/Miniature - Magic.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

Assets/Sketch/Presets.sketch

-7.27 KB
Binary file not shown.

Example/Controllers/ViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class ViewController: UITableViewController {
2222
Alert(key: "Dislike", preset: .dislike, title: "Thanks for feedback", subtitle: "It helped us"),
2323
Alert(key: "Privacy", preset: .privacy, title: "Privacy accepted", subtitle: "You privacy it important"),
2424
Alert(key: "Rotate", preset: .rotate, title: "Portrait mode", subtitle: "You can change it in settings"),
25-
Alert(key: "Magic", preset: .magic, title: "Magic here! You see", subtitle: "Strange text, true?"),
2625
Alert(key: "Search", preset: .search, title: "Searching", subtitle: "Maybe need other title"),
2726
Alert(key: "Add", preset: .add, title: "Added to Folder", subtitle: nil),
2827
Alert(key: "Error", preset: .error, title: "Oops", subtitle: "Please try again later"),

Readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ And other
2727
<img src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Miniature%20-%20Dislike.svg" width="55">
2828
<img src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Miniature%20-%20Privacy.svg" width="55">
2929
<img src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Miniature%20-%20Rotate.svg" width="55">
30-
<img src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Miniature%20-%20Magic.svg" width="55">
3130
<img src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Miniature%20-%20Search.svg" width="55">
3231
<img src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Miniature%20-%20Add.svg" width="55">
3332
<img src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Miniature%20-%20Error.svg" width="55">

SPAlert.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "SPAlert"
4-
s.version = "2.0.28"
4+
s.version = "2.1"
55
s.summary = "Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets."
66
s.homepage = "https://github.com/IvanVorobei/SPAlert"
77
s.source = { :git => "https://github.com/IvanVorobei/SPAlert.git", :tag => s.version }

SPAlert.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
F4A5A92C2388792F00B0DFE0 /* SPAlertIconBookmarkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4A5A92B2388792F00B0DFE0 /* SPAlertIconBookmarkView.swift */; };
4040
F4A8361A2385588300EB32E0 /* SPAlertIconDocView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4A836192385588300EB32E0 /* SPAlertIconDocView.swift */; };
4141
F4CA67B5238ABD0100E72F79 /* SPAlertIconAddView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4CA67B4238ABD0100E72F79 /* SPAlertIconAddView.swift */; };
42-
F4CD29F423A037D00051EA23 /* SPAlertIconMagicView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4CD29F323A037D00051EA23 /* SPAlertIconMagicView.swift */; };
4342
F4D1623423A2E47200B5E3E9 /* SPAlertIconEjectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4D1623323A2E47200B5E3E9 /* SPAlertIconEjectView.swift */; };
4443
F4D3CD58238DA9FE006C3DE2 /* SPAlertIconMoonView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4D3CD57238DA9FE006C3DE2 /* SPAlertIconMoonView.swift */; };
4544
F4D3CD5A238DAA49006C3DE2 /* SPAlertIconStarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4D3CD59238DAA49006C3DE2 /* SPAlertIconStarView.swift */; };
@@ -111,7 +110,6 @@
111110
F4A5A92B2388792F00B0DFE0 /* SPAlertIconBookmarkView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPAlertIconBookmarkView.swift; sourceTree = "<group>"; };
112111
F4A836192385588300EB32E0 /* SPAlertIconDocView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPAlertIconDocView.swift; sourceTree = "<group>"; };
113112
F4CA67B4238ABD0100E72F79 /* SPAlertIconAddView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPAlertIconAddView.swift; sourceTree = "<group>"; };
114-
F4CD29F323A037D00051EA23 /* SPAlertIconMagicView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPAlertIconMagicView.swift; sourceTree = "<group>"; };
115113
F4D1623323A2E47200B5E3E9 /* SPAlertIconEjectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPAlertIconEjectView.swift; sourceTree = "<group>"; };
116114
F4D3CD57238DA9FE006C3DE2 /* SPAlertIconMoonView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPAlertIconMoonView.swift; sourceTree = "<group>"; };
117115
F4D3CD59238DAA49006C3DE2 /* SPAlertIconStarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPAlertIconStarView.swift; sourceTree = "<group>"; };
@@ -208,7 +206,6 @@
208206
F421EFF02398684E000A566D /* SPAlertIconFlagView.swift */,
209207
F40FB629239ADF940090BA57 /* SPAlertIconQuestionView.swift */,
210208
F47D2FA5239D718400A346A5 /* SPAlertIconBoltView.swift */,
211-
F4CD29F323A037D00051EA23 /* SPAlertIconMagicView.swift */,
212209
F4D1623323A2E47200B5E3E9 /* SPAlertIconEjectView.swift */,
213210
F45970B323A578A50092CE7C /* SPAlertIconCardView.swift */,
214211
F459720123A841C00092CE7C /* SPAlertIconRotateView.swift */,
@@ -441,7 +438,6 @@
441438
F4146EB223AAA18100AE7658 /* SPAlertIconLikeView.swift in Sources */,
442439
F45970B423A578A50092CE7C /* SPAlertIconCardView.swift in Sources */,
443440
F412052B2382AF64009C2AC7 /* SPAlertLayout.swift in Sources */,
444-
F4CD29F423A037D00051EA23 /* SPAlertIconMagicView.swift in Sources */,
445441
);
446442
runOnlyForDeploymentPostprocessing = 0;
447443
};

Source/SPAlert/Models/SPAlertPreset.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public enum SPAlertPreset {
4141
case error
4242
case shuffle
4343
case `repeat`
44-
case magic
4544
case eject
4645
case card
4746
case rotate
@@ -86,8 +85,6 @@ public enum SPAlertPreset {
8685
return SPAlertIconQuestionView()
8786
case .bolt:
8887
return SPAlertIconBoltView()
89-
case .magic:
90-
return SPAlertIconMagicView()
9188
case .eject:
9289
return SPAlertIconEjectView()
9390
case .card:
@@ -241,14 +238,6 @@ public enum SPAlertPreset {
241238
layout.iconHeight = 116
242239
layout.bottomIconSpace = 34
243240
return layout
244-
case .magic:
245-
var layout = SPAlertLayout()
246-
layout.topSpace = 41
247-
layout.bottomSpace = 27
248-
layout.iconWidth = 112
249-
layout.iconHeight = 112
250-
layout.bottomIconSpace = 35
251-
return layout
252241
case .moon:
253242
var layout = SPAlertLayout()
254243
layout.topSpace = 49
@@ -333,8 +322,6 @@ public enum SPAlertPreset {
333322
return .warning
334323
case .question:
335324
return .warning
336-
case .magic:
337-
return .success
338325
case .error:
339326
return .error
340327
case .shuffle:

0 commit comments

Comments
 (0)