File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed
project.xcworkspace/xcshareddata Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ I changed to use ContiguousArray< UIViewController > type to store UIViewControllers in a contiguous block of memory.
2
+
3
+ When using a large number of UIViewControllers as tabs, I think that using ContiguousArray will yield more predictable performance compared to Array.
4
+
5
+
6
+
7
+ The changed files are:
8
+
9
+ - Sources/PagerTabStripViewController.swift
10
+
11
+ for Example:
12
+
13
+ - BarExampleViewController.swift
14
+ - ButtonBarExampleViewController.swift
15
+ - InstagramExampleViewController.swift
16
+ - NavButtonBarExampleViewController.swift
17
+ - SegmentedExampleViewController.swift
18
+ - SpotifyExampleViewController.swift
19
+ - TwitterExampleViewController.swift
20
+ - YoutubeExampleViewController.swift
21
+ - YoutubeWithLabelExampleViewController.swift
22
+
23
+
24
+
25
+ References
26
+
27
+ - https://github.com/apple/swift/blob/main/docs/Arrays.rst
28
+
29
+ - https://developer.apple.com/documentation/swift/contiguousarray
30
+
31
+ - https://github.com/apple/swift/blob/main/docs/OptimizationTips.rst#advice-use-contiguousarray-with-reference-types-when-nsarray-bridging-is-unnecessary
32
+
33
+ - http://jordansmith.io/on-performant-arrays-in-swift/
34
+ - https://medium.com/@nitingeorge_39047/swift-array-vs-contiguousarray-a6153098a5
Original file line number Diff line number Diff line change 318
318
TargetAttributes = {
319
319
28F828CB1C4B714D00330CF4 = {
320
320
CreatedOnToolsVersion = 7.2;
321
+ DevelopmentTeam = S3QQ63V4S9;
321
322
LastSwiftMigration = 1020;
322
323
};
323
324
28F828DF1C4B714D00330CF4 = {
562
563
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
563
564
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
564
565
CLANG_ENABLE_MODULES = YES;
566
+ DEVELOPMENT_TEAM = S3QQ63V4S9;
565
567
INFOPLIST_FILE = "$(SRCROOT)/Example/Example/Info.plist";
566
568
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
567
569
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
579
581
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
580
582
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
581
583
CLANG_ENABLE_MODULES = YES;
584
+ DEVELOPMENT_TEAM = S3QQ63V4S9;
582
585
INFOPLIST_FILE = "$(SRCROOT)/Example/Example/Info.plist";
583
586
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
584
587
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version =" 1.0" >
4
+ <dict >
5
+ <key >IDEDidComputeMac32BitWarning </key >
6
+ <true />
7
+ </dict >
8
+ </plist >
You can’t perform that action at this time.
0 commit comments