Skip to content

Commit e9e0a21

Browse files
committed
Update AABaseChartVC.swift
1 parent c87f351 commit e9e0a21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AAInfographicsDemo/Demo/AdditionalContent2/AABaseChartVC.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ class AABaseChartVC: UIViewController {
8989
private func setupChartView() {
9090
aaChartView = AAChartView()
9191
aaChartView!.isScrollEnabled = false
92+
//设置 aaChartView 可以调试
93+
if #available(iOS 16.4, *) {
94+
aaChartView!.isInspectable = true
95+
} else {
96+
// Fallback on earlier versions
97+
}
9298
aaChartView!.delegate = self as AAChartViewDelegate
9399
aaChartView!.aa_adaptiveScreenRotation()
94100
view.addSubview(aaChartView!)

0 commit comments

Comments
 (0)