Skip to content

Commit 5ff3211

Browse files
committed
Fix message layout
1 parent f12eb9f commit 5ff3211

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,6 @@ Simplifies working with animated changes in table and collections. Apple's diffa
152152

153153
## Russian-specking Community
154154

155-
В телеграм-канале [Код Воробья](https://ivanvorobei.by/sparrowcode/telegram) пишу о iOS разработке. Видео-туториалы выклыдываю на [YouTube](https://ivanvorobei.by/youtube):
155+
В телеграм-канале [Код Воробья](https://sparrowcode.by/telegram) пишу о iOS разработке. Видео-туториалы выклыдываю на [YouTube](https://ivanvorobei.by/youtube):
156156

157157
[![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://ivanvorobei.by/youtube)

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.2'
4+
s.version = '3.0.3'
55
s.summary = 'Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.'
66
s.homepage = 'https://github.com/varabeis/SPAlert'
77
s.license = { :type => "MIT", :file => "LICENSE" }

Sources/SPAlert/SPAlertIconPreset.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public extension SPAlertLayout {
7171
self.init(iconSize: .init(width: 100, height: 100), margins: .init(top: 43, left: 16, bottom: 25, right: 16), spaceBetweenIconAndTitle: 41)
7272
}
7373

74+
static func message() -> SPAlertLayout {
75+
let layout = SPAlertLayout()
76+
layout.margins = UIEdgeInsets(top: 23, left: 16, bottom: 23, right: 16)
77+
return layout
78+
}
79+
7480
convenience init(for preset: SPAlertIconPreset) {
7581
switch preset {
7682
case .done:

Sources/SPAlert/SPAlertView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ open class SPAlertView: UIView {
7979
public init(message: String) {
8080
super.init(frame: CGRect.zero)
8181
commonInit()
82-
layout = SPAlertLayout()
82+
layout = SPAlertLayout.message()
8383
setMessage(message)
8484
}
8585

0 commit comments

Comments
 (0)