Skip to content

Commit 6d82a4c

Browse files
committed
fix button title
1 parent 555cd45 commit 6d82a4c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

AppStoreManager.podspec

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

33
spec.name = "AppStoreManager"
4-
spec.version = "1.3.3"
4+
spec.version = "1.3.4"
55
spec.summary = "A new version checking framework in Swift."
66

77
spec.homepage = "https://knottx.github.io"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pod 'AppStoreManager'
1111
### Swift Package Manager
1212
- File > Swift Packages > Add Package Dependency
1313
- Add `https://github.com/knottx/AppStoreManager.git`
14-
- Select "Up to Next Major" with "1.3.3"
14+
- Select "Up to Next Major" with "1.3.4"
1515

1616
## 📝 How
1717
### Code Implementation

Sources/AppStoreManager/AppStoreManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ public class AppStoreManager {
142142
public func showAlertUpdate(at vc:UIViewController, canSkip: Bool, preferredStyle: UIAlertController.Style = .alert) {
143143
DispatchQueue.main.async { [weak self] in
144144
let alertVc = UIAlertController(title: self?.title, message: self?.message, preferredStyle: preferredStyle)
145-
let skip = UIAlertAction(title: AppStoreManagerConstant.skipButtonTitle, style: .cancel) { (_) in
145+
let skip = UIAlertAction(title: self?.skipButtonTitle ?? AppStoreManagerConstant.skipButtonTitle, style: .cancel) { (_) in
146146
//
147147
}
148-
let update = UIAlertAction(title: AppStoreManagerConstant.updateButtonTitle, style: .default) { (_) in
148+
let update = UIAlertAction(title: self?.updateButtonTitle ?? AppStoreManagerConstant.updateButtonTitle, style: .default) { (_) in
149149
self?.openAppStore()
150150
}
151151
alertVc.addAction(update)

0 commit comments

Comments
 (0)