Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Mar 26, 2021
1 parent a46cfd2 commit 9675225
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion SPAlert.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'SPAlert'
s.version = '3.0.5'
s.version = '3.0.6'
s.summary = 'Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.'
s.homepage = 'https://github.com/ivanvorobei/SPAlert'
s.license = { :type => "MIT", :file => "LICENSE" }
Expand Down
4 changes: 2 additions & 2 deletions Sources/SPAlert/Models/SPAlertIconAnimatable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
import UIKit

/**
Protocol for animatable views.
SPAlert: Protocol for animatable views.
*/
public protocol SPAlertIconAnimatable {

/**
Shoud call when need start animation.
SPAlert: Shoud call when need start animation.
*/
func animate()
}
8 changes: 4 additions & 4 deletions Sources/SPAlert/Models/SPAlertLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@
import UIKit

/**
Layout model for alert view.
SPAlert: Layout model for alert view.
*/
open class SPAlertLayout {

/**
Icon size.
SPAlert: Icon size.
*/
open var iconSize: CGSize

/**
Alert margings for each side.
SPAlert: Alert margings for each side.
*/
open var margins: UIEdgeInsets

/**
Space between icon and title if both available.
SPAlert: Space between icon and title if both available.
*/
open var spaceBetweenIconAndTitle: CGFloat

Expand Down
8 changes: 4 additions & 4 deletions Sources/SPAlert/SPAlert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
import UIKit

/**
Acess level. Here you get ready-use methods.
SPAlert: Acess level. Here you get ready-use methods.
Recomended use it.
*/
public enum SPAlert {

/**
Present alert with preset and custom haptic.
SPAlert: Present alert with preset and custom haptic.

- parameter title: Title text in alert.
- parameter message: Subtitle text in alert. Optional.
Expand All @@ -42,7 +42,7 @@ public enum SPAlert {
}

/**
Present alert with preset and automatically detect type haptic.
SPAlert: Present alert with preset and automatically detect type haptic.

- parameter title: Title text in alert.
- parameter message: Subtitle text in alert. Optional.
Expand All @@ -56,7 +56,7 @@ public enum SPAlert {
}

/**
Show only message, without title and icon.
SPAlert: Show only message, without title and icon.

- parameter message: Title text.
- parameter haptic: Haptic response with present. Default is `.success`.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SPAlert/SPAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import UIKit

/**
Main view. Can be customisable if need.
SPAlert: Main view. Can be customisable if need.

For change duration, check method `present` and pass duration and other specific property if need customise.

Expand Down
2 changes: 1 addition & 1 deletion Sources/SPAlert/Services/SPAlertHaptic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import UIKit

/**
Wrapper of haptic styles.
SPAlert: Wrapper of haptic styles.
*/
public enum SPAlertHaptic {

Expand Down

0 comments on commit 9675225

Please sign in to comment.