From 294fd763f822161236921827c42a0abcc70d9138 Mon Sep 17 00:00:00 2001 From: Arnaud Dorgans Date: Thu, 4 Jan 2018 15:51:40 +0100 Subject: [PATCH] storyboard update --- .../InfiniteLayout.xcodeproj/project.pbxproj | 2 ++ .../InfiniteLayout/Base.lproj/Main.storyboard | 30 +++++++++++-------- .../InfiniteLayout/CustomViewController.swift | 6 +--- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/Example/InfiniteLayout.xcodeproj/project.pbxproj b/Example/InfiniteLayout.xcodeproj/project.pbxproj index b15c344..6435275 100644 --- a/Example/InfiniteLayout.xcodeproj/project.pbxproj +++ b/Example/InfiniteLayout.xcodeproj/project.pbxproj @@ -597,6 +597,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; @@ -613,6 +614,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; diff --git a/Example/InfiniteLayout/Base.lproj/Main.storyboard b/Example/InfiniteLayout/Base.lproj/Main.storyboard index a059869..9d87737 100644 --- a/Example/InfiniteLayout/Base.lproj/Main.storyboard +++ b/Example/InfiniteLayout/Base.lproj/Main.storyboard @@ -15,8 +15,8 @@ - - + + @@ -98,14 +98,18 @@ + + + + - + - - + @@ -316,7 +320,7 @@ - + @@ -374,14 +378,14 @@ - + - + @@ -399,7 +403,7 @@ - + @@ -434,7 +438,7 @@ - + @@ -483,7 +487,7 @@ - + diff --git a/Example/InfiniteLayout/CustomViewController.swift b/Example/InfiniteLayout/CustomViewController.swift index bf6fe12..1c2d8ef 100644 --- a/Example/InfiniteLayout/CustomViewController.swift +++ b/Example/InfiniteLayout/CustomViewController.swift @@ -17,11 +17,7 @@ class CustomViewController: UIViewController { extension CustomViewController: UICollectionViewDataSource { func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { - return 14 - } - - func numberOfSections(in collectionView: UICollectionView) -> Int { - return 2 + return 20 } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {