File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
SectionIndexViewDemo/SectionIndexViewDemo.xcodeproj Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import PackageDescription
6
6
let package = Package (
7
7
name: " SectionIndexView " ,
8
8
platforms: [
9
- . iOS( . v9 ) ,
9
+ . iOS( . v10 ) ,
10
10
] ,
11
11
products: [
12
12
// Products define the executables and libraries a package produces, and make them visible to other packages.
Original file line number Diff line number Diff line change 317
317
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
318
318
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
319
319
CODE_SIGN_STYLE = Automatic;
320
- DEVELOPMENT_TEAM = 76TH7FM7MJ ;
320
+ DEVELOPMENT_TEAM = S3J7V3MKL5 ;
321
321
INFOPLIST_FILE = SectionIndexViewDemo/Info.plist;
322
322
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
323
323
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
335
335
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
336
336
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
337
337
CODE_SIGN_STYLE = Automatic;
338
- DEVELOPMENT_TEAM = 76TH7FM7MJ ;
338
+ DEVELOPMENT_TEAM = S3J7V3MKL5 ;
339
339
INFOPLIST_FILE = SectionIndexViewDemo/Info.plist;
340
340
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
341
341
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Original file line number Diff line number Diff line change @@ -80,12 +80,7 @@ public class SectionIndexView: UIView {
80
80
81
81
@objc public private( set) var selectedItem : SectionIndexViewItem ?
82
82
@objc public private( set) var isTouching = false
83
-
84
- @available ( iOS 10 . 0 , * )
85
- private lazy var generator : UIImpactFeedbackGenerator = {
86
- return UIImpactFeedbackGenerator . init ( style: . light)
87
- } ( )
88
-
83
+
89
84
private var items = [ SectionIndexViewItem] ( )
90
85
91
86
// MARK: - Func
@@ -106,6 +101,7 @@ public class SectionIndexView: UIView {
106
101
107
102
@objc public func impact( ) {
108
103
guard #available( iOS 10 . 0 , * ) else { return }
104
+ var generator : UIImpactFeedbackGenerator = UIImpactFeedbackGenerator . init ( style: . light)
109
105
generator. prepare ( )
110
106
generator. impactOccurred ( )
111
107
}
You can’t perform that action at this time.
0 commit comments