Skip to content

Commit 85425fb

Browse files
committed
iOS 10.3 compile bug fixed
1 parent e41922e commit 85425fb

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

CFAlertViewController.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "CFAlertViewController"
19-
s.version = "2.1.1"
19+
s.version = "2.1.2"
2020
s.summary = "CFAlertViewController is a library that helps you display and customise alerts and action sheets on iPad and iPhone."
2121

2222
# This description is used to generate tags and improve search results.
@@ -79,7 +79,7 @@ Pod::Spec.new do |s|
7979
# Supports git, hg, bzr, svn and HTTP.
8080
#
8181

82-
s.source = { :git => "https://github.com/Codigami/CFAlertViewController.git", :tag => "v2.1.1" }
82+
s.source = { :git => "https://github.com/Codigami/CFAlertViewController.git", :tag => "v2.1.2" }
8383

8484

8585
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

CFAlertViewController/CFAlertViewController.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,17 @@ public class CFAlertViewController: UIViewController {
293293

294294
internal func updateUI(withAnimation shouldAnimate: Bool) {
295295
// Refresh Preferred Style
296-
preferredStyle = (preferredStyle)
296+
let currentPreferredStyle = preferredStyle
297+
preferredStyle = currentPreferredStyle
297298
// Update Table Header View
298299
setHeaderView(headerView, shouldUpdateContainerFrame: false, withAnimation: false)
299300
// Update Table Footer View
300301
setFooterView(footerView, shouldUpdateContainerFrame: false, withAnimation: false)
301302
// Reload Table Content
302303
tableView?.reloadData()
303304
// Update Background
304-
backgroundStyle = (backgroundStyle)
305+
let currentBackgroundStyle = backgroundStyle
306+
backgroundStyle = currentBackgroundStyle
305307
// Update Container View Frame
306308
updateContainerViewFrame(withAnimation: shouldAnimate)
307309
}

Demo/CFAlertViewControllerDemo/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.1.1</string>
18+
<string>2.1.2</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)