Skip to content

Commit a5482e8

Browse files
committed
Updated SPM and example.
1 parent 08b0a23 commit a5482e8

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

Example iOS/Controllers/PresetsController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,27 +68,27 @@ class PresetsController: SPDiffableTableController {
6868

6969
// MARK: - Data
7070

71-
fileprivate var presets: [AlertPreset] {
71+
fileprivate var presets: [AlertPresetModel] {
7272
return [
73-
AlertPreset(
73+
AlertPresetModel(
7474
name: "Done",
7575
title: "Added to Library",
7676
message: nil,
7777
preset: .done
7878
),
79-
AlertPreset(
79+
AlertPresetModel(
8080
name: "Error",
8181
title: "Oops",
8282
message: "Please try again later",
8383
preset: .error
8484
),
85-
AlertPreset(
85+
AlertPresetModel(
8686
name: "Heart",
8787
title: "Love",
8888
message: "We'll recommend more like this for you",
8989
preset: .heart
9090
),
91-
AlertPreset(
91+
AlertPresetModel(
9292
name: "Custom Image",
9393
title: "Custom Image",
9494
message: "Passed UIImage object for preset with style custom.",
@@ -99,7 +99,7 @@ class PresetsController: SPDiffableTableController {
9999

100100
// MARK: - Diffable
101101

102-
var currentPreset: AlertPreset? {
102+
var currentPreset: AlertPresetModel? {
103103
willSet {
104104
guard let id = self.currentPreset?.id else { return }
105105
let cell = diffableDataSource?.cell(UITableViewCell.self, for: id)

Example iOS/Models/AlertPreset.swift renamed to Example iOS/Models/AlertPresetModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import UIKit
2424
/**
2525
Example wrapper model.
2626
*/
27-
struct AlertPreset {
27+
struct AlertPresetModel {
2828

2929
var name: String
3030
var title: String

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version: 5.4
22

33
import PackageDescription
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Animation of widgets from iOS 14. 3D transform with dynamic shadow. [Video previ
150150
#### [SPDiffable](https://github.com/ivanvorobei/SPDiffable)
151151
Simplifies working with animated changes in table and collections. Apple's diffable API required models for each object type. If you want use it in many place, you pass time to implement it and get over duplicates codes. This project help do it elegant with shared models and special cell providers. Support side bar iOS14 and already has native cell providers and views.
152152

153-
#### [Telegram Stikers](https://sparrowcode.by/telegram/stickers/spalert)
153+
#### [Telegram Stikers SPAlert](https://sparrowcode.by/telegram/stickers/spalert) [Stikers iOS Dev](https://sparrowcode.by/telegram/stickers)
154154
You can import stikers for Telegram about iOS Development. Stickers with Xcode elements you know.
155155

156156
## Russian Community

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 = '3.0.6'
4+
s.version = '3.0.7'
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.license = { :type => "MIT", :file => "LICENSE" }

SPAlert.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
F48672B625762EC900EC1A4E /* SPAlertIconDoneView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F48672B525762EC900EC1A4E /* SPAlertIconDoneView.swift */; };
2222
F48672B725762EC900EC1A4E /* SPAlertIconDoneView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F48672B525762EC900EC1A4E /* SPAlertIconDoneView.swift */; };
2323
F4D6FAE625663EA70046A328 /* PresetsController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4D6FAE525663EA70046A328 /* PresetsController.swift */; };
24-
F4E68B2C2572369F00276B45 /* AlertPreset.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4E68B2B2572369F00276B45 /* AlertPreset.swift */; };
24+
F4E68B2C2572369F00276B45 /* AlertPresetModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4E68B2B2572369F00276B45 /* AlertPresetModel.swift */; };
2525
F4F90B96256647BB000594C4 /* SPAlertIconPreset.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4283BE52564ED8D009A03FC /* SPAlertIconPreset.swift */; };
2626
F4F90B97256647BB000594C4 /* SPAlertHaptic.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4283BF52564EF2A009A03FC /* SPAlertHaptic.swift */; };
2727
F4F90B98256647BB000594C4 /* SPAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4283BEF2564EE87009A03FC /* SPAlertView.swift */; };
@@ -52,7 +52,7 @@
5252
F4D0F010256F80F50089ACBC /* SPAlert.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = SPAlert.podspec; sourceTree = "<group>"; };
5353
F4D0F011256F80F50089ACBC /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
5454
F4D6FAE525663EA70046A328 /* PresetsController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PresetsController.swift; sourceTree = "<group>"; };
55-
F4E68B2B2572369F00276B45 /* AlertPreset.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertPreset.swift; sourceTree = "<group>"; };
55+
F4E68B2B2572369F00276B45 /* AlertPresetModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertPresetModel.swift; sourceTree = "<group>"; };
5656
F4FBB22A2563ACBB00344472 /* SPAlert_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SPAlert_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5757
F4FBB22D2563ACBB00344472 /* SPAlert.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SPAlert.h; sourceTree = "<group>"; };
5858
F4FBB22E2563ACBB00344472 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -121,7 +121,7 @@
121121
F4E68B2A2572369700276B45 /* Models */ = {
122122
isa = PBXGroup;
123123
children = (
124-
F4E68B2B2572369F00276B45 /* AlertPreset.swift */,
124+
F4E68B2B2572369F00276B45 /* AlertPresetModel.swift */,
125125
);
126126
path = Models;
127127
sourceTree = "<group>";
@@ -353,7 +353,7 @@
353353
F4F90B97256647BB000594C4 /* SPAlertHaptic.swift in Sources */,
354354
F48672AE25762E9400EC1A4E /* SPAlertIconAnimatable.swift in Sources */,
355355
F4D6FAE625663EA70046A328 /* PresetsController.swift in Sources */,
356-
F4E68B2C2572369F00276B45 /* AlertPreset.swift in Sources */,
356+
F4E68B2C2572369F00276B45 /* AlertPresetModel.swift in Sources */,
357357
F48672B625762EC900EC1A4E /* SPAlertIconDoneView.swift in Sources */,
358358
);
359359
runOnlyForDeploymentPostprocessing = 0;

0 commit comments

Comments
 (0)