├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── smooth-feed.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-smooth-feed_Example │ │ ├── Pods-smooth-feed_Example-Info.plist │ │ ├── Pods-smooth-feed_Example-acknowledgements.markdown │ │ ├── Pods-smooth-feed_Example-acknowledgements.plist │ │ ├── Pods-smooth-feed_Example-dummy.m │ │ ├── Pods-smooth-feed_Example-frameworks.sh │ │ ├── Pods-smooth-feed_Example-umbrella.h │ │ ├── Pods-smooth-feed_Example.debug.xcconfig │ │ ├── Pods-smooth-feed_Example.modulemap │ │ └── Pods-smooth-feed_Example.release.xcconfig │ │ └── smooth-feed │ │ ├── smooth-feed-Info.plist │ │ ├── smooth-feed-dummy.m │ │ ├── smooth-feed-prefix.pch │ │ ├── smooth-feed-umbrella.h │ │ ├── smooth-feed.modulemap │ │ └── smooth-feed.xcconfig ├── smooth-feed.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── smooth-feed-Example.xcscheme ├── smooth-feed.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── smooth-feed │ ├── AppDelegate.swift │ ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard │ ├── FeedItem.swift │ ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon_60@2x-1.png │ │ ├── Icon_60@2x.png │ │ ├── Icon_60@3x.png │ │ ├── Icon_76.png │ │ ├── Icon_76@2x.png │ │ └── Icon_83@2x.png │ ├── author.imageset │ │ ├── 13422946_1038262446255928_1959357606_a.png │ │ ├── 13422946_1038262446255928_1959357606_a@2x.png │ │ ├── 13422946_1038262446255928_1959357606_a@3x.png │ │ └── Contents.json │ ├── avatar.imageset │ │ ├── 13422946_1038262446255928_1959357606_a copy 2.png │ │ ├── 13422946_1038262446255928_1959357606_a copy 2@2x.png │ │ ├── 13422946_1038262446255928_1959357606_a copy 2@3x.png │ │ └── Contents.json │ ├── avatar1.imageset │ │ ├── Contents.json │ │ ├── Group.png │ │ ├── Group@2x.png │ │ └── Group@3x.png │ ├── avatar2.imageset │ │ ├── Contents.json │ │ ├── Oval.png │ │ ├── Oval@2x.png │ │ └── Oval@3x.png │ ├── avatar3.imageset │ │ ├── 13422946_1038262446255928_1959357606_a copy.png │ │ ├── 13422946_1038262446255928_1959357606_a copy@2x.png │ │ ├── 13422946_1038262446255928_1959357606_a copy@3x.png │ │ └── Contents.json │ ├── comment.imageset │ │ ├── Contents.json │ │ ├── Path Copy.png │ │ ├── Path Copy@2x.png │ │ └── Path Copy@3x.png │ ├── like.imageset │ │ ├── Contents.json │ │ ├── Path.png │ │ ├── Path@2x-1.png │ │ └── Path@3x.png │ ├── more.imageset │ │ ├── Combined Shape.png │ │ ├── Combined Shape@2x.png │ │ ├── Combined Shape@3x.png │ │ └── Contents.json │ ├── photo.imageset │ │ ├── Bitmap@1x.png │ │ ├── Bitmap@2x.png │ │ ├── Bitmap@3x.png │ │ └── Contents.json │ ├── photo2.imageset │ │ ├── Bitmap Copy.png │ │ ├── Bitmap Copy@1x-1.png │ │ ├── Bitmap Copy@3x.png │ │ └── Contents.json │ └── share.imageset │ │ ├── Contents.json │ │ ├── Path.png │ │ ├── Path@2x.png │ │ └── Path@3x.png │ ├── Info.plist │ ├── Montserrat-Medium.ttf │ ├── Montserrat-SemiBold.ttf │ ├── UIFont.swift │ ├── ViewController.swift │ └── Views │ ├── AuthorCollectionViewCell.swift │ ├── AuthorCollectionViewCell.xib │ ├── CommentCollectionViewCell.swift │ ├── CommentCollectionViewCell.xib │ ├── FooterCollectionReusableView.swift │ ├── FooterCollectionReusableView.xib │ ├── LikeCollectionViewCell.swift │ ├── LikeCollectionViewCell.xib │ ├── PhotoCollectionReusableView.swift │ ├── PhotoCollectionReusableView.xib │ ├── TextCollectionViewCell.swift │ └── TextCollectionViewCell.xib ├── LICENSE ├── README.md ├── Screenshots └── animation.gif ├── _Pods.xcodeproj ├── smooth-feed.podspec └── smooth-feed ├── Assets └── .gitkeep └── Classes ├── .gitkeep ├── SmoothFeedCollectionReusableView.swift └── SmoothFeedCollectionViewLayout.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/smooth-feed.xcworkspace -scheme smooth-feed-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'smooth-feed_Example' do 4 | pod 'smooth-feed', :path => '../' 5 | end 6 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - smooth-feed (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - smooth-feed (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | smooth-feed: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | smooth-feed: b21cee5669eab80b8113bcc83fb4a14d2e6681ca 13 | 14 | PODFILE CHECKSUM: 54476fce31977b8cc931b22e4ff7a41fdb2f4ae0 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/smooth-feed.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "smooth-feed", 3 | "version": "0.1.0", 4 | "summary": "Custom UICollectionViewLayout for smooth feed concept.", 5 | "swift_versions": "5.0", 6 | "homepage": "https://github.com/Cuberto/smooth-feed", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "denisshvetsov": "denis.shvetsov.main@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/Cuberto/smooth-feed.git", 16 | "tag": "0.1.0" 17 | }, 18 | "social_media_url": "https://twitter.com/cuberto", 19 | "platforms": { 20 | "ios": "9.3" 21 | }, 22 | "source_files": "smooth-feed/Classes/**/*", 23 | "swift_version": "5.0" 24 | } 25 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - smooth-feed (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - smooth-feed (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | smooth-feed: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | smooth-feed: b21cee5669eab80b8113bcc83fb4a14d2e6681ca 13 | 14 | PODFILE CHECKSUM: 54476fce31977b8cc931b22e4ff7a41fdb2f4ae0 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0BADF416A05B2F40F273F9B829F9A67C /* smooth-feed-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = BA71BEE8F43E9ADF1D3BDBCB1F7B86FD /* smooth-feed-dummy.m */; }; 11 | 2739CB50E8ECDA016A6E579FA814409F /* Pods-smooth-feed_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E14B66D006D7939FE7A62B133F88849C /* Pods-smooth-feed_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 47CB08CA58FF534B9B50457FDF606A77 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 13 | 68695074352569BD00FB2D6881198EE7 /* SmoothFeedCollectionReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91EE446333A24BA9803799F8C047CD18 /* SmoothFeedCollectionReusableView.swift */; }; 14 | C1AA6DC6E4BD139E484A94FD2D81BE2D /* smooth-feed-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 725735BE94BC6636E908E9D449268C3F /* smooth-feed-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | CBE4051E3AD4E2B426C1B475133BA69C /* SmoothFeedCollectionViewLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = E26B0A37594B325C9384FAD137BF9D2D /* SmoothFeedCollectionViewLayout.swift */; }; 16 | E32B9080245C4DF0E691EFF08AD8F7AF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 17 | FAB1B733F0A9FE15C93E79135714A52C /* Pods-smooth-feed_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = ECA8E987F4846F81110585BB12682332 /* Pods-smooth-feed_Example-dummy.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 296E09E96815CC66E6510E8013FABDA6 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 61117ED598971161ADD80226F720776C; 26 | remoteInfo = "smooth-feed"; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 07B2B84C18DB25F44579343983C157BA /* Pods_smooth_feed_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_smooth_feed_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 33 | 325F56935F210BB2B08CD3920ECE418D /* Pods-smooth-feed_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-smooth-feed_Example-frameworks.sh"; sourceTree = ""; }; 34 | 396A080E0808F067BBC2114D9A4ABF5E /* Pods-smooth-feed_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-smooth-feed_Example-Info.plist"; sourceTree = ""; }; 35 | 6230E66314F221082B00850092888A0A /* smooth-feed.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "smooth-feed.modulemap"; sourceTree = ""; }; 36 | 671D1DFBD81B96F57078A47A07CD0F07 /* smooth-feed-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "smooth-feed-Info.plist"; sourceTree = ""; }; 37 | 67D676712A734199DC79E2117A1B4406 /* Pods-smooth-feed_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-smooth-feed_Example.release.xcconfig"; sourceTree = ""; }; 38 | 725735BE94BC6636E908E9D449268C3F /* smooth-feed-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "smooth-feed-umbrella.h"; sourceTree = ""; }; 39 | 8002ED484281F9A26AF7F0B0F55DA108 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 40 | 899D7541C77165D35C42F67DDC470CFB /* Pods-smooth-feed_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-smooth-feed_Example-acknowledgements.markdown"; sourceTree = ""; }; 41 | 8E35BE6804F070DCFB4208BC3F579CAB /* smooth-feed-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "smooth-feed-prefix.pch"; sourceTree = ""; }; 42 | 91EE446333A24BA9803799F8C047CD18 /* SmoothFeedCollectionReusableView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SmoothFeedCollectionReusableView.swift; path = "smooth-feed/Classes/SmoothFeedCollectionReusableView.swift"; sourceTree = ""; }; 43 | 98226FC3D54B968E548EB032EBD27857 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 44 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 45 | B2CD57FC9316A885ED393AEC6E56CA5C /* smooth-feed.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "smooth-feed.xcconfig"; sourceTree = ""; }; 46 | B4827D069DEACE44CC171EB37043DF0C /* Pods-smooth-feed_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-smooth-feed_Example.debug.xcconfig"; sourceTree = ""; }; 47 | B74BB30C56866D93CECB7A579CF23CBF /* Pods-smooth-feed_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-smooth-feed_Example-acknowledgements.plist"; sourceTree = ""; }; 48 | B8344A201CF2A0A57D8269701A798152 /* smooth_feed.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = smooth_feed.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | BA71BEE8F43E9ADF1D3BDBCB1F7B86FD /* smooth-feed-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "smooth-feed-dummy.m"; sourceTree = ""; }; 50 | C21FF2DF693413FFE2CB9E17D67A2168 /* smooth-feed.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = "smooth-feed.podspec"; sourceTree = ""; tabWidth = 2; }; 51 | C3C5C3F0A70E0581EDAE4F1686A8C1DC /* Pods-smooth-feed_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-smooth-feed_Example.modulemap"; sourceTree = ""; }; 52 | E14B66D006D7939FE7A62B133F88849C /* Pods-smooth-feed_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-smooth-feed_Example-umbrella.h"; sourceTree = ""; }; 53 | E26B0A37594B325C9384FAD137BF9D2D /* SmoothFeedCollectionViewLayout.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SmoothFeedCollectionViewLayout.swift; path = "smooth-feed/Classes/SmoothFeedCollectionViewLayout.swift"; sourceTree = ""; }; 54 | ECA8E987F4846F81110585BB12682332 /* Pods-smooth-feed_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-smooth-feed_Example-dummy.m"; sourceTree = ""; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | A855CCF187F3DFD0ABA6FF5C5BD7B3B1 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 47CB08CA58FF534B9B50457FDF606A77 /* Foundation.framework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | C7ED60327B68403AEF49E188FEA16812 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | E32B9080245C4DF0E691EFF08AD8F7AF /* Foundation.framework in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 053745B3E0A6E671764581C9B7CD39D0 /* smooth-feed */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 91EE446333A24BA9803799F8C047CD18 /* SmoothFeedCollectionReusableView.swift */, 81 | E26B0A37594B325C9384FAD137BF9D2D /* SmoothFeedCollectionViewLayout.swift */, 82 | D5A103AA98EA31B9EC41F3FC2028A1F9 /* Pod */, 83 | BD57FE498E818FB358C6706544DBF260 /* Support Files */, 84 | ); 85 | name = "smooth-feed"; 86 | path = ../..; 87 | sourceTree = ""; 88 | }; 89 | 3102493CE166F03D6D24C7E6BCDDB686 /* Pods-smooth-feed_Example */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | C3C5C3F0A70E0581EDAE4F1686A8C1DC /* Pods-smooth-feed_Example.modulemap */, 93 | 899D7541C77165D35C42F67DDC470CFB /* Pods-smooth-feed_Example-acknowledgements.markdown */, 94 | B74BB30C56866D93CECB7A579CF23CBF /* Pods-smooth-feed_Example-acknowledgements.plist */, 95 | ECA8E987F4846F81110585BB12682332 /* Pods-smooth-feed_Example-dummy.m */, 96 | 325F56935F210BB2B08CD3920ECE418D /* Pods-smooth-feed_Example-frameworks.sh */, 97 | 396A080E0808F067BBC2114D9A4ABF5E /* Pods-smooth-feed_Example-Info.plist */, 98 | E14B66D006D7939FE7A62B133F88849C /* Pods-smooth-feed_Example-umbrella.h */, 99 | B4827D069DEACE44CC171EB37043DF0C /* Pods-smooth-feed_Example.debug.xcconfig */, 100 | 67D676712A734199DC79E2117A1B4406 /* Pods-smooth-feed_Example.release.xcconfig */, 101 | ); 102 | name = "Pods-smooth-feed_Example"; 103 | path = "Target Support Files/Pods-smooth-feed_Example"; 104 | sourceTree = ""; 105 | }; 106 | 80C5BD0C3AF85ECEBA4F8CD0C6EE0E72 /* Targets Support Files */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 3102493CE166F03D6D24C7E6BCDDB686 /* Pods-smooth-feed_Example */, 110 | ); 111 | name = "Targets Support Files"; 112 | sourceTree = ""; 113 | }; 114 | A15226F8967095FDAC8D849E8DD2463F /* Products */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 07B2B84C18DB25F44579343983C157BA /* Pods_smooth_feed_Example.framework */, 118 | B8344A201CF2A0A57D8269701A798152 /* smooth_feed.framework */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | BD57FE498E818FB358C6706544DBF260 /* Support Files */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 6230E66314F221082B00850092888A0A /* smooth-feed.modulemap */, 127 | B2CD57FC9316A885ED393AEC6E56CA5C /* smooth-feed.xcconfig */, 128 | BA71BEE8F43E9ADF1D3BDBCB1F7B86FD /* smooth-feed-dummy.m */, 129 | 671D1DFBD81B96F57078A47A07CD0F07 /* smooth-feed-Info.plist */, 130 | 8E35BE6804F070DCFB4208BC3F579CAB /* smooth-feed-prefix.pch */, 131 | 725735BE94BC6636E908E9D449268C3F /* smooth-feed-umbrella.h */, 132 | ); 133 | name = "Support Files"; 134 | path = "Example/Pods/Target Support Files/smooth-feed"; 135 | sourceTree = ""; 136 | }; 137 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 141 | ); 142 | name = iOS; 143 | sourceTree = ""; 144 | }; 145 | CF1408CF629C7361332E53B88F7BD30C = { 146 | isa = PBXGroup; 147 | children = ( 148 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 149 | D21B712A7FD11D2876F4FD1D3C52B31E /* Development Pods */, 150 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 151 | A15226F8967095FDAC8D849E8DD2463F /* Products */, 152 | 80C5BD0C3AF85ECEBA4F8CD0C6EE0E72 /* Targets Support Files */, 153 | ); 154 | sourceTree = ""; 155 | }; 156 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 160 | ); 161 | name = Frameworks; 162 | sourceTree = ""; 163 | }; 164 | D21B712A7FD11D2876F4FD1D3C52B31E /* Development Pods */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | 053745B3E0A6E671764581C9B7CD39D0 /* smooth-feed */, 168 | ); 169 | name = "Development Pods"; 170 | sourceTree = ""; 171 | }; 172 | D5A103AA98EA31B9EC41F3FC2028A1F9 /* Pod */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 8002ED484281F9A26AF7F0B0F55DA108 /* LICENSE */, 176 | 98226FC3D54B968E548EB032EBD27857 /* README.md */, 177 | C21FF2DF693413FFE2CB9E17D67A2168 /* smooth-feed.podspec */, 178 | ); 179 | name = Pod; 180 | sourceTree = ""; 181 | }; 182 | /* End PBXGroup section */ 183 | 184 | /* Begin PBXHeadersBuildPhase section */ 185 | 3E997CB78F60A9789242C19DD2192C24 /* Headers */ = { 186 | isa = PBXHeadersBuildPhase; 187 | buildActionMask = 2147483647; 188 | files = ( 189 | 2739CB50E8ECDA016A6E579FA814409F /* Pods-smooth-feed_Example-umbrella.h in Headers */, 190 | ); 191 | runOnlyForDeploymentPostprocessing = 0; 192 | }; 193 | F547E394890886F52A76A7E2D7A48E57 /* Headers */ = { 194 | isa = PBXHeadersBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | C1AA6DC6E4BD139E484A94FD2D81BE2D /* smooth-feed-umbrella.h in Headers */, 198 | ); 199 | runOnlyForDeploymentPostprocessing = 0; 200 | }; 201 | /* End PBXHeadersBuildPhase section */ 202 | 203 | /* Begin PBXNativeTarget section */ 204 | 61117ED598971161ADD80226F720776C /* smooth-feed */ = { 205 | isa = PBXNativeTarget; 206 | buildConfigurationList = 419D32587F939B09F19E2C374DFA3F81 /* Build configuration list for PBXNativeTarget "smooth-feed" */; 207 | buildPhases = ( 208 | F547E394890886F52A76A7E2D7A48E57 /* Headers */, 209 | 431AD40973E3FEB919FC3FB15184FD9D /* Sources */, 210 | C7ED60327B68403AEF49E188FEA16812 /* Frameworks */, 211 | 099A6776E7F4BD72A4BD3C3221963A02 /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | ); 217 | name = "smooth-feed"; 218 | productName = "smooth-feed"; 219 | productReference = B8344A201CF2A0A57D8269701A798152 /* smooth_feed.framework */; 220 | productType = "com.apple.product-type.framework"; 221 | }; 222 | B7AA72A8746ED2E0B1CA8BCE4D0833E3 /* Pods-smooth-feed_Example */ = { 223 | isa = PBXNativeTarget; 224 | buildConfigurationList = 72D0750301E047ACF35DA5FF9C7F5A2F /* Build configuration list for PBXNativeTarget "Pods-smooth-feed_Example" */; 225 | buildPhases = ( 226 | 3E997CB78F60A9789242C19DD2192C24 /* Headers */, 227 | B4A7075C9B5AE6C7F63A39DD1D451801 /* Sources */, 228 | A855CCF187F3DFD0ABA6FF5C5BD7B3B1 /* Frameworks */, 229 | F78D493637AF032E67B7DA97815F883C /* Resources */, 230 | ); 231 | buildRules = ( 232 | ); 233 | dependencies = ( 234 | 6B3ED2AB8E5DC3A5BA16D0BFD49017D5 /* PBXTargetDependency */, 235 | ); 236 | name = "Pods-smooth-feed_Example"; 237 | productName = "Pods-smooth-feed_Example"; 238 | productReference = 07B2B84C18DB25F44579343983C157BA /* Pods_smooth_feed_Example.framework */; 239 | productType = "com.apple.product-type.framework"; 240 | }; 241 | /* End PBXNativeTarget section */ 242 | 243 | /* Begin PBXProject section */ 244 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 245 | isa = PBXProject; 246 | attributes = { 247 | LastSwiftUpdateCheck = 1100; 248 | LastUpgradeCheck = 1100; 249 | }; 250 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 251 | compatibilityVersion = "Xcode 3.2"; 252 | developmentRegion = en; 253 | hasScannedForEncodings = 0; 254 | knownRegions = ( 255 | en, 256 | Base, 257 | ); 258 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 259 | productRefGroup = A15226F8967095FDAC8D849E8DD2463F /* Products */; 260 | projectDirPath = ""; 261 | projectRoot = ""; 262 | targets = ( 263 | B7AA72A8746ED2E0B1CA8BCE4D0833E3 /* Pods-smooth-feed_Example */, 264 | 61117ED598971161ADD80226F720776C /* smooth-feed */, 265 | ); 266 | }; 267 | /* End PBXProject section */ 268 | 269 | /* Begin PBXResourcesBuildPhase section */ 270 | 099A6776E7F4BD72A4BD3C3221963A02 /* Resources */ = { 271 | isa = PBXResourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | F78D493637AF032E67B7DA97815F883C /* Resources */ = { 278 | isa = PBXResourcesBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | /* End PBXResourcesBuildPhase section */ 285 | 286 | /* Begin PBXSourcesBuildPhase section */ 287 | 431AD40973E3FEB919FC3FB15184FD9D /* Sources */ = { 288 | isa = PBXSourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | 0BADF416A05B2F40F273F9B829F9A67C /* smooth-feed-dummy.m in Sources */, 292 | 68695074352569BD00FB2D6881198EE7 /* SmoothFeedCollectionReusableView.swift in Sources */, 293 | CBE4051E3AD4E2B426C1B475133BA69C /* SmoothFeedCollectionViewLayout.swift in Sources */, 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | }; 297 | B4A7075C9B5AE6C7F63A39DD1D451801 /* Sources */ = { 298 | isa = PBXSourcesBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | FAB1B733F0A9FE15C93E79135714A52C /* Pods-smooth-feed_Example-dummy.m in Sources */, 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | /* End PBXSourcesBuildPhase section */ 306 | 307 | /* Begin PBXTargetDependency section */ 308 | 6B3ED2AB8E5DC3A5BA16D0BFD49017D5 /* PBXTargetDependency */ = { 309 | isa = PBXTargetDependency; 310 | name = "smooth-feed"; 311 | target = 61117ED598971161ADD80226F720776C /* smooth-feed */; 312 | targetProxy = 296E09E96815CC66E6510E8013FABDA6 /* PBXContainerItemProxy */; 313 | }; 314 | /* End PBXTargetDependency section */ 315 | 316 | /* Begin XCBuildConfiguration section */ 317 | 5E64C85E2A733976176543E2FC5D1694 /* Release */ = { 318 | isa = XCBuildConfiguration; 319 | baseConfigurationReference = B2CD57FC9316A885ED393AEC6E56CA5C /* smooth-feed.xcconfig */; 320 | buildSettings = { 321 | CODE_SIGN_IDENTITY = ""; 322 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 323 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 324 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 325 | CURRENT_PROJECT_VERSION = 1; 326 | DEFINES_MODULE = YES; 327 | DYLIB_COMPATIBILITY_VERSION = 1; 328 | DYLIB_CURRENT_VERSION = 1; 329 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 330 | GCC_PREFIX_HEADER = "Target Support Files/smooth-feed/smooth-feed-prefix.pch"; 331 | INFOPLIST_FILE = "Target Support Files/smooth-feed/smooth-feed-Info.plist"; 332 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 333 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 334 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 335 | MODULEMAP_FILE = "Target Support Files/smooth-feed/smooth-feed.modulemap"; 336 | PRODUCT_MODULE_NAME = smooth_feed; 337 | PRODUCT_NAME = smooth_feed; 338 | SDKROOT = iphoneos; 339 | SKIP_INSTALL = YES; 340 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 341 | SWIFT_VERSION = 5.0; 342 | TARGETED_DEVICE_FAMILY = "1,2"; 343 | VALIDATE_PRODUCT = YES; 344 | VERSIONING_SYSTEM = "apple-generic"; 345 | VERSION_INFO_PREFIX = ""; 346 | }; 347 | name = Release; 348 | }; 349 | 7CA9424C93ED6494A42388001C76988D /* Debug */ = { 350 | isa = XCBuildConfiguration; 351 | baseConfigurationReference = B4827D069DEACE44CC171EB37043DF0C /* Pods-smooth-feed_Example.debug.xcconfig */; 352 | buildSettings = { 353 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 354 | CODE_SIGN_IDENTITY = ""; 355 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 356 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 357 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 358 | CURRENT_PROJECT_VERSION = 1; 359 | DEFINES_MODULE = YES; 360 | DYLIB_COMPATIBILITY_VERSION = 1; 361 | DYLIB_CURRENT_VERSION = 1; 362 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 363 | INFOPLIST_FILE = "Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-Info.plist"; 364 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 365 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 366 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 367 | MACH_O_TYPE = staticlib; 368 | MODULEMAP_FILE = "Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example.modulemap"; 369 | OTHER_LDFLAGS = ""; 370 | OTHER_LIBTOOLFLAGS = ""; 371 | PODS_ROOT = "$(SRCROOT)"; 372 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 373 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 374 | SDKROOT = iphoneos; 375 | SKIP_INSTALL = YES; 376 | TARGETED_DEVICE_FAMILY = "1,2"; 377 | VERSIONING_SYSTEM = "apple-generic"; 378 | VERSION_INFO_PREFIX = ""; 379 | }; 380 | name = Debug; 381 | }; 382 | 8065C53EBE65BD5AAF0C74B7FBF4D16F /* Release */ = { 383 | isa = XCBuildConfiguration; 384 | baseConfigurationReference = 67D676712A734199DC79E2117A1B4406 /* Pods-smooth-feed_Example.release.xcconfig */; 385 | buildSettings = { 386 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 387 | CODE_SIGN_IDENTITY = ""; 388 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 389 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 390 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 391 | CURRENT_PROJECT_VERSION = 1; 392 | DEFINES_MODULE = YES; 393 | DYLIB_COMPATIBILITY_VERSION = 1; 394 | DYLIB_CURRENT_VERSION = 1; 395 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 396 | INFOPLIST_FILE = "Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-Info.plist"; 397 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 399 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 400 | MACH_O_TYPE = staticlib; 401 | MODULEMAP_FILE = "Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example.modulemap"; 402 | OTHER_LDFLAGS = ""; 403 | OTHER_LIBTOOLFLAGS = ""; 404 | PODS_ROOT = "$(SRCROOT)"; 405 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 406 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 407 | SDKROOT = iphoneos; 408 | SKIP_INSTALL = YES; 409 | TARGETED_DEVICE_FAMILY = "1,2"; 410 | VALIDATE_PRODUCT = YES; 411 | VERSIONING_SYSTEM = "apple-generic"; 412 | VERSION_INFO_PREFIX = ""; 413 | }; 414 | name = Release; 415 | }; 416 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | ALWAYS_SEARCH_USER_PATHS = NO; 420 | CLANG_ANALYZER_NONNULL = YES; 421 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 422 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 423 | CLANG_CXX_LIBRARY = "libc++"; 424 | CLANG_ENABLE_MODULES = YES; 425 | CLANG_ENABLE_OBJC_ARC = YES; 426 | CLANG_ENABLE_OBJC_WEAK = YES; 427 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 428 | CLANG_WARN_BOOL_CONVERSION = YES; 429 | CLANG_WARN_COMMA = YES; 430 | CLANG_WARN_CONSTANT_CONVERSION = YES; 431 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 433 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 434 | CLANG_WARN_EMPTY_BODY = YES; 435 | CLANG_WARN_ENUM_CONVERSION = YES; 436 | CLANG_WARN_INFINITE_RECURSION = YES; 437 | CLANG_WARN_INT_CONVERSION = YES; 438 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 439 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 440 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 441 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 442 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 443 | CLANG_WARN_STRICT_PROTOTYPES = YES; 444 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 445 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 446 | CLANG_WARN_UNREACHABLE_CODE = YES; 447 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 448 | COPY_PHASE_STRIP = NO; 449 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 450 | ENABLE_NS_ASSERTIONS = NO; 451 | ENABLE_STRICT_OBJC_MSGSEND = YES; 452 | GCC_C_LANGUAGE_STANDARD = gnu11; 453 | GCC_NO_COMMON_BLOCKS = YES; 454 | GCC_PREPROCESSOR_DEFINITIONS = ( 455 | "POD_CONFIGURATION_RELEASE=1", 456 | "$(inherited)", 457 | ); 458 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 459 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 460 | GCC_WARN_UNDECLARED_SELECTOR = YES; 461 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 462 | GCC_WARN_UNUSED_FUNCTION = YES; 463 | GCC_WARN_UNUSED_VARIABLE = YES; 464 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 465 | MTL_ENABLE_DEBUG_INFO = NO; 466 | MTL_FAST_MATH = YES; 467 | PRODUCT_NAME = "$(TARGET_NAME)"; 468 | STRIP_INSTALLED_PRODUCT = NO; 469 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 470 | SWIFT_VERSION = 5.0; 471 | SYMROOT = "${SRCROOT}/../build"; 472 | }; 473 | name = Release; 474 | }; 475 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 476 | isa = XCBuildConfiguration; 477 | buildSettings = { 478 | ALWAYS_SEARCH_USER_PATHS = NO; 479 | CLANG_ANALYZER_NONNULL = YES; 480 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 481 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 482 | CLANG_CXX_LIBRARY = "libc++"; 483 | CLANG_ENABLE_MODULES = YES; 484 | CLANG_ENABLE_OBJC_ARC = YES; 485 | CLANG_ENABLE_OBJC_WEAK = YES; 486 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 487 | CLANG_WARN_BOOL_CONVERSION = YES; 488 | CLANG_WARN_COMMA = YES; 489 | CLANG_WARN_CONSTANT_CONVERSION = YES; 490 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 491 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 492 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 493 | CLANG_WARN_EMPTY_BODY = YES; 494 | CLANG_WARN_ENUM_CONVERSION = YES; 495 | CLANG_WARN_INFINITE_RECURSION = YES; 496 | CLANG_WARN_INT_CONVERSION = YES; 497 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 498 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 499 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 500 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 501 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 502 | CLANG_WARN_STRICT_PROTOTYPES = YES; 503 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 504 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 505 | CLANG_WARN_UNREACHABLE_CODE = YES; 506 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 507 | COPY_PHASE_STRIP = NO; 508 | DEBUG_INFORMATION_FORMAT = dwarf; 509 | ENABLE_STRICT_OBJC_MSGSEND = YES; 510 | ENABLE_TESTABILITY = YES; 511 | GCC_C_LANGUAGE_STANDARD = gnu11; 512 | GCC_DYNAMIC_NO_PIC = NO; 513 | GCC_NO_COMMON_BLOCKS = YES; 514 | GCC_OPTIMIZATION_LEVEL = 0; 515 | GCC_PREPROCESSOR_DEFINITIONS = ( 516 | "POD_CONFIGURATION_DEBUG=1", 517 | "DEBUG=1", 518 | "$(inherited)", 519 | ); 520 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 521 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 522 | GCC_WARN_UNDECLARED_SELECTOR = YES; 523 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 524 | GCC_WARN_UNUSED_FUNCTION = YES; 525 | GCC_WARN_UNUSED_VARIABLE = YES; 526 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 527 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 528 | MTL_FAST_MATH = YES; 529 | ONLY_ACTIVE_ARCH = YES; 530 | PRODUCT_NAME = "$(TARGET_NAME)"; 531 | STRIP_INSTALLED_PRODUCT = NO; 532 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 533 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 534 | SWIFT_VERSION = 5.0; 535 | SYMROOT = "${SRCROOT}/../build"; 536 | }; 537 | name = Debug; 538 | }; 539 | E1A7313717699EBF21D7F3F7926A03C5 /* Debug */ = { 540 | isa = XCBuildConfiguration; 541 | baseConfigurationReference = B2CD57FC9316A885ED393AEC6E56CA5C /* smooth-feed.xcconfig */; 542 | buildSettings = { 543 | CODE_SIGN_IDENTITY = ""; 544 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 545 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 546 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 547 | CURRENT_PROJECT_VERSION = 1; 548 | DEFINES_MODULE = YES; 549 | DYLIB_COMPATIBILITY_VERSION = 1; 550 | DYLIB_CURRENT_VERSION = 1; 551 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 552 | GCC_PREFIX_HEADER = "Target Support Files/smooth-feed/smooth-feed-prefix.pch"; 553 | INFOPLIST_FILE = "Target Support Files/smooth-feed/smooth-feed-Info.plist"; 554 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 555 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 556 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 557 | MODULEMAP_FILE = "Target Support Files/smooth-feed/smooth-feed.modulemap"; 558 | PRODUCT_MODULE_NAME = smooth_feed; 559 | PRODUCT_NAME = smooth_feed; 560 | SDKROOT = iphoneos; 561 | SKIP_INSTALL = YES; 562 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 563 | SWIFT_VERSION = 5.0; 564 | TARGETED_DEVICE_FAMILY = "1,2"; 565 | VERSIONING_SYSTEM = "apple-generic"; 566 | VERSION_INFO_PREFIX = ""; 567 | }; 568 | name = Debug; 569 | }; 570 | /* End XCBuildConfiguration section */ 571 | 572 | /* Begin XCConfigurationList section */ 573 | 419D32587F939B09F19E2C374DFA3F81 /* Build configuration list for PBXNativeTarget "smooth-feed" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | E1A7313717699EBF21D7F3F7926A03C5 /* Debug */, 577 | 5E64C85E2A733976176543E2FC5D1694 /* Release */, 578 | ); 579 | defaultConfigurationIsVisible = 0; 580 | defaultConfigurationName = Release; 581 | }; 582 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 583 | isa = XCConfigurationList; 584 | buildConfigurations = ( 585 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 586 | B0087CB4594321EF41619F3181FE120E /* Release */, 587 | ); 588 | defaultConfigurationIsVisible = 0; 589 | defaultConfigurationName = Release; 590 | }; 591 | 72D0750301E047ACF35DA5FF9C7F5A2F /* Build configuration list for PBXNativeTarget "Pods-smooth-feed_Example" */ = { 592 | isa = XCConfigurationList; 593 | buildConfigurations = ( 594 | 7CA9424C93ED6494A42388001C76988D /* Debug */, 595 | 8065C53EBE65BD5AAF0C74B7FBF4D16F /* Release */, 596 | ); 597 | defaultConfigurationIsVisible = 0; 598 | defaultConfigurationName = Release; 599 | }; 600 | /* End XCConfigurationList section */ 601 | }; 602 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 603 | } 604 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## smooth-feed 5 | 6 | Copyright (c) 2019 denisshvetsov 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 denisshvetsov <denis.shvetsov.main@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | smooth-feed 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_smooth_feed_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_smooth_feed_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/smooth-feed/smooth_feed.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/smooth-feed/smooth_feed.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_smooth_feed_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_smooth_feed_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/smooth-feed" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/smooth-feed/smooth_feed.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "smooth_feed" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_smooth_feed_Example { 2 | umbrella header "Pods-smooth-feed_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/smooth-feed" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/smooth-feed/smooth_feed.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "smooth_feed" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/smooth-feed/smooth-feed-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/smooth-feed/smooth-feed-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_smooth_feed : NSObject 3 | @end 4 | @implementation PodsDummy_smooth_feed 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/smooth-feed/smooth-feed-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/smooth-feed/smooth-feed-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double smooth_feedVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char smooth_feedVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/smooth-feed/smooth-feed.modulemap: -------------------------------------------------------------------------------- 1 | framework module smooth_feed { 2 | umbrella header "smooth-feed-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/smooth-feed/smooth-feed.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/smooth-feed 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/smooth-feed.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 324C3EEEF7D7F4A599932B86 /* Pods_smooth_feed_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E07F8C1CDB9956BAE96CFCF3 /* Pods_smooth_feed_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 8A908BBC23916D6A00E93CB9 /* UIFont.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BB823916D6900E93CB9 /* UIFont.swift */; }; 17 | 8A908BBD23916D6A00E93CB9 /* Montserrat-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BB923916D6900E93CB9 /* Montserrat-SemiBold.ttf */; }; 18 | 8A908BBE23916D6A00E93CB9 /* Montserrat-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BBA23916D6900E93CB9 /* Montserrat-Medium.ttf */; }; 19 | 8A908BBF23916D6A00E93CB9 /* FeedItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BBB23916D6A00E93CB9 /* FeedItem.swift */; }; 20 | 8A908BCD23916E1D00E93CB9 /* PhotoCollectionReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BC123916E1D00E93CB9 /* PhotoCollectionReusableView.swift */; }; 21 | 8A908BCE23916E1D00E93CB9 /* TextCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BC223916E1D00E93CB9 /* TextCollectionViewCell.swift */; }; 22 | 8A908BCF23916E1D00E93CB9 /* AuthorCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BC323916E1D00E93CB9 /* AuthorCollectionViewCell.swift */; }; 23 | 8A908BD023916E1D00E93CB9 /* AuthorCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BC423916E1D00E93CB9 /* AuthorCollectionViewCell.xib */; }; 24 | 8A908BD123916E1D00E93CB9 /* FooterCollectionReusableView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BC523916E1D00E93CB9 /* FooterCollectionReusableView.xib */; }; 25 | 8A908BD223916E1D00E93CB9 /* PhotoCollectionReusableView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BC623916E1D00E93CB9 /* PhotoCollectionReusableView.xib */; }; 26 | 8A908BD323916E1D00E93CB9 /* LikeCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BC723916E1D00E93CB9 /* LikeCollectionViewCell.xib */; }; 27 | 8A908BD423916E1D00E93CB9 /* CommentCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BC823916E1D00E93CB9 /* CommentCollectionViewCell.xib */; }; 28 | 8A908BD523916E1D00E93CB9 /* TextCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8A908BC923916E1D00E93CB9 /* TextCollectionViewCell.xib */; }; 29 | 8A908BD623916E1D00E93CB9 /* CommentCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BCA23916E1D00E93CB9 /* CommentCollectionViewCell.swift */; }; 30 | 8A908BD723916E1D00E93CB9 /* LikeCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BCB23916E1D00E93CB9 /* LikeCollectionViewCell.swift */; }; 31 | 8A908BD823916E1D00E93CB9 /* FooterCollectionReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A908BCC23916E1D00E93CB9 /* FooterCollectionReusableView.swift */; }; 32 | /* End PBXBuildFile section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 062FED4D72D82E5CC9FB2860 /* Pods_smooth_feed_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_smooth_feed_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 456D7E036CEE928ED7EB7430 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 37 | 54128CF09731610F6D28B77F /* Pods-smooth-feed_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-smooth-feed_Example.debug.xcconfig"; path = "Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example.debug.xcconfig"; sourceTree = ""; }; 38 | 607FACD01AFB9204008FA782 /* smooth-feed_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "smooth-feed_Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 44 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 45 | 8A908BB823916D6900E93CB9 /* UIFont.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIFont.swift; sourceTree = ""; }; 46 | 8A908BB923916D6900E93CB9 /* Montserrat-SemiBold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Montserrat-SemiBold.ttf"; sourceTree = ""; }; 47 | 8A908BBA23916D6900E93CB9 /* Montserrat-Medium.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Montserrat-Medium.ttf"; sourceTree = ""; }; 48 | 8A908BBB23916D6A00E93CB9 /* FeedItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FeedItem.swift; sourceTree = ""; }; 49 | 8A908BC123916E1D00E93CB9 /* PhotoCollectionReusableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhotoCollectionReusableView.swift; sourceTree = ""; }; 50 | 8A908BC223916E1D00E93CB9 /* TextCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TextCollectionViewCell.swift; sourceTree = ""; }; 51 | 8A908BC323916E1D00E93CB9 /* AuthorCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthorCollectionViewCell.swift; sourceTree = ""; }; 52 | 8A908BC423916E1D00E93CB9 /* AuthorCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AuthorCollectionViewCell.xib; sourceTree = ""; }; 53 | 8A908BC523916E1D00E93CB9 /* FooterCollectionReusableView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FooterCollectionReusableView.xib; sourceTree = ""; }; 54 | 8A908BC623916E1D00E93CB9 /* PhotoCollectionReusableView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PhotoCollectionReusableView.xib; sourceTree = ""; }; 55 | 8A908BC723916E1D00E93CB9 /* LikeCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LikeCollectionViewCell.xib; sourceTree = ""; }; 56 | 8A908BC823916E1D00E93CB9 /* CommentCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CommentCollectionViewCell.xib; sourceTree = ""; }; 57 | 8A908BC923916E1D00E93CB9 /* TextCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TextCollectionViewCell.xib; sourceTree = ""; }; 58 | 8A908BCA23916E1D00E93CB9 /* CommentCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CommentCollectionViewCell.swift; sourceTree = ""; }; 59 | 8A908BCB23916E1D00E93CB9 /* LikeCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LikeCollectionViewCell.swift; sourceTree = ""; }; 60 | 8A908BCC23916E1D00E93CB9 /* FooterCollectionReusableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FooterCollectionReusableView.swift; sourceTree = ""; }; 61 | 8DFA6DE7D2C5C6CA10C84EDC /* Pods-smooth-feed_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-smooth-feed_Tests.debug.xcconfig"; path = "Target Support Files/Pods-smooth-feed_Tests/Pods-smooth-feed_Tests.debug.xcconfig"; sourceTree = ""; }; 62 | 9FF3C5193A5E7ABC538555E3 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 63 | C792E49CEC4BFED3ECCFCEB7 /* smooth-feed.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = "smooth-feed.podspec"; path = "../smooth-feed.podspec"; sourceTree = ""; }; 64 | E07F8C1CDB9956BAE96CFCF3 /* Pods_smooth_feed_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_smooth_feed_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | E6A4F7B5C77CD96F83DB9D97 /* Pods-smooth-feed_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-smooth-feed_Tests.release.xcconfig"; path = "Target Support Files/Pods-smooth-feed_Tests/Pods-smooth-feed_Tests.release.xcconfig"; sourceTree = ""; }; 66 | FC0B4A51E42AB0FD9AA4FE4C /* Pods-smooth-feed_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-smooth-feed_Example.release.xcconfig"; path = "Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example.release.xcconfig"; sourceTree = ""; }; 67 | /* End PBXFileReference section */ 68 | 69 | /* Begin PBXFrameworksBuildPhase section */ 70 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 71 | isa = PBXFrameworksBuildPhase; 72 | buildActionMask = 2147483647; 73 | files = ( 74 | 324C3EEEF7D7F4A599932B86 /* Pods_smooth_feed_Example.framework in Frameworks */, 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | 607FACC71AFB9204008FA782 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 85 | 607FACD21AFB9204008FA782 /* Example for smooth-feed */, 86 | 607FACD11AFB9204008FA782 /* Products */, 87 | D7F04215146AD5BB86316A49 /* Pods */, 88 | 79A2F05929493572B5E6BE12 /* Frameworks */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | 607FACD11AFB9204008FA782 /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 607FACD01AFB9204008FA782 /* smooth-feed_Example.app */, 96 | ); 97 | name = Products; 98 | sourceTree = ""; 99 | }; 100 | 607FACD21AFB9204008FA782 /* Example for smooth-feed */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 104 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 105 | 8A908BBB23916D6A00E93CB9 /* FeedItem.swift */, 106 | 8A908BB823916D6900E93CB9 /* UIFont.swift */, 107 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 108 | 8A908BC023916E1D00E93CB9 /* Views */, 109 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 110 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 111 | 8A908BBA23916D6900E93CB9 /* Montserrat-Medium.ttf */, 112 | 8A908BB923916D6900E93CB9 /* Montserrat-SemiBold.ttf */, 113 | 607FACD31AFB9204008FA782 /* Supporting Files */, 114 | ); 115 | name = "Example for smooth-feed"; 116 | path = "smooth-feed"; 117 | sourceTree = ""; 118 | }; 119 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 607FACD41AFB9204008FA782 /* Info.plist */, 123 | ); 124 | name = "Supporting Files"; 125 | sourceTree = ""; 126 | }; 127 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | C792E49CEC4BFED3ECCFCEB7 /* smooth-feed.podspec */, 131 | 456D7E036CEE928ED7EB7430 /* README.md */, 132 | 9FF3C5193A5E7ABC538555E3 /* LICENSE */, 133 | ); 134 | name = "Podspec Metadata"; 135 | sourceTree = ""; 136 | }; 137 | 79A2F05929493572B5E6BE12 /* Frameworks */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | E07F8C1CDB9956BAE96CFCF3 /* Pods_smooth_feed_Example.framework */, 141 | 062FED4D72D82E5CC9FB2860 /* Pods_smooth_feed_Tests.framework */, 142 | ); 143 | name = Frameworks; 144 | sourceTree = ""; 145 | }; 146 | 8A908BC023916E1D00E93CB9 /* Views */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 8A908BC123916E1D00E93CB9 /* PhotoCollectionReusableView.swift */, 150 | 8A908BC623916E1D00E93CB9 /* PhotoCollectionReusableView.xib */, 151 | 8A908BCC23916E1D00E93CB9 /* FooterCollectionReusableView.swift */, 152 | 8A908BC523916E1D00E93CB9 /* FooterCollectionReusableView.xib */, 153 | 8A908BCB23916E1D00E93CB9 /* LikeCollectionViewCell.swift */, 154 | 8A908BC723916E1D00E93CB9 /* LikeCollectionViewCell.xib */, 155 | 8A908BC323916E1D00E93CB9 /* AuthorCollectionViewCell.swift */, 156 | 8A908BC423916E1D00E93CB9 /* AuthorCollectionViewCell.xib */, 157 | 8A908BC223916E1D00E93CB9 /* TextCollectionViewCell.swift */, 158 | 8A908BC923916E1D00E93CB9 /* TextCollectionViewCell.xib */, 159 | 8A908BCA23916E1D00E93CB9 /* CommentCollectionViewCell.swift */, 160 | 8A908BC823916E1D00E93CB9 /* CommentCollectionViewCell.xib */, 161 | ); 162 | path = Views; 163 | sourceTree = ""; 164 | }; 165 | D7F04215146AD5BB86316A49 /* Pods */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 54128CF09731610F6D28B77F /* Pods-smooth-feed_Example.debug.xcconfig */, 169 | FC0B4A51E42AB0FD9AA4FE4C /* Pods-smooth-feed_Example.release.xcconfig */, 170 | 8DFA6DE7D2C5C6CA10C84EDC /* Pods-smooth-feed_Tests.debug.xcconfig */, 171 | E6A4F7B5C77CD96F83DB9D97 /* Pods-smooth-feed_Tests.release.xcconfig */, 172 | ); 173 | path = Pods; 174 | sourceTree = ""; 175 | }; 176 | /* End PBXGroup section */ 177 | 178 | /* Begin PBXNativeTarget section */ 179 | 607FACCF1AFB9204008FA782 /* smooth-feed_Example */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "smooth-feed_Example" */; 182 | buildPhases = ( 183 | 50C82C0E8AE859822F9E0D2B /* [CP] Check Pods Manifest.lock */, 184 | 607FACCC1AFB9204008FA782 /* Sources */, 185 | 607FACCD1AFB9204008FA782 /* Frameworks */, 186 | 607FACCE1AFB9204008FA782 /* Resources */, 187 | F0FA175AA7016F32E15ABAA8 /* [CP] Embed Pods Frameworks */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | ); 193 | name = "smooth-feed_Example"; 194 | productName = "smooth-feed"; 195 | productReference = 607FACD01AFB9204008FA782 /* smooth-feed_Example.app */; 196 | productType = "com.apple.product-type.application"; 197 | }; 198 | /* End PBXNativeTarget section */ 199 | 200 | /* Begin PBXProject section */ 201 | 607FACC81AFB9204008FA782 /* Project object */ = { 202 | isa = PBXProject; 203 | attributes = { 204 | LastSwiftUpdateCheck = 0830; 205 | LastUpgradeCheck = 1120; 206 | ORGANIZATIONNAME = CocoaPods; 207 | TargetAttributes = { 208 | 607FACCF1AFB9204008FA782 = { 209 | CreatedOnToolsVersion = 6.3.1; 210 | DevelopmentTeam = SK7A63GXF6; 211 | LastSwiftMigration = 0900; 212 | }; 213 | }; 214 | }; 215 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "smooth-feed" */; 216 | compatibilityVersion = "Xcode 3.2"; 217 | developmentRegion = en; 218 | hasScannedForEncodings = 0; 219 | knownRegions = ( 220 | en, 221 | Base, 222 | ); 223 | mainGroup = 607FACC71AFB9204008FA782; 224 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 225 | projectDirPath = ""; 226 | projectRoot = ""; 227 | targets = ( 228 | 607FACCF1AFB9204008FA782 /* smooth-feed_Example */, 229 | ); 230 | }; 231 | /* End PBXProject section */ 232 | 233 | /* Begin PBXResourcesBuildPhase section */ 234 | 607FACCE1AFB9204008FA782 /* Resources */ = { 235 | isa = PBXResourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 239 | 8A908BBE23916D6A00E93CB9 /* Montserrat-Medium.ttf in Resources */, 240 | 8A908BD423916E1D00E93CB9 /* CommentCollectionViewCell.xib in Resources */, 241 | 8A908BD523916E1D00E93CB9 /* TextCollectionViewCell.xib in Resources */, 242 | 8A908BD323916E1D00E93CB9 /* LikeCollectionViewCell.xib in Resources */, 243 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 244 | 8A908BD023916E1D00E93CB9 /* AuthorCollectionViewCell.xib in Resources */, 245 | 8A908BD223916E1D00E93CB9 /* PhotoCollectionReusableView.xib in Resources */, 246 | 8A908BBD23916D6A00E93CB9 /* Montserrat-SemiBold.ttf in Resources */, 247 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 248 | 8A908BD123916E1D00E93CB9 /* FooterCollectionReusableView.xib in Resources */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXResourcesBuildPhase section */ 253 | 254 | /* Begin PBXShellScriptBuildPhase section */ 255 | 50C82C0E8AE859822F9E0D2B /* [CP] Check Pods Manifest.lock */ = { 256 | isa = PBXShellScriptBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | inputFileListPaths = ( 261 | ); 262 | inputPaths = ( 263 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 264 | "${PODS_ROOT}/Manifest.lock", 265 | ); 266 | name = "[CP] Check Pods Manifest.lock"; 267 | outputFileListPaths = ( 268 | ); 269 | outputPaths = ( 270 | "$(DERIVED_FILE_DIR)/Pods-smooth-feed_Example-checkManifestLockResult.txt", 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | shellPath = /bin/sh; 274 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 275 | showEnvVarsInLog = 0; 276 | }; 277 | F0FA175AA7016F32E15ABAA8 /* [CP] Embed Pods Frameworks */ = { 278 | isa = PBXShellScriptBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | ); 282 | inputPaths = ( 283 | "${PODS_ROOT}/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-frameworks.sh", 284 | "${BUILT_PRODUCTS_DIR}/smooth-feed/smooth_feed.framework", 285 | ); 286 | name = "[CP] Embed Pods Frameworks"; 287 | outputPaths = ( 288 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/smooth_feed.framework", 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | shellPath = /bin/sh; 292 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-smooth-feed_Example/Pods-smooth-feed_Example-frameworks.sh\"\n"; 293 | showEnvVarsInLog = 0; 294 | }; 295 | /* End PBXShellScriptBuildPhase section */ 296 | 297 | /* Begin PBXSourcesBuildPhase section */ 298 | 607FACCC1AFB9204008FA782 /* Sources */ = { 299 | isa = PBXSourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | 8A908BCF23916E1D00E93CB9 /* AuthorCollectionViewCell.swift in Sources */, 303 | 8A908BBF23916D6A00E93CB9 /* FeedItem.swift in Sources */, 304 | 8A908BCE23916E1D00E93CB9 /* TextCollectionViewCell.swift in Sources */, 305 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 306 | 8A908BD623916E1D00E93CB9 /* CommentCollectionViewCell.swift in Sources */, 307 | 8A908BCD23916E1D00E93CB9 /* PhotoCollectionReusableView.swift in Sources */, 308 | 8A908BD823916E1D00E93CB9 /* FooterCollectionReusableView.swift in Sources */, 309 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 310 | 8A908BD723916E1D00E93CB9 /* LikeCollectionViewCell.swift in Sources */, 311 | 8A908BBC23916D6A00E93CB9 /* UIFont.swift in Sources */, 312 | ); 313 | runOnlyForDeploymentPostprocessing = 0; 314 | }; 315 | /* End PBXSourcesBuildPhase section */ 316 | 317 | /* Begin PBXVariantGroup section */ 318 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 319 | isa = PBXVariantGroup; 320 | children = ( 321 | 607FACDA1AFB9204008FA782 /* Base */, 322 | ); 323 | name = Main.storyboard; 324 | sourceTree = ""; 325 | }; 326 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 327 | isa = PBXVariantGroup; 328 | children = ( 329 | 607FACDF1AFB9204008FA782 /* Base */, 330 | ); 331 | name = LaunchScreen.xib; 332 | sourceTree = ""; 333 | }; 334 | /* End PBXVariantGroup section */ 335 | 336 | /* Begin XCBuildConfiguration section */ 337 | 607FACED1AFB9204008FA782 /* Debug */ = { 338 | isa = XCBuildConfiguration; 339 | buildSettings = { 340 | ALWAYS_SEARCH_USER_PATHS = NO; 341 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 343 | CLANG_CXX_LIBRARY = "libc++"; 344 | CLANG_ENABLE_MODULES = YES; 345 | CLANG_ENABLE_OBJC_ARC = YES; 346 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 347 | CLANG_WARN_BOOL_CONVERSION = YES; 348 | CLANG_WARN_COMMA = YES; 349 | CLANG_WARN_CONSTANT_CONVERSION = YES; 350 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 351 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 352 | CLANG_WARN_EMPTY_BODY = YES; 353 | CLANG_WARN_ENUM_CONVERSION = YES; 354 | CLANG_WARN_INFINITE_RECURSION = YES; 355 | CLANG_WARN_INT_CONVERSION = YES; 356 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 358 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 359 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 360 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 361 | CLANG_WARN_STRICT_PROTOTYPES = YES; 362 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 363 | CLANG_WARN_UNREACHABLE_CODE = YES; 364 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 365 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 366 | COPY_PHASE_STRIP = NO; 367 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 368 | ENABLE_STRICT_OBJC_MSGSEND = YES; 369 | ENABLE_TESTABILITY = YES; 370 | GCC_C_LANGUAGE_STANDARD = gnu99; 371 | GCC_DYNAMIC_NO_PIC = NO; 372 | GCC_NO_COMMON_BLOCKS = YES; 373 | GCC_OPTIMIZATION_LEVEL = 0; 374 | GCC_PREPROCESSOR_DEFINITIONS = ( 375 | "DEBUG=1", 376 | "$(inherited)", 377 | ); 378 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 379 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 380 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 381 | GCC_WARN_UNDECLARED_SELECTOR = YES; 382 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 383 | GCC_WARN_UNUSED_FUNCTION = YES; 384 | GCC_WARN_UNUSED_VARIABLE = YES; 385 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 386 | MTL_ENABLE_DEBUG_INFO = YES; 387 | ONLY_ACTIVE_ARCH = YES; 388 | SDKROOT = iphoneos; 389 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 390 | }; 391 | name = Debug; 392 | }; 393 | 607FACEE1AFB9204008FA782 /* Release */ = { 394 | isa = XCBuildConfiguration; 395 | buildSettings = { 396 | ALWAYS_SEARCH_USER_PATHS = NO; 397 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 398 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 399 | CLANG_CXX_LIBRARY = "libc++"; 400 | CLANG_ENABLE_MODULES = YES; 401 | CLANG_ENABLE_OBJC_ARC = YES; 402 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 403 | CLANG_WARN_BOOL_CONVERSION = YES; 404 | CLANG_WARN_COMMA = YES; 405 | CLANG_WARN_CONSTANT_CONVERSION = YES; 406 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 407 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 408 | CLANG_WARN_EMPTY_BODY = YES; 409 | CLANG_WARN_ENUM_CONVERSION = YES; 410 | CLANG_WARN_INFINITE_RECURSION = YES; 411 | CLANG_WARN_INT_CONVERSION = YES; 412 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 414 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 415 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 416 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 417 | CLANG_WARN_STRICT_PROTOTYPES = YES; 418 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 419 | CLANG_WARN_UNREACHABLE_CODE = YES; 420 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 421 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 422 | COPY_PHASE_STRIP = NO; 423 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 424 | ENABLE_NS_ASSERTIONS = NO; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | GCC_C_LANGUAGE_STANDARD = gnu99; 427 | GCC_NO_COMMON_BLOCKS = YES; 428 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 429 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 430 | GCC_WARN_UNDECLARED_SELECTOR = YES; 431 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 432 | GCC_WARN_UNUSED_FUNCTION = YES; 433 | GCC_WARN_UNUSED_VARIABLE = YES; 434 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 435 | MTL_ENABLE_DEBUG_INFO = NO; 436 | SDKROOT = iphoneos; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 438 | VALIDATE_PRODUCT = YES; 439 | }; 440 | name = Release; 441 | }; 442 | 607FACF01AFB9204008FA782 /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | baseConfigurationReference = 54128CF09731610F6D28B77F /* Pods-smooth-feed_Example.debug.xcconfig */; 445 | buildSettings = { 446 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 447 | DEVELOPMENT_TEAM = SK7A63GXF6; 448 | INFOPLIST_FILE = "smooth-feed/Info.plist"; 449 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 450 | MODULE_NAME = ExampleApp; 451 | PRODUCT_BUNDLE_IDENTIFIER = "com.cuberto.components.smooth-feed"; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 454 | SWIFT_VERSION = 5.0; 455 | }; 456 | name = Debug; 457 | }; 458 | 607FACF11AFB9204008FA782 /* Release */ = { 459 | isa = XCBuildConfiguration; 460 | baseConfigurationReference = FC0B4A51E42AB0FD9AA4FE4C /* Pods-smooth-feed_Example.release.xcconfig */; 461 | buildSettings = { 462 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 463 | DEVELOPMENT_TEAM = SK7A63GXF6; 464 | INFOPLIST_FILE = "smooth-feed/Info.plist"; 465 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 466 | MODULE_NAME = ExampleApp; 467 | PRODUCT_BUNDLE_IDENTIFIER = "com.cuberto.components.smooth-feed"; 468 | PRODUCT_NAME = "$(TARGET_NAME)"; 469 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 470 | SWIFT_VERSION = 5.0; 471 | }; 472 | name = Release; 473 | }; 474 | /* End XCBuildConfiguration section */ 475 | 476 | /* Begin XCConfigurationList section */ 477 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "smooth-feed" */ = { 478 | isa = XCConfigurationList; 479 | buildConfigurations = ( 480 | 607FACED1AFB9204008FA782 /* Debug */, 481 | 607FACEE1AFB9204008FA782 /* Release */, 482 | ); 483 | defaultConfigurationIsVisible = 0; 484 | defaultConfigurationName = Release; 485 | }; 486 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "smooth-feed_Example" */ = { 487 | isa = XCConfigurationList; 488 | buildConfigurations = ( 489 | 607FACF01AFB9204008FA782 /* Debug */, 490 | 607FACF11AFB9204008FA782 /* Release */, 491 | ); 492 | defaultConfigurationIsVisible = 0; 493 | defaultConfigurationName = Release; 494 | }; 495 | /* End XCConfigurationList section */ 496 | }; 497 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 498 | } 499 | -------------------------------------------------------------------------------- /Example/smooth-feed.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/smooth-feed.xcodeproj/xcshareddata/xcschemes/smooth-feed-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 76 | 78 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Example/smooth-feed.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/smooth-feed.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/smooth-feed/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // smooth-feed 4 | // 5 | // Created by denisshvetsov on 11/29/2019. 6 | // Copyright (c) 2019 denisshvetsov. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/smooth-feed/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Example/smooth-feed/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Example/smooth-feed/FeedItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FeedItem.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 29/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | enum FeedItem { 12 | case like(_ likes: Int) 13 | case author 14 | case text(_ text: String) 15 | case comment(_ comment: Comment) 16 | } 17 | 18 | let items: [[FeedItem]] = [ 19 | [ 20 | .like(12893), 21 | .author, 22 | .text("Friendly rate choice (for #fun) 😅\nDon’t forget click ❤️ 😉"), 23 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar1"), 24 | name: "iameddiei", 25 | text: "My god this is gold 😂😂😂😂ahahahahahhahaah", 26 | hours: 18, 27 | likes: 2)), 28 | ], 29 | [ 30 | .like(9214), 31 | .author, 32 | .text("We all need a hype-man to hype us up\nwhen we cook..."), 33 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar"), 34 | name: "brave.nick", 35 | text: "My god this is gold 😂😂😂😂ahahahahahhahaah\nNice, very nice!", 36 | hours: 19, 37 | likes: 4)), 38 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar1"), 39 | name: "iameddiei", 40 | text: "Lol😂", 41 | hours: 18, 42 | likes: 2)), 43 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar2"), 44 | name: "alex", 45 | text: "We all need a hype-man to hype us up when we cook", 46 | hours: 6, 47 | likes: 6)), 48 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar1"), 49 | name: "iameddiei", 50 | text: "I just realized it's not funny 😡", 51 | hours: 2, 52 | likes: 0)), 53 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar"), 54 | name: "brave.nick", 55 | text: "My god this is gold 😂😂😂😂ahahahahahhahaah\nNice, very nice!", 56 | hours: 19, 57 | likes: 4)) 58 | ], 59 | [ 60 | .like(13413), 61 | .author, 62 | .text("Friendly rate choice (for #fun) 😅\nDon’t forget click ❤️ 😉"), 63 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar"), 64 | name: "brave.nick", 65 | text: "My god this is gold 😂😂😂😂ahahahahahhahaah\nNice, very nice!", 66 | hours: 19, 67 | likes: 4)), 68 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar1"), 69 | name: "iameddiei", 70 | text: "Lol😂", 71 | hours: 18, 72 | likes: 2)), 73 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar2"), 74 | name: "alex", 75 | text: "We all need a hype-man to hype us up when we cook", 76 | hours: 6, 77 | likes: 6)), 78 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar1"), 79 | name: "iameddiei", 80 | text: "I just realized it's not funny 😡", 81 | hours: 2, 82 | likes: 0)) 83 | ], 84 | [ 85 | .like(15456), 86 | .author, 87 | .text("Friendly rate choice (for #fun) 😅\nDon’t forget click ❤️ 😉"), 88 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar"), 89 | name: "brave.nick", 90 | text: "My god this is gold 😂😂😂😂ahahahahahhahaah\nNice, very nice!", 91 | hours: 19, 92 | likes: 4)), 93 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar1"), 94 | name: "iameddiei", 95 | text: "Lol😂", 96 | hours: 18, 97 | likes: 2)), 98 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar2"), 99 | name: "alex", 100 | text: "We all need a hype-man to hype us up when we cook", 101 | hours: 6, 102 | likes: 6)), 103 | .comment(Comment(avatar: #imageLiteral(resourceName: "avatar1"), 104 | name: "iameddiei", 105 | text: "I just realized it's not funny 😡", 106 | hours: 2, 107 | likes: 0)) 108 | ], 109 | ] 110 | -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "size" : "40x40", 30 | "idiom" : "iphone", 31 | "filename" : "Icon_60@2x.png", 32 | "scale" : "3x" 33 | }, 34 | { 35 | "size" : "60x60", 36 | "idiom" : "iphone", 37 | "filename" : "Icon_60@2x-1.png", 38 | "scale" : "2x" 39 | }, 40 | { 41 | "size" : "60x60", 42 | "idiom" : "iphone", 43 | "filename" : "Icon_60@3x.png", 44 | "scale" : "3x" 45 | }, 46 | { 47 | "idiom" : "ipad", 48 | "size" : "20x20", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "idiom" : "ipad", 53 | "size" : "20x20", 54 | "scale" : "2x" 55 | }, 56 | { 57 | "idiom" : "ipad", 58 | "size" : "29x29", 59 | "scale" : "1x" 60 | }, 61 | { 62 | "idiom" : "ipad", 63 | "size" : "29x29", 64 | "scale" : "2x" 65 | }, 66 | { 67 | "idiom" : "ipad", 68 | "size" : "40x40", 69 | "scale" : "1x" 70 | }, 71 | { 72 | "idiom" : "ipad", 73 | "size" : "40x40", 74 | "scale" : "2x" 75 | }, 76 | { 77 | "size" : "76x76", 78 | "idiom" : "ipad", 79 | "filename" : "Icon_76.png", 80 | "scale" : "1x" 81 | }, 82 | { 83 | "size" : "76x76", 84 | "idiom" : "ipad", 85 | "filename" : "Icon_76@2x.png", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "size" : "83.5x83.5", 90 | "idiom" : "ipad", 91 | "filename" : "Icon_83@2x.png", 92 | "scale" : "2x" 93 | }, 94 | { 95 | "idiom" : "ios-marketing", 96 | "size" : "1024x1024", 97 | "scale" : "1x" 98 | } 99 | ], 100 | "info" : { 101 | "version" : 1, 102 | "author" : "xcode" 103 | } 104 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_60@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_60@2x-1.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_60@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_60@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_76.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_76@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_83@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/AppIcon.appiconset/Icon_83@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/author.imageset/13422946_1038262446255928_1959357606_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/author.imageset/13422946_1038262446255928_1959357606_a.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/author.imageset/13422946_1038262446255928_1959357606_a@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/author.imageset/13422946_1038262446255928_1959357606_a@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/author.imageset/13422946_1038262446255928_1959357606_a@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/author.imageset/13422946_1038262446255928_1959357606_a@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/author.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "13422946_1038262446255928_1959357606_a.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "13422946_1038262446255928_1959357606_a@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "13422946_1038262446255928_1959357606_a@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar.imageset/13422946_1038262446255928_1959357606_a copy 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar.imageset/13422946_1038262446255928_1959357606_a copy 2.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar.imageset/13422946_1038262446255928_1959357606_a copy 2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar.imageset/13422946_1038262446255928_1959357606_a copy 2@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar.imageset/13422946_1038262446255928_1959357606_a copy 2@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar.imageset/13422946_1038262446255928_1959357606_a copy 2@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "13422946_1038262446255928_1959357606_a copy 2.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "13422946_1038262446255928_1959357606_a copy 2@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "13422946_1038262446255928_1959357606_a copy 2@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Group.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Group@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Group@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar1.imageset/Group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar1.imageset/Group.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar1.imageset/Group@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar1.imageset/Group@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar1.imageset/Group@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar1.imageset/Group@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Oval.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Oval@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Oval@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar2.imageset/Oval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar2.imageset/Oval.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar2.imageset/Oval@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar2.imageset/Oval@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar2.imageset/Oval@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar2.imageset/Oval@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar3.imageset/13422946_1038262446255928_1959357606_a copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar3.imageset/13422946_1038262446255928_1959357606_a copy.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar3.imageset/13422946_1038262446255928_1959357606_a copy@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar3.imageset/13422946_1038262446255928_1959357606_a copy@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar3.imageset/13422946_1038262446255928_1959357606_a copy@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/avatar3.imageset/13422946_1038262446255928_1959357606_a copy@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/avatar3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "13422946_1038262446255928_1959357606_a copy.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "13422946_1038262446255928_1959357606_a copy@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "13422946_1038262446255928_1959357606_a copy@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/comment.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Path Copy.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Path Copy@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Path Copy@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/comment.imageset/Path Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/comment.imageset/Path Copy.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/comment.imageset/Path Copy@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/comment.imageset/Path Copy@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/comment.imageset/Path Copy@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/comment.imageset/Path Copy@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/like.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Path.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Path@2x-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Path@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/like.imageset/Path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/like.imageset/Path.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/like.imageset/Path@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/like.imageset/Path@2x-1.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/like.imageset/Path@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/like.imageset/Path@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/more.imageset/Combined Shape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/more.imageset/Combined Shape.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/more.imageset/Combined Shape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/more.imageset/Combined Shape@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/more.imageset/Combined Shape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/more.imageset/Combined Shape@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/more.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Combined Shape.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Combined Shape@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Combined Shape@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo.imageset/Bitmap@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/photo.imageset/Bitmap@1x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo.imageset/Bitmap@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/photo.imageset/Bitmap@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo.imageset/Bitmap@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/photo.imageset/Bitmap@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Bitmap@1x.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Bitmap@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Bitmap@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo2.imageset/Bitmap Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/photo2.imageset/Bitmap Copy.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo2.imageset/Bitmap Copy@1x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/photo2.imageset/Bitmap Copy@1x-1.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo2.imageset/Bitmap Copy@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/photo2.imageset/Bitmap Copy@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/photo2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Bitmap Copy@1x-1.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Bitmap Copy.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Bitmap Copy@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/share.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Path.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Path@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Path@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/share.imageset/Path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/share.imageset/Path.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/share.imageset/Path@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/share.imageset/Path@2x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Images.xcassets/share.imageset/Path@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Images.xcassets/share.imageset/Path@3x.png -------------------------------------------------------------------------------- /Example/smooth-feed/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIAppFonts 6 | 7 | Montserrat-Medium.ttf 8 | Montserrat-SemiBold.ttf 9 | 10 | UIUserInterfaceStyle 11 | Light 12 | CFBundleDevelopmentRegion 13 | en 14 | CFBundleExecutable 15 | $(EXECUTABLE_NAME) 16 | CFBundleIdentifier 17 | $(PRODUCT_BUNDLE_IDENTIFIER) 18 | CFBundleInfoDictionaryVersion 19 | 6.0 20 | CFBundleName 21 | $(PRODUCT_NAME) 22 | CFBundlePackageType 23 | APPL 24 | CFBundleShortVersionString 25 | 1.0 26 | CFBundleSignature 27 | ???? 28 | CFBundleVersion 29 | 1 30 | LSRequiresIPhoneOS 31 | 32 | UILaunchStoryboardName 33 | LaunchScreen 34 | UIMainStoryboardFile 35 | Main 36 | UIRequiredDeviceCapabilities 37 | 38 | armv7 39 | 40 | UISupportedInterfaceOrientations 41 | 42 | UIInterfaceOrientationPortrait 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/smooth-feed/Montserrat-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Montserrat-Medium.ttf -------------------------------------------------------------------------------- /Example/smooth-feed/Montserrat-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Example/smooth-feed/Montserrat-SemiBold.ttf -------------------------------------------------------------------------------- /Example/smooth-feed/UIFont.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIFont.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 29/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIFont { 12 | static let medium = UIFont(name: "Montserrat-Medium", size: 14)! 13 | static let semibold = UIFont(name: "Montserrat-SemiBold", size: 14)! 14 | } 15 | -------------------------------------------------------------------------------- /Example/smooth-feed/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 11/29/2019. 6 | // Copyright (c) 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import smooth_feed 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet private var collectionView: UICollectionView! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | collectionView.register(UINib(nibName: CommentCollectionViewCell.reuseIdentifier, bundle: nil), 20 | forCellWithReuseIdentifier: CommentCollectionViewCell.reuseIdentifier) 21 | collectionView.register(UINib(nibName: AuthorCollectionViewCell.reuseIdentifier, bundle: nil), 22 | forCellWithReuseIdentifier: AuthorCollectionViewCell.reuseIdentifier) 23 | collectionView.register(UINib(nibName: LikeCollectionViewCell.reuseIdentifier, bundle: nil), 24 | forCellWithReuseIdentifier: LikeCollectionViewCell.reuseIdentifier) 25 | collectionView.register(UINib(nibName: TextCollectionViewCell.reuseIdentifier, bundle: nil), 26 | forCellWithReuseIdentifier: TextCollectionViewCell.reuseIdentifier) 27 | collectionView.register(UINib(nibName: PhotoCollectionReusableView.reuseIdentifier, bundle: nil), 28 | forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, 29 | withReuseIdentifier: PhotoCollectionReusableView.reuseIdentifier) 30 | collectionView.register(UINib(nibName: FooterCollectionReusableView.reuseIdentifier, bundle: nil), 31 | forSupplementaryViewOfKind: UICollectionView.elementKindSectionFooter, 32 | withReuseIdentifier: FooterCollectionReusableView.reuseIdentifier) 33 | collectionView.alwaysBounceVertical = true 34 | collectionView.dataSource = self 35 | 36 | let layout = SmoothFeedCollectionViewLayout() 37 | layout.estimatedItemHeight = 76 38 | layout.itemsInSectionMaxHeight = 304 39 | layout.footerHeight = 90 40 | layout.headerHeight = UIScreen.main.bounds.width 41 | collectionView.collectionViewLayout = layout 42 | } 43 | } 44 | 45 | extension ViewController: UICollectionViewDataSource { 46 | 47 | func numberOfSections(in collectionView: UICollectionView) -> Int { 48 | return items.count 49 | } 50 | 51 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 52 | return items[section].count 53 | } 54 | 55 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 56 | let item = items[indexPath.section][indexPath.item] 57 | switch item { 58 | case .like(let likes): 59 | let reuseIdentifier = LikeCollectionViewCell.reuseIdentifier 60 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, 61 | for: indexPath) as! LikeCollectionViewCell 62 | cell.setup(with: likes) 63 | return cell 64 | case .author: 65 | let reuseIdentifier = AuthorCollectionViewCell.reuseIdentifier 66 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, 67 | for: indexPath) as! AuthorCollectionViewCell 68 | return cell 69 | case .text(let text): 70 | let reuseIdentifier = TextCollectionViewCell.reuseIdentifier 71 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, 72 | for: indexPath) as! TextCollectionViewCell 73 | cell.setup(with: text) 74 | return cell 75 | case .comment(let comment): 76 | let reuseIdentifier = CommentCollectionViewCell.reuseIdentifier 77 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, 78 | for: indexPath) as! CommentCollectionViewCell 79 | cell.setup(with: comment) 80 | return cell 81 | } 82 | } 83 | 84 | func collectionView(_ collectionView: UICollectionView, 85 | viewForSupplementaryElementOfKind kind: String, 86 | at indexPath: IndexPath) -> UICollectionReusableView { 87 | let reuseIdentifier: String 88 | switch kind { 89 | case UICollectionView.elementKindSectionHeader: 90 | reuseIdentifier = PhotoCollectionReusableView.reuseIdentifier 91 | case UICollectionView.elementKindSectionFooter: 92 | reuseIdentifier = FooterCollectionReusableView.reuseIdentifier 93 | default: 94 | fatalError("unexpected kind") 95 | } 96 | let supplementaryView = collectionView.dequeueReusableSupplementaryView(ofKind: kind, 97 | withReuseIdentifier: reuseIdentifier, 98 | for: indexPath) 99 | let photo = supplementaryView as? PhotoCollectionReusableView 100 | photo?.imageView.image = [#imageLiteral(resourceName: "photo"), #imageLiteral(resourceName: "photo2")][indexPath.section % 2] 101 | return supplementaryView 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/AuthorCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AuthorCollectionViewCell.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 26/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import smooth_feed 11 | 12 | class AuthorCollectionViewCell: UICollectionViewCell { 13 | 14 | static let reuseIdentifier = String(describing: AuthorCollectionViewCell.self) 15 | 16 | @IBOutlet private var borderView: UIView! 17 | @IBOutlet private var imageView: UIImageView! 18 | @IBOutlet private var nameLabel: UILabel! 19 | @IBOutlet private var dateLabel: UILabel! 20 | 21 | override func awakeFromNib() { 22 | super.awakeFromNib() 23 | 24 | borderView.layer.cornerRadius = 26 25 | borderView.layer.borderWidth = 1 26 | borderView.layer.borderColor = #colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1).cgColor 27 | 28 | nameLabel.font = UIFont.semibold 29 | 30 | dateLabel.textColor = UIColor.black.withAlphaComponent(0.4) 31 | dateLabel.font = UIFont.medium 32 | } 33 | } 34 | 35 | extension AuthorCollectionViewCell: SmoothFeedCollectionReusableView { 36 | 37 | func heightFitting(width: CGFloat) -> CGFloat { 38 | return 60 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/AuthorCollectionViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 35 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/CommentCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CommentCollectionViewCell.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 21/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import smooth_feed 11 | 12 | struct Comment { 13 | let avatar: UIImage? 14 | let name: String 15 | let text: String 16 | let hours: Int 17 | let likes: Int 18 | } 19 | 20 | class CommentCollectionViewCell: UICollectionViewCell { 21 | 22 | static let reuseIdentifier = String(describing: CommentCollectionViewCell.self) 23 | 24 | @IBOutlet private var avatarImageView: UIImageView! 25 | @IBOutlet private var textLabel: UILabel! 26 | @IBOutlet private var dateLabel: UILabel! 27 | @IBOutlet private var likesLabel: UILabel! 28 | @IBOutlet private var replyLabel: UILabel! 29 | 30 | func setup(with comment: Comment) { 31 | avatarImageView.image = comment.avatar 32 | textLabel.attributedText = attributedText(name: comment.name, text: comment.text) 33 | dateLabel.text = "\(comment.hours) h" 34 | likesLabel.text = comment.likes == 1 ? "\(comment.likes) like" : "\(comment.likes) likes" 35 | likesLabel.isHidden = comment.likes == 0 36 | } 37 | 38 | override func awakeFromNib() { 39 | super.awakeFromNib() 40 | replyLabel.text = "Reply" 41 | dateLabel.textColor = UIColor.black.withAlphaComponent(0.4) 42 | likesLabel.textColor = UIColor.black.withAlphaComponent(0.4) 43 | replyLabel.textColor = UIColor.black.withAlphaComponent(0.4) 44 | dateLabel.font = UIFont.medium 45 | likesLabel.font = UIFont.semibold 46 | replyLabel.font = UIFont.semibold 47 | } 48 | 49 | private func attributedText(name: String, text: String) -> NSAttributedString { 50 | let font = UIFont.medium 51 | let string = "\(name) \(text)" 52 | let style = NSMutableParagraphStyle() 53 | style.lineSpacing = 3 54 | let attributedString = NSMutableAttributedString( 55 | string: string, 56 | attributes: [.font: font, 57 | .foregroundColor: UIColor.black, 58 | .paragraphStyle: style] 59 | ) 60 | 61 | guard let argumentRange = string.range(of: name) else { return attributedString } 62 | let argumentFontAttributes: [NSAttributedString.Key: Any] = [ 63 | .font: UIFont.semibold, 64 | .foregroundColor: UIColor.black 65 | ] 66 | attributedString.addAttributes(argumentFontAttributes, range: NSRange(argumentRange, in: string)) 67 | return attributedString 68 | } 69 | } 70 | 71 | extension CommentCollectionViewCell: SmoothFeedCollectionReusableView { 72 | 73 | func heightFitting(width: CGFloat) -> CGFloat { 74 | return systemLayoutSizeFitting( 75 | CGSize(width: width, height: 0), 76 | withHorizontalFittingPriority: .required, 77 | verticalFittingPriority: .fittingSizeLevel 78 | ).height 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/CommentCollectionViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | AvertaCY-Semibold 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 37 | 38 | 39 | 40 | 46 | 52 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/FooterCollectionReusableView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FooterCollectionReusableView.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 21/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class FooterCollectionReusableView: UICollectionReusableView { 12 | 13 | static let reuseIdentifier = String(describing: FooterCollectionReusableView.self) 14 | 15 | @IBOutlet private var roundedBorderView: UIView! 16 | @IBOutlet private var addCommentLabel: UILabel! 17 | @IBOutlet private var discussButton: UIButton! 18 | 19 | override func awakeFromNib() { 20 | super.awakeFromNib() 21 | 22 | roundedBorderView.roundCorners([.layerMaxXMaxYCorner, .layerMinXMaxYCorner], radius: 40) 23 | roundedBorderView.layer.borderWidth = 1 24 | roundedBorderView.layer.borderColor = #colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1).cgColor 25 | 26 | addCommentLabel.font = UIFont.medium 27 | discussButton.titleLabel?.font = UIFont.semibold 28 | } 29 | } 30 | 31 | private extension UIView { 32 | 33 | func roundCorners(_ corners: CACornerMask, radius: CGFloat) { 34 | if #available(iOS 11, *) { 35 | self.layer.cornerRadius = radius 36 | self.layer.maskedCorners = corners 37 | } else { 38 | var cornerMask = UIRectCorner() 39 | if corners.contains(.layerMinXMinYCorner) { 40 | cornerMask.insert(.topLeft) 41 | } 42 | if corners.contains(.layerMaxXMinYCorner) { 43 | cornerMask.insert(.topRight) 44 | } 45 | if corners.contains(.layerMinXMaxYCorner) { 46 | cornerMask.insert(.bottomLeft) 47 | } 48 | if corners.contains(.layerMaxXMaxYCorner) { 49 | cornerMask.insert(.bottomRight) 50 | } 51 | let path = UIBezierPath(roundedRect: self.bounds, 52 | byRoundingCorners: cornerMask, 53 | cornerRadii: CGSize(width: radius, height: radius)) 54 | let mask = CAShapeLayer() 55 | mask.path = path.cgPath 56 | self.layer.mask = mask 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/FooterCollectionReusableView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | AvertaCY-Regular 12 | 13 | 14 | AvertaCY-Semibold 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 42 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/LikeCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LikeCollectionViewCell.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 26/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class LikeCollectionViewCell: UICollectionViewCell { 12 | 13 | static let reuseIdentifier = String(describing: LikeCollectionViewCell.self) 14 | 15 | @IBOutlet private var viewsLabel: UILabel! 16 | @IBOutlet private var likeButton: UIButton! 17 | @IBOutlet private var commentButton: UIButton! 18 | @IBOutlet private var shareButton: UIButton! 19 | 20 | func setup(with views: Int) { 21 | viewsLabel.text = "\(views) views" 22 | } 23 | 24 | override func awakeFromNib() { 25 | super.awakeFromNib() 26 | 27 | viewsLabel.font = UIFont.semibold 28 | 29 | likeButton.layer.cornerRadius = 18 30 | likeButton.layer.borderWidth = 1 31 | likeButton.layer.borderColor = #colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1).cgColor 32 | 33 | commentButton.layer.cornerRadius = 18 34 | commentButton.layer.borderWidth = 1 35 | commentButton.layer.borderColor = #colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1).cgColor 36 | 37 | shareButton.layer.cornerRadius = 18 38 | shareButton.layer.borderWidth = 1 39 | shareButton.layer.borderColor = #colorLiteral(red: 0.9411764706, green: 0.9411764706, blue: 0.9411764706, alpha: 1).cgColor 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/LikeCollectionViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 27 | 33 | 41 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/PhotoCollectionReusableView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PhotoCollectionReusableView.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 21/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class PhotoCollectionReusableView: UICollectionReusableView { 12 | 13 | static let reuseIdentifier = String(describing: PhotoCollectionReusableView.self) 14 | 15 | @IBOutlet var imageView: UIImageView! 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/PhotoCollectionReusableView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/TextCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TextCollectionViewCell.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 26/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class TextCollectionViewCell: UICollectionViewCell { 12 | 13 | static let reuseIdentifier = String(describing: TextCollectionViewCell.self) 14 | 15 | @IBOutlet private var textLabel: UILabel! 16 | 17 | func setup(with text: String) { 18 | textLabel.attributedText = attributedText(text: text, more: "more") 19 | } 20 | 21 | override func awakeFromNib() { 22 | super.awakeFromNib() 23 | 24 | let comment = "Friendly rate choice (for #fun) 😅\nDon’t forget click ❤️ 😉" 25 | textLabel.attributedText = attributedText(text: comment, more: "more") 26 | } 27 | 28 | private func attributedText(text: String, more: String) -> NSAttributedString { 29 | let font = UIFont.medium 30 | let string = "\(text) \(more)" 31 | let style = NSMutableParagraphStyle() 32 | style.lineSpacing = 5 33 | let attributedString = NSMutableAttributedString( 34 | string: string, 35 | attributes: [.font: font, 36 | .foregroundColor: UIColor.black, 37 | .paragraphStyle: style] 38 | ) 39 | 40 | guard let argumentRange = string.range(of: more) else { return attributedString } 41 | let argumentFontAttributes: [NSAttributedString.Key: Any] = [ 42 | .font: UIFont.semibold, 43 | .foregroundColor: UIColor.black 44 | ] 45 | attributedString.addAttributes(argumentFontAttributes, range: NSRange(argumentRange, in: string)) 46 | return attributedString 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Example/smooth-feed/Views/TextCollectionViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | AvertaCY-Regular 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Cuberto 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cuberto's development lab: 2 | 3 | Cuberto is a leading digital agency with solid design and development expertise. We build mobile and web products for startups. Drop us a line. 4 | 5 | # smooth-feed 6 | 7 | [![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/Cuberto/smooth-feed/master/LICENSE) 8 | [![CocoaPods](https://img.shields.io/cocoapods/v/smooth-feed.svg)](http://cocoapods.org/pods/smooth-feed) 9 | [![Swift 5.0](https://img.shields.io/badge/Swift-5.0-green.svg?style=flat)](https://developer.apple.com/swift/) 10 | 11 | ![Animation](https://raw.githubusercontent.com/cuberto/smooth-feed/master/Screenshots/animation.gif) 12 | 13 | ## Example 14 | 15 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 16 | 17 | ## Requirements 18 | 19 | - iOS 9.3+ 20 | - Xcode 10 21 | 22 | ## Installation 23 | 24 | smooth-feed is available through [CocoaPods](https://cocoapods.org). To install 25 | it, simply add the following line to your Podfile: 26 | 27 | ```ruby 28 | pod 'smooth-feed' 29 | ``` 30 | Then run `pod install`. 31 | 32 | ## Usage 33 | 34 | Instantiate and setup `SmoothFeedCollectionViewLayout` for your `UICollectionView`. 35 | Adopt `SmoothFeedCollectionReusableView` for self-sizing cells support 36 | 37 | ## Author 38 | 39 | Cuberto Design, info@cuberto.com 40 | 41 | ## License 42 | 43 | smooth-feed is available under the MIT license. See the LICENSE file for more info. 44 | -------------------------------------------------------------------------------- /Screenshots/animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/Screenshots/animation.gif -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /smooth-feed.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint smooth-feed.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'smooth-feed' 11 | s.version = '0.1.0' 12 | s.summary = 'Custom UICollectionViewLayout for smooth feed concept.' 13 | s.swift_version = '5.0' 14 | s.homepage = 'https://github.com/Cuberto/smooth-feed' 15 | s.license = { :type => 'MIT', :file => 'LICENSE' } 16 | s.author = { 'denisshvetsov' => 'denis.shvetsov.main@gmail.com' } 17 | s.source = { :git => 'https://github.com/Cuberto/smooth-feed.git', :tag => s.version.to_s } 18 | s.social_media_url = 'https://twitter.com/cuberto' 19 | 20 | s.ios.deployment_target = '9.3' 21 | 22 | s.source_files = 'smooth-feed/Classes/**/*' 23 | end 24 | -------------------------------------------------------------------------------- /smooth-feed/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/smooth-feed/Assets/.gitkeep -------------------------------------------------------------------------------- /smooth-feed/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cuberto/smooth-feed/8594d3c1b8de80ec0b8d99ea8fc321a03b65d110/smooth-feed/Classes/.gitkeep -------------------------------------------------------------------------------- /smooth-feed/Classes/SmoothFeedCollectionReusableView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SmoothFeedCollectionReusableView.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 29/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | 8 | import Foundation 9 | 10 | /// SmoothFeedCollectionViewLayout alternative for self-sizing cells via `preferredLayoutAttributesFitting(_:)` 11 | /// You can calculate height by calling: 12 | /// 13 | /// return systemLayoutSizeFitting( 14 | /// CGSize(width: width, height: 0), 15 | /// withHorizontalFittingPriority: .required, 16 | /// verticalFittingPriority: .fittingSizeLevel 17 | /// ).height 18 | /// 19 | /// or just return constant 20 | /// 21 | public protocol SmoothFeedCollectionReusableView { 22 | func heightFitting(width: CGFloat) -> CGFloat 23 | } 24 | -------------------------------------------------------------------------------- /smooth-feed/Classes/SmoothFeedCollectionViewLayout.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SmoothFeedCollectionViewLayout.swift 3 | // smooth-feed 4 | // 5 | // Created by Denis Shvetsov on 26/11/2019. 6 | // Copyright © 2019 Cuberto. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class SmoothFeedCollectionViewLayout: UICollectionViewLayout { 12 | 13 | open var itemHeight: CGFloat = 0 14 | open var estimatedItemHeight: CGFloat = 0 // setting a non-zero height enables cells that self-size via heightFitting(width:) 15 | open var itemsInSectionMaxHeight: CGFloat = 0 16 | open var headerHeight: CGFloat = 0 17 | open var footerHeight: CGFloat = 0 18 | 19 | open var offset: CGFloat { 20 | guard let collectionView = collectionView else { return 0 } 21 | if #available(iOS 11.0, *) { 22 | return collectionView.contentOffset.y + collectionView.safeAreaInsets.top 23 | } else { 24 | return collectionView.contentOffset.y 25 | } 26 | } 27 | 28 | private var defaultItemHeight: CGFloat { 29 | return estimatedItemHeight > 0 ? estimatedItemHeight : itemHeight 30 | } 31 | 32 | private var contentWidth: CGFloat { 33 | return collectionView?.bounds.width ?? 0 34 | } 35 | 36 | private var itemHeightCache = [IndexPath: CGFloat]() 37 | 38 | /// Make sure you call this method on `reloadData()` or model changes 39 | public func clearCache() { 40 | itemHeightCache.removeAll() 41 | } 42 | 43 | override open var collectionViewContentSize: CGSize { 44 | guard let collectionView = collectionView else { return CGSize.zero } 45 | return CGSize(width: collectionView.bounds.width, height: sectionY(for: collectionView.numberOfSections)) 46 | } 47 | 48 | override open func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool { 49 | return true 50 | } 51 | 52 | override open func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { 53 | guard let collectionView = collectionView else { return nil } 54 | var result = [UICollectionViewLayoutAttributes]() 55 | for section in 0.. UICollectionViewLayoutAttributes? { 77 | let attributes = UICollectionViewLayoutAttributes(forSupplementaryViewOfKind: elementKind, with: indexPath) 78 | let secY = sectionY(for: indexPath.section) 79 | switch elementKind { 80 | case UICollectionView.elementKindSectionHeader: 81 | let y = secY + headerOffset(offset: offset, y: secY, section: indexPath.section) 82 | attributes.frame = CGRect(x: 0, y: y, width: contentWidth, height: headerHeight) 83 | case UICollectionView.elementKindSectionFooter: 84 | let y = secY + headerHeight + itemsHeight(in: indexPath.section) 85 | attributes.frame = CGRect(x: 0, y: y, width: contentWidth, height: footerHeight) 86 | default: 87 | return nil 88 | } 89 | return attributes 90 | } 91 | 92 | override open func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { 93 | let attributes = UICollectionViewLayoutAttributes(forCellWith: indexPath) 94 | let y = sectionY(for: indexPath.section) 95 | let height = itemHeight(at: indexPath) 96 | let offsettedItemY = itemY(for: indexPath) + itemOffset(offset: offset, y: y, section: indexPath.section) 97 | let itemY = y + headerHeight + offsettedItemY 98 | attributes.frame = CGRect(x: 0, y: itemY, width: contentWidth, height: height) 99 | attributes.zIndex = -1 100 | attributes.isHidden = offsettedItemY >= itemsInSectionMaxHeight 101 | return attributes 102 | } 103 | 104 | private func sectionY(for section: Int) -> CGFloat { 105 | let y = (0.. CGFloat { 110 | return headerHeight + footerHeight + itemsHeight(in: section) 111 | } 112 | 113 | private func itemsHeight(in section: Int) -> CGFloat { 114 | guard let collectionView = collectionView else { return 0 } 115 | let numberOfItems = collectionView.numberOfItems(inSection: section) 116 | let height = itemY(for: IndexPath(item: numberOfItems, section: section)) 117 | return min(height, itemsInSectionMaxHeight) 118 | } 119 | 120 | private func headerOffset(offset: CGFloat, y: CGFloat, section: Int) -> CGFloat { 121 | let dividedOffset = (offset - y) * 0.5 122 | let height = itemsHeight(in: section) 123 | if dividedOffset >= height { 124 | return height 125 | } else if dividedOffset <= 0 { 126 | return 0 127 | } else { 128 | return dividedOffset 129 | } 130 | } 131 | 132 | private func itemY(for indexPath: IndexPath) -> CGFloat { 133 | let y = (0.. CGFloat { 140 | guard let collectionView = collectionView else { return 0 } 141 | let dividedOffset = (offset - y) * 0.5 142 | let maxHeight = itemsInSectionMaxHeight 143 | let lastIndexPathInSection = IndexPath(item: collectionView.numberOfItems(inSection: section) - 1, section: section) 144 | let delta = itemHeight(at: lastIndexPathInSection) * 1.5 // for make cells move faster => last cell showing earlier 145 | let numberOfItems = collectionView.numberOfItems(inSection: section) 146 | let itemsHeight = itemY(for: IndexPath(item: numberOfItems, section: section)) 147 | 148 | guard dividedOffset > 0, itemsHeight > maxHeight else { return 0 } 149 | let diff = itemsHeight - maxHeight 150 | let result = -dividedOffset / maxHeight * (diff + delta) 151 | return result <= -diff ? -diff : result 152 | } 153 | 154 | private func itemHeight(at indexPath: IndexPath) -> CGFloat { 155 | guard estimatedItemHeight > 0 else { return itemHeight } 156 | if let height = itemHeightCache[indexPath] { 157 | return height 158 | } else { 159 | let smoothView = collectionView?.cellForItem(at: indexPath) as? SmoothFeedCollectionReusableView 160 | if let height = smoothView?.heightFitting(width: contentWidth) { 161 | itemHeightCache[indexPath] = height 162 | return height 163 | } else { 164 | return estimatedItemHeight 165 | } 166 | } 167 | } 168 | } 169 | 170 | --------------------------------------------------------------------------------