Skip to content

Commit 58032f2

Browse files
committed
Change supported iOS version 🚀
1 parent bdc3bc3 commit 58032f2

22 files changed

+36
-36
lines changed

AAInfographics/AAChartCreator/AAChartView.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ import WebKit
4040
let kUserContentMessageNameClick = "click"
4141
let kUserContentMessageNameMouseOver = "mouseover"
4242

43-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
43+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
4444
@objc public protocol AAChartViewDelegate: NSObjectProtocol {
4545
@objc optional func aaChartViewDidFinishLoad(_ aaChartView: AAChartView)
4646
@objc optional func aaChartViewDidFinishEvaluate(_ aaChartView: AAChartView)
4747
@objc optional func aaChartView(_ aaChartView: AAChartView, clickEventMessage: AAClickEventMessageModel)
4848
@objc optional func aaChartView(_ aaChartView: AAChartView, moveOverEventMessage: AAMoveOverEventMessageModel)
4949
}
5050

51-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
51+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
5252
public class AAEventMessageModel: NSObject {
5353
public var name: String?
5454
public var x: Float?
@@ -58,14 +58,14 @@ public class AAEventMessageModel: NSObject {
5858
public var index: Int?
5959
}
6060

61-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
61+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
6262
public class AAClickEventMessageModel: AAEventMessageModel {}
6363

64-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
64+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
6565
public class AAMoveOverEventMessageModel: AAEventMessageModel {}
6666

6767
//Refer to: https://stackoverflow.com/questions/26383031/wkwebview-causes-my-view-controller-to-leak
68-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
68+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
6969
public class AALeakAvoider : NSObject, WKScriptMessageHandler {
7070
weak var delegate : WKScriptMessageHandler?
7171

@@ -82,7 +82,7 @@ public class AALeakAvoider : NSObject, WKScriptMessageHandler {
8282
}
8383
}
8484

85-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
85+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
8686
public class AAChartView: WKWebView {
8787
private var clickEventEnabled: Bool?
8888
private var touchEventEnabled: Bool?
@@ -304,7 +304,7 @@ public class AAChartView: WKWebView {
304304

305305

306306
// MARK: - Configure Chart View Content With AAChartModel
307-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
307+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
308308
extension AAChartView {
309309
/// Function of drawing chart view
310310
///
@@ -339,7 +339,7 @@ extension AAChartView {
339339
}
340340

341341
// MARK: - Configure Chart View Content With AAOptions
342-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
342+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
343343
extension AAChartView {
344344
/// Function of drawing chart view
345345
///
@@ -391,7 +391,7 @@ extension AAChartView {
391391
}
392392

393393
// MARK: - Addtional update Chart View Content methods
394-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
394+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
395395
extension AAChartView {
396396
/// A common chart update function
397397
/// (you can update any chart element) to open, close, delete, add, resize, reformat, etc. elements in the chart.
@@ -609,7 +609,7 @@ extension AAChartView {
609609
}
610610

611611
// MARK: - WKUIDelegate
612-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
612+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
613613
extension AAChartView: WKUIDelegate {
614614
open func webView(
615615
_ webView: WKWebView,
@@ -650,7 +650,7 @@ extension AAChartView: WKUIDelegate {
650650
}
651651

652652
// MARK: - WKNavigationDelegate
653-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
653+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
654654
extension AAChartView: WKNavigationDelegate {
655655
open func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
656656
drawChart()
@@ -659,7 +659,7 @@ extension AAChartView: WKNavigationDelegate {
659659
}
660660

661661
// MARK: - WKScriptMessageHandler
662-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
662+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
663663
extension AAChartView: WKScriptMessageHandler {
664664
open func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
665665
if message.name == kUserContentMessageNameClick {
@@ -674,7 +674,7 @@ extension AAChartView: WKScriptMessageHandler {
674674
}
675675
}
676676

677-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
677+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
678678
extension AAChartView {
679679
private func getClickEventMessageModel(messageBody: [String: Any]) -> AAClickEventMessageModel {
680680
let eventMessageModel = getEventMessageModel(messageBody: messageBody)
@@ -732,7 +732,7 @@ extension AAChartView {
732732
}
733733

734734
// MARK: - JSONSerialization
735-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
735+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
736736
extension AAChartView {
737737

738738
func getJSONStringFromDictionary(dictionary: [String: Any]) -> String {

AAInfographics/AAChartCreator/AASerializable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ import Foundation
3535

3636
public class AAObject { }
3737

38-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
38+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
3939
public extension AAObject {
4040
var classNameString: String {
4141
let nameClass: AnyClass! = object_getClass(self)
4242
return NSStringFromClass(nameClass)
4343
}
4444
}
4545

46-
@available(iOS 11.0, macCatalyst 13.1, macOS 10.13, *)
46+
@available(iOS 10.0, macCatalyst 13.1, macOS 10.13, *)
4747
public extension AAObject {
4848
fileprivate func loopForMirrorChildren(_ mirrorChildren: Mirror.Children, _ representation: inout [String : Any]) {
4949
for case let (label?, value) in mirrorChildren {

AAInfographicsDemo/Demo/AdditionalContent1/AdvancedUpdatingFeatureVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import UIKit
3434
import AAInfographics
3535

36-
@available(iOS 11.0, macCatalyst 13.1, *)
36+
@available(iOS 10.0, macCatalyst 13.1, *)
3737
class AdvancedUpdatingFeatureVC: BasicChartVC {
3838

3939
override func viewDidLoad() {

AAInfographicsDemo/Demo/AdditionalContent1/DataSortingWithAnimationChartVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import UIKit
1010
import AAInfographics
1111

12-
@available(iOS 11.0, macCatalyst 13.1, *)
12+
@available(iOS 10.0, macCatalyst 13.1, *)
1313
class DataSortingWithAnimationChartVC: AABaseChartVC {
1414
public var step: Bool?
1515
public var aaChartModel: AAChartModel!

AAInfographicsDemo/Demo/AdditionalContent1/DoubleChartsLinkedWorkVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import UIKit
3434
import AAInfographics
3535

36-
@available(iOS 11.0, macCatalyst 13.1, *)
36+
@available(iOS 10.0, macCatalyst 13.1, *)
3737
class DoubleChartsLinkedWorkVC: UIViewController, AAChartViewDelegate {
3838

3939
private var aaChartView1 = AAChartView()

AAInfographicsDemo/Demo/AdditionalContent1/DrawChartWithAAOptionsVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import UIKit
3333
import AAInfographics
3434

35-
@available(iOS 11.0, macCatalyst 13.1, *)
35+
@available(iOS 10.0, macCatalyst 13.1, *)
3636
class DrawChartWithAAOptionsVC: AABaseChartVC {
3737

3838
override func viewDidLoad() {

AAInfographicsDemo/Demo/AdditionalContent1/JSFormatterFunctionVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import UIKit
3333
import AAInfographics
3434

35-
@available(iOS 11.0, macCatalyst 13.1, *)
35+
@available(iOS 10.0, macCatalyst 13.1, *)
3636
class JSFormatterFunctionVC: AABaseChartVC {
3737

3838
override func viewDidLoad() {

AAInfographicsDemo/Demo/AdditionalContent1/OnlyRefreshChartDataVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import UIKit
3434
import AAInfographics
3535

36-
@available(iOS 11.0, macCatalyst 13.1, *)
36+
@available(iOS 10.0, macCatalyst 13.1, *)
3737
class OnlyRefreshChartDataVC: AABaseChartVC {
3838
public var step: Bool?
3939
private var timer: Timer?

AAInfographicsDemo/Demo/AdditionalContent1/ScrollableChartVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import UIKit
3333
import AAInfographics
3434

35-
@available(iOS 11.0, macCatalyst 13.1, *)
35+
@available(iOS 10.0, macCatalyst 13.1, *)
3636
class ScrollableChartVC: AABaseChartVC {
3737
public var step: Bool?
3838

AAInfographicsDemo/Demo/AdditionalContent1/ScrollingUpdateDataVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import UIKit
3333
import AAInfographics
3434

35-
@available(iOS 11.0, macCatalyst 13.1, *)
35+
@available(iOS 10.0, macCatalyst 13.1, *)
3636
class ScrollingUpdateDataVC: AABaseChartVC {
3737
public var step: Bool?
3838

0 commit comments

Comments
 (0)