Skip to content

Commit 277e3fb

Browse files
Add newFlowLayout into collectionView drag delegate
1 parent 844260e commit 277e3fb

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

Example.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@
318318
TargetAttributes = {
319319
28F828CB1C4B714D00330CF4 = {
320320
CreatedOnToolsVersion = 7.2;
321+
DevelopmentTeam = S3QQ63V4S9;
321322
LastSwiftMigration = 1020;
322323
};
323324
28F828DF1C4B714D00330CF4 = {
@@ -562,6 +563,7 @@
562563
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
563564
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
564565
CLANG_ENABLE_MODULES = YES;
566+
DEVELOPMENT_TEAM = S3QQ63V4S9;
565567
INFOPLIST_FILE = "$(SRCROOT)/Example/Example/Info.plist";
566568
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
567569
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -579,6 +581,7 @@
579581
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
580582
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
581583
CLANG_ENABLE_MODULES = YES;
584+
DEVELOPMENT_TEAM = S3QQ63V4S9;
582585
INFOPLIST_FILE = "$(SRCROOT)/Example/Example/Info.plist";
583586
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
584587
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>

0 commit comments

Comments
 (0)