├── .gitignore ├── Podfile ├── README.md ├── Resource └── videoScreenShot.jpeg ├── TextureAVAssetFeed.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── vingle.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── vingle.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── TextureAVAssetFeed.xcworkspace ├── contents.xcworkspacedata └── xcuserdata │ └── vingle.xcuserdatad │ └── UserInterfaceState.xcuserstate ├── TextureAVAssetFeed ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── icPlay.imageset │ │ ├── Contents.json │ │ └── icPlay.pdf ├── Controllers │ └── VideoFeedViewController.swift ├── Info.plist ├── Launch Screen.storyboard ├── Models │ └── Video.swift └── Views │ ├── GTVideoNode.swift │ ├── VideoCellNode.swift │ └── VideoContentNode.swift ├── TextureAVAssetFeedTests ├── Info.plist └── TextureAVAssetFeedTests.swift └── TextureAVAssetFeedUITests ├── Info.plist └── TextureAVAssetFeedUITests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .Trashes 3 | *.lock 4 | Pods/ 5 | build/**/* 6 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'TextureAVAssetFeed' do 4 | pod 'Texture' 5 | pod 'SnapKit' 6 | end 7 | 8 | post_install do |installer| 9 | installer.pods_project.targets.each do |target| 10 | target.build_configurations.each do |config| 11 | config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR' 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Texture AVAsset Video Feed 2 | ### Texture ASVideoNode Scrolling smooth improve test 3 | 4 | 5 | [Example Video Link](https://www.youtube.com/watch?v=Xd1Zhs41yvg) 6 | 7 | 8 | ## Author 9 | Geektree0101, h2s1880@gmail.com 10 | -------------------------------------------------------------------------------- /Resource/videoScreenShot.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekTree0101/TextureAVAssetVideoFeed/173a048a4dbbb170f0fbf861f51265d8d7ee408b/Resource/videoScreenShot.jpeg -------------------------------------------------------------------------------- /TextureAVAssetFeed.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7057D82AB5E77B3A1BE485DB /* Pods_TextureAVAssetFeed.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D3C690D8D82713C5F4B641F7 /* Pods_TextureAVAssetFeed.framework */; }; 11 | 9B86D7921FEE2637007ABFD9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B86D7911FEE2637007ABFD9 /* AppDelegate.swift */; }; 12 | 9B86D7991FEE2637007ABFD9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9B86D7981FEE2637007ABFD9 /* Assets.xcassets */; }; 13 | 9B86D7A71FEE2637007ABFD9 /* TextureAVAssetFeedTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B86D7A61FEE2637007ABFD9 /* TextureAVAssetFeedTests.swift */; }; 14 | 9B86D7B21FEE2638007ABFD9 /* TextureAVAssetFeedUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B86D7B11FEE2638007ABFD9 /* TextureAVAssetFeedUITests.swift */; }; 15 | 9BCAF3341FEE270100421532 /* VideoFeedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BCAF3331FEE270100421532 /* VideoFeedViewController.swift */; }; 16 | 9BCAF3361FEE278500421532 /* VideoContentNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BCAF3351FEE278500421532 /* VideoContentNode.swift */; }; 17 | 9BCAF3381FEE27E400421532 /* Video.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BCAF3371FEE27E400421532 /* Video.swift */; }; 18 | 9BCAF33A1FEE291D00421532 /* VideoCellNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BCAF3391FEE291D00421532 /* VideoCellNode.swift */; }; 19 | 9BCAF33C1FEE2C9800421532 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9BCAF33B1FEE2C9800421532 /* Launch Screen.storyboard */; }; 20 | 9BCAF33E1FEE346D00421532 /* GTVideoNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BCAF33D1FEE346D00421532 /* GTVideoNode.swift */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 9B86D7A31FEE2637007ABFD9 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = 9B86D7861FEE2637007ABFD9 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 9B86D78D1FEE2637007ABFD9; 29 | remoteInfo = TextureAVAssetFeed; 30 | }; 31 | 9B86D7AE1FEE2638007ABFD9 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 9B86D7861FEE2637007ABFD9 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 9B86D78D1FEE2637007ABFD9; 36 | remoteInfo = TextureAVAssetFeed; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 866AC1DA4177C3EE9FE65AB4 /* Pods-TextureAVAssetFeed.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TextureAVAssetFeed.release.xcconfig"; path = "Pods/Target Support Files/Pods-TextureAVAssetFeed/Pods-TextureAVAssetFeed.release.xcconfig"; sourceTree = ""; }; 42 | 9B86D78E1FEE2637007ABFD9 /* TextureAVAssetFeed.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TextureAVAssetFeed.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 9B86D7911FEE2637007ABFD9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 9B86D7981FEE2637007ABFD9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 45 | 9B86D79D1FEE2637007ABFD9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 9B86D7A21FEE2637007ABFD9 /* TextureAVAssetFeedTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TextureAVAssetFeedTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 9B86D7A61FEE2637007ABFD9 /* TextureAVAssetFeedTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextureAVAssetFeedTests.swift; sourceTree = ""; }; 48 | 9B86D7A81FEE2638007ABFD9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 9B86D7AD1FEE2638007ABFD9 /* TextureAVAssetFeedUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TextureAVAssetFeedUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 9B86D7B11FEE2638007ABFD9 /* TextureAVAssetFeedUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextureAVAssetFeedUITests.swift; sourceTree = ""; }; 51 | 9B86D7B31FEE2638007ABFD9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 9BCAF3331FEE270100421532 /* VideoFeedViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoFeedViewController.swift; sourceTree = ""; }; 53 | 9BCAF3351FEE278500421532 /* VideoContentNode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoContentNode.swift; sourceTree = ""; }; 54 | 9BCAF3371FEE27E400421532 /* Video.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Video.swift; sourceTree = ""; }; 55 | 9BCAF3391FEE291D00421532 /* VideoCellNode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoCellNode.swift; sourceTree = ""; }; 56 | 9BCAF33B1FEE2C9800421532 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = ""; }; 57 | 9BCAF33D1FEE346D00421532 /* GTVideoNode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GTVideoNode.swift; sourceTree = ""; }; 58 | D3C690D8D82713C5F4B641F7 /* Pods_TextureAVAssetFeed.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TextureAVAssetFeed.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | DEB3AE640175BCAA8E3640AA /* Pods-TextureAVAssetFeed.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TextureAVAssetFeed.debug.xcconfig"; path = "Pods/Target Support Files/Pods-TextureAVAssetFeed/Pods-TextureAVAssetFeed.debug.xcconfig"; sourceTree = ""; }; 60 | /* End PBXFileReference section */ 61 | 62 | /* Begin PBXFrameworksBuildPhase section */ 63 | 9B86D78B1FEE2637007ABFD9 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | 7057D82AB5E77B3A1BE485DB /* Pods_TextureAVAssetFeed.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 9B86D79F1FEE2637007ABFD9 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | 9B86D7AA1FEE2638007ABFD9 /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | /* End PBXFrameworksBuildPhase section */ 86 | 87 | /* Begin PBXGroup section */ 88 | 9B86D7851FEE2637007ABFD9 = { 89 | isa = PBXGroup; 90 | children = ( 91 | 9B86D7901FEE2637007ABFD9 /* TextureAVAssetFeed */, 92 | 9B86D7A51FEE2637007ABFD9 /* TextureAVAssetFeedTests */, 93 | 9B86D7B01FEE2638007ABFD9 /* TextureAVAssetFeedUITests */, 94 | 9B86D78F1FEE2637007ABFD9 /* Products */, 95 | C8FDAEDB328E14E37E36C414 /* Pods */, 96 | D4022F9A37698E7F37DDBC4D /* Frameworks */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 9B86D78F1FEE2637007ABFD9 /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 9B86D78E1FEE2637007ABFD9 /* TextureAVAssetFeed.app */, 104 | 9B86D7A21FEE2637007ABFD9 /* TextureAVAssetFeedTests.xctest */, 105 | 9B86D7AD1FEE2638007ABFD9 /* TextureAVAssetFeedUITests.xctest */, 106 | ); 107 | name = Products; 108 | sourceTree = ""; 109 | }; 110 | 9B86D7901FEE2637007ABFD9 /* TextureAVAssetFeed */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 9BCAF3321FEE26F600421532 /* Views */, 114 | 9BCAF3311FEE26F100421532 /* Models */, 115 | 9BCAF3301FEE26E600421532 /* Controllers */, 116 | 9B86D7911FEE2637007ABFD9 /* AppDelegate.swift */, 117 | 9B86D7981FEE2637007ABFD9 /* Assets.xcassets */, 118 | 9B86D79D1FEE2637007ABFD9 /* Info.plist */, 119 | 9BCAF33B1FEE2C9800421532 /* Launch Screen.storyboard */, 120 | ); 121 | path = TextureAVAssetFeed; 122 | sourceTree = ""; 123 | }; 124 | 9B86D7A51FEE2637007ABFD9 /* TextureAVAssetFeedTests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 9B86D7A61FEE2637007ABFD9 /* TextureAVAssetFeedTests.swift */, 128 | 9B86D7A81FEE2638007ABFD9 /* Info.plist */, 129 | ); 130 | path = TextureAVAssetFeedTests; 131 | sourceTree = ""; 132 | }; 133 | 9B86D7B01FEE2638007ABFD9 /* TextureAVAssetFeedUITests */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 9B86D7B11FEE2638007ABFD9 /* TextureAVAssetFeedUITests.swift */, 137 | 9B86D7B31FEE2638007ABFD9 /* Info.plist */, 138 | ); 139 | path = TextureAVAssetFeedUITests; 140 | sourceTree = ""; 141 | }; 142 | 9BCAF3301FEE26E600421532 /* Controllers */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 9BCAF3331FEE270100421532 /* VideoFeedViewController.swift */, 146 | ); 147 | path = Controllers; 148 | sourceTree = ""; 149 | }; 150 | 9BCAF3311FEE26F100421532 /* Models */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 9BCAF3371FEE27E400421532 /* Video.swift */, 154 | ); 155 | path = Models; 156 | sourceTree = ""; 157 | }; 158 | 9BCAF3321FEE26F600421532 /* Views */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 9BCAF3351FEE278500421532 /* VideoContentNode.swift */, 162 | 9BCAF3391FEE291D00421532 /* VideoCellNode.swift */, 163 | 9BCAF33D1FEE346D00421532 /* GTVideoNode.swift */, 164 | ); 165 | path = Views; 166 | sourceTree = ""; 167 | }; 168 | C8FDAEDB328E14E37E36C414 /* Pods */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | DEB3AE640175BCAA8E3640AA /* Pods-TextureAVAssetFeed.debug.xcconfig */, 172 | 866AC1DA4177C3EE9FE65AB4 /* Pods-TextureAVAssetFeed.release.xcconfig */, 173 | ); 174 | name = Pods; 175 | sourceTree = ""; 176 | }; 177 | D4022F9A37698E7F37DDBC4D /* Frameworks */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | D3C690D8D82713C5F4B641F7 /* Pods_TextureAVAssetFeed.framework */, 181 | ); 182 | name = Frameworks; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXGroup section */ 186 | 187 | /* Begin PBXNativeTarget section */ 188 | 9B86D78D1FEE2637007ABFD9 /* TextureAVAssetFeed */ = { 189 | isa = PBXNativeTarget; 190 | buildConfigurationList = 9B86D7B61FEE2638007ABFD9 /* Build configuration list for PBXNativeTarget "TextureAVAssetFeed" */; 191 | buildPhases = ( 192 | B022DB1ABE53D6F59ECA0DBE /* [CP] Check Pods Manifest.lock */, 193 | 9B86D78A1FEE2637007ABFD9 /* Sources */, 194 | 9B86D78B1FEE2637007ABFD9 /* Frameworks */, 195 | 9B86D78C1FEE2637007ABFD9 /* Resources */, 196 | 9873871355DFFE8F0D4F6F87 /* [CP] Embed Pods Frameworks */, 197 | 3D38F4B302D3759A0712C8B9 /* [CP] Copy Pods Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | ); 203 | name = TextureAVAssetFeed; 204 | productName = TextureAVAssetFeed; 205 | productReference = 9B86D78E1FEE2637007ABFD9 /* TextureAVAssetFeed.app */; 206 | productType = "com.apple.product-type.application"; 207 | }; 208 | 9B86D7A11FEE2637007ABFD9 /* TextureAVAssetFeedTests */ = { 209 | isa = PBXNativeTarget; 210 | buildConfigurationList = 9B86D7B91FEE2638007ABFD9 /* Build configuration list for PBXNativeTarget "TextureAVAssetFeedTests" */; 211 | buildPhases = ( 212 | 9B86D79E1FEE2637007ABFD9 /* Sources */, 213 | 9B86D79F1FEE2637007ABFD9 /* Frameworks */, 214 | 9B86D7A01FEE2637007ABFD9 /* Resources */, 215 | ); 216 | buildRules = ( 217 | ); 218 | dependencies = ( 219 | 9B86D7A41FEE2637007ABFD9 /* PBXTargetDependency */, 220 | ); 221 | name = TextureAVAssetFeedTests; 222 | productName = TextureAVAssetFeedTests; 223 | productReference = 9B86D7A21FEE2637007ABFD9 /* TextureAVAssetFeedTests.xctest */; 224 | productType = "com.apple.product-type.bundle.unit-test"; 225 | }; 226 | 9B86D7AC1FEE2638007ABFD9 /* TextureAVAssetFeedUITests */ = { 227 | isa = PBXNativeTarget; 228 | buildConfigurationList = 9B86D7BC1FEE2638007ABFD9 /* Build configuration list for PBXNativeTarget "TextureAVAssetFeedUITests" */; 229 | buildPhases = ( 230 | 9B86D7A91FEE2638007ABFD9 /* Sources */, 231 | 9B86D7AA1FEE2638007ABFD9 /* Frameworks */, 232 | 9B86D7AB1FEE2638007ABFD9 /* Resources */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | 9B86D7AF1FEE2638007ABFD9 /* PBXTargetDependency */, 238 | ); 239 | name = TextureAVAssetFeedUITests; 240 | productName = TextureAVAssetFeedUITests; 241 | productReference = 9B86D7AD1FEE2638007ABFD9 /* TextureAVAssetFeedUITests.xctest */; 242 | productType = "com.apple.product-type.bundle.ui-testing"; 243 | }; 244 | /* End PBXNativeTarget section */ 245 | 246 | /* Begin PBXProject section */ 247 | 9B86D7861FEE2637007ABFD9 /* Project object */ = { 248 | isa = PBXProject; 249 | attributes = { 250 | LastSwiftUpdateCheck = 0920; 251 | LastUpgradeCheck = 0920; 252 | ORGANIZATIONNAME = Geektree0101; 253 | TargetAttributes = { 254 | 9B86D78D1FEE2637007ABFD9 = { 255 | CreatedOnToolsVersion = 9.2; 256 | ProvisioningStyle = Automatic; 257 | }; 258 | 9B86D7A11FEE2637007ABFD9 = { 259 | CreatedOnToolsVersion = 9.2; 260 | ProvisioningStyle = Automatic; 261 | TestTargetID = 9B86D78D1FEE2637007ABFD9; 262 | }; 263 | 9B86D7AC1FEE2638007ABFD9 = { 264 | CreatedOnToolsVersion = 9.2; 265 | ProvisioningStyle = Automatic; 266 | TestTargetID = 9B86D78D1FEE2637007ABFD9; 267 | }; 268 | }; 269 | }; 270 | buildConfigurationList = 9B86D7891FEE2637007ABFD9 /* Build configuration list for PBXProject "TextureAVAssetFeed" */; 271 | compatibilityVersion = "Xcode 8.0"; 272 | developmentRegion = en; 273 | hasScannedForEncodings = 0; 274 | knownRegions = ( 275 | en, 276 | Base, 277 | ); 278 | mainGroup = 9B86D7851FEE2637007ABFD9; 279 | productRefGroup = 9B86D78F1FEE2637007ABFD9 /* Products */; 280 | projectDirPath = ""; 281 | projectRoot = ""; 282 | targets = ( 283 | 9B86D78D1FEE2637007ABFD9 /* TextureAVAssetFeed */, 284 | 9B86D7A11FEE2637007ABFD9 /* TextureAVAssetFeedTests */, 285 | 9B86D7AC1FEE2638007ABFD9 /* TextureAVAssetFeedUITests */, 286 | ); 287 | }; 288 | /* End PBXProject section */ 289 | 290 | /* Begin PBXResourcesBuildPhase section */ 291 | 9B86D78C1FEE2637007ABFD9 /* Resources */ = { 292 | isa = PBXResourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | 9BCAF33C1FEE2C9800421532 /* Launch Screen.storyboard in Resources */, 296 | 9B86D7991FEE2637007ABFD9 /* Assets.xcassets in Resources */, 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | }; 300 | 9B86D7A01FEE2637007ABFD9 /* Resources */ = { 301 | isa = PBXResourcesBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | }; 307 | 9B86D7AB1FEE2638007ABFD9 /* Resources */ = { 308 | isa = PBXResourcesBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | runOnlyForDeploymentPostprocessing = 0; 313 | }; 314 | /* End PBXResourcesBuildPhase section */ 315 | 316 | /* Begin PBXShellScriptBuildPhase section */ 317 | 3D38F4B302D3759A0712C8B9 /* [CP] Copy Pods Resources */ = { 318 | isa = PBXShellScriptBuildPhase; 319 | buildActionMask = 2147483647; 320 | files = ( 321 | ); 322 | inputPaths = ( 323 | ); 324 | name = "[CP] Copy Pods Resources"; 325 | outputPaths = ( 326 | ); 327 | runOnlyForDeploymentPostprocessing = 0; 328 | shellPath = /bin/sh; 329 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TextureAVAssetFeed/Pods-TextureAVAssetFeed-resources.sh\"\n"; 330 | showEnvVarsInLog = 0; 331 | }; 332 | 9873871355DFFE8F0D4F6F87 /* [CP] Embed Pods Frameworks */ = { 333 | isa = PBXShellScriptBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | ); 337 | inputPaths = ( 338 | "${SRCROOT}/Pods/Target Support Files/Pods-TextureAVAssetFeed/Pods-TextureAVAssetFeed-frameworks.sh", 339 | "${BUILT_PRODUCTS_DIR}/PINCache/PINCache.framework", 340 | "${BUILT_PRODUCTS_DIR}/PINOperation/PINOperation.framework", 341 | "${BUILT_PRODUCTS_DIR}/PINRemoteImage/PINRemoteImage.framework", 342 | "${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework", 343 | "${BUILT_PRODUCTS_DIR}/Texture/AsyncDisplayKit.framework", 344 | ); 345 | name = "[CP] Embed Pods Frameworks"; 346 | outputPaths = ( 347 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PINCache.framework", 348 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PINOperation.framework", 349 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PINRemoteImage.framework", 350 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SnapKit.framework", 351 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AsyncDisplayKit.framework", 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | shellPath = /bin/sh; 355 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TextureAVAssetFeed/Pods-TextureAVAssetFeed-frameworks.sh\"\n"; 356 | showEnvVarsInLog = 0; 357 | }; 358 | B022DB1ABE53D6F59ECA0DBE /* [CP] Check Pods Manifest.lock */ = { 359 | isa = PBXShellScriptBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | ); 363 | inputPaths = ( 364 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 365 | "${PODS_ROOT}/Manifest.lock", 366 | ); 367 | name = "[CP] Check Pods Manifest.lock"; 368 | outputPaths = ( 369 | "$(DERIVED_FILE_DIR)/Pods-TextureAVAssetFeed-checkManifestLockResult.txt", 370 | ); 371 | runOnlyForDeploymentPostprocessing = 0; 372 | shellPath = /bin/sh; 373 | 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"; 374 | showEnvVarsInLog = 0; 375 | }; 376 | /* End PBXShellScriptBuildPhase section */ 377 | 378 | /* Begin PBXSourcesBuildPhase section */ 379 | 9B86D78A1FEE2637007ABFD9 /* Sources */ = { 380 | isa = PBXSourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | 9BCAF33A1FEE291D00421532 /* VideoCellNode.swift in Sources */, 384 | 9BCAF3361FEE278500421532 /* VideoContentNode.swift in Sources */, 385 | 9BCAF33E1FEE346D00421532 /* GTVideoNode.swift in Sources */, 386 | 9B86D7921FEE2637007ABFD9 /* AppDelegate.swift in Sources */, 387 | 9BCAF3341FEE270100421532 /* VideoFeedViewController.swift in Sources */, 388 | 9BCAF3381FEE27E400421532 /* Video.swift in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | 9B86D79E1FEE2637007ABFD9 /* Sources */ = { 393 | isa = PBXSourcesBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | 9B86D7A71FEE2637007ABFD9 /* TextureAVAssetFeedTests.swift in Sources */, 397 | ); 398 | runOnlyForDeploymentPostprocessing = 0; 399 | }; 400 | 9B86D7A91FEE2638007ABFD9 /* Sources */ = { 401 | isa = PBXSourcesBuildPhase; 402 | buildActionMask = 2147483647; 403 | files = ( 404 | 9B86D7B21FEE2638007ABFD9 /* TextureAVAssetFeedUITests.swift in Sources */, 405 | ); 406 | runOnlyForDeploymentPostprocessing = 0; 407 | }; 408 | /* End PBXSourcesBuildPhase section */ 409 | 410 | /* Begin PBXTargetDependency section */ 411 | 9B86D7A41FEE2637007ABFD9 /* PBXTargetDependency */ = { 412 | isa = PBXTargetDependency; 413 | target = 9B86D78D1FEE2637007ABFD9 /* TextureAVAssetFeed */; 414 | targetProxy = 9B86D7A31FEE2637007ABFD9 /* PBXContainerItemProxy */; 415 | }; 416 | 9B86D7AF1FEE2638007ABFD9 /* PBXTargetDependency */ = { 417 | isa = PBXTargetDependency; 418 | target = 9B86D78D1FEE2637007ABFD9 /* TextureAVAssetFeed */; 419 | targetProxy = 9B86D7AE1FEE2638007ABFD9 /* PBXContainerItemProxy */; 420 | }; 421 | /* End PBXTargetDependency section */ 422 | 423 | /* Begin XCBuildConfiguration section */ 424 | 9B86D7B41FEE2638007ABFD9 /* Debug */ = { 425 | isa = XCBuildConfiguration; 426 | buildSettings = { 427 | ALWAYS_SEARCH_USER_PATHS = NO; 428 | CLANG_ANALYZER_NONNULL = YES; 429 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 431 | CLANG_CXX_LIBRARY = "libc++"; 432 | CLANG_ENABLE_MODULES = YES; 433 | CLANG_ENABLE_OBJC_ARC = YES; 434 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 435 | CLANG_WARN_BOOL_CONVERSION = YES; 436 | CLANG_WARN_COMMA = YES; 437 | CLANG_WARN_CONSTANT_CONVERSION = YES; 438 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 439 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 440 | CLANG_WARN_EMPTY_BODY = YES; 441 | CLANG_WARN_ENUM_CONVERSION = YES; 442 | CLANG_WARN_INFINITE_RECURSION = YES; 443 | CLANG_WARN_INT_CONVERSION = YES; 444 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 445 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 446 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 447 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 448 | CLANG_WARN_STRICT_PROTOTYPES = YES; 449 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 450 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 451 | CLANG_WARN_UNREACHABLE_CODE = YES; 452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 453 | CODE_SIGN_IDENTITY = "iPhone Developer"; 454 | COPY_PHASE_STRIP = NO; 455 | DEBUG_INFORMATION_FORMAT = dwarf; 456 | ENABLE_STRICT_OBJC_MSGSEND = YES; 457 | ENABLE_TESTABILITY = YES; 458 | GCC_C_LANGUAGE_STANDARD = gnu11; 459 | GCC_DYNAMIC_NO_PIC = NO; 460 | GCC_NO_COMMON_BLOCKS = YES; 461 | GCC_OPTIMIZATION_LEVEL = 0; 462 | GCC_PREPROCESSOR_DEFINITIONS = ( 463 | "DEBUG=1", 464 | "$(inherited)", 465 | ); 466 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 467 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 468 | GCC_WARN_UNDECLARED_SELECTOR = YES; 469 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 470 | GCC_WARN_UNUSED_FUNCTION = YES; 471 | GCC_WARN_UNUSED_VARIABLE = YES; 472 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 473 | MTL_ENABLE_DEBUG_INFO = YES; 474 | ONLY_ACTIVE_ARCH = YES; 475 | SDKROOT = iphoneos; 476 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 477 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 478 | }; 479 | name = Debug; 480 | }; 481 | 9B86D7B51FEE2638007ABFD9 /* Release */ = { 482 | isa = XCBuildConfiguration; 483 | buildSettings = { 484 | ALWAYS_SEARCH_USER_PATHS = NO; 485 | CLANG_ANALYZER_NONNULL = YES; 486 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 487 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 488 | CLANG_CXX_LIBRARY = "libc++"; 489 | CLANG_ENABLE_MODULES = YES; 490 | CLANG_ENABLE_OBJC_ARC = YES; 491 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 492 | CLANG_WARN_BOOL_CONVERSION = YES; 493 | CLANG_WARN_COMMA = YES; 494 | CLANG_WARN_CONSTANT_CONVERSION = YES; 495 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 496 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 497 | CLANG_WARN_EMPTY_BODY = YES; 498 | CLANG_WARN_ENUM_CONVERSION = YES; 499 | CLANG_WARN_INFINITE_RECURSION = YES; 500 | CLANG_WARN_INT_CONVERSION = YES; 501 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 502 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 503 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 504 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 505 | CLANG_WARN_STRICT_PROTOTYPES = YES; 506 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 507 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 508 | CLANG_WARN_UNREACHABLE_CODE = YES; 509 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 510 | CODE_SIGN_IDENTITY = "iPhone Developer"; 511 | COPY_PHASE_STRIP = NO; 512 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 513 | ENABLE_NS_ASSERTIONS = NO; 514 | ENABLE_STRICT_OBJC_MSGSEND = YES; 515 | GCC_C_LANGUAGE_STANDARD = gnu11; 516 | GCC_NO_COMMON_BLOCKS = YES; 517 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 518 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 519 | GCC_WARN_UNDECLARED_SELECTOR = YES; 520 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 521 | GCC_WARN_UNUSED_FUNCTION = YES; 522 | GCC_WARN_UNUSED_VARIABLE = YES; 523 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 524 | MTL_ENABLE_DEBUG_INFO = NO; 525 | SDKROOT = iphoneos; 526 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 527 | VALIDATE_PRODUCT = YES; 528 | }; 529 | name = Release; 530 | }; 531 | 9B86D7B71FEE2638007ABFD9 /* Debug */ = { 532 | isa = XCBuildConfiguration; 533 | baseConfigurationReference = DEB3AE640175BCAA8E3640AA /* Pods-TextureAVAssetFeed.debug.xcconfig */; 534 | buildSettings = { 535 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 536 | CODE_SIGN_STYLE = Automatic; 537 | DEVELOPMENT_TEAM = JTEXWEH4CZ; 538 | INFOPLIST_FILE = TextureAVAssetFeed/Info.plist; 539 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 540 | PRODUCT_BUNDLE_IDENTIFIER = Geektree0101.TextureAVAssetFeed; 541 | PRODUCT_NAME = "$(TARGET_NAME)"; 542 | SWIFT_VERSION = 4.0; 543 | TARGETED_DEVICE_FAMILY = 1; 544 | }; 545 | name = Debug; 546 | }; 547 | 9B86D7B81FEE2638007ABFD9 /* Release */ = { 548 | isa = XCBuildConfiguration; 549 | baseConfigurationReference = 866AC1DA4177C3EE9FE65AB4 /* Pods-TextureAVAssetFeed.release.xcconfig */; 550 | buildSettings = { 551 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 552 | CODE_SIGN_STYLE = Automatic; 553 | DEVELOPMENT_TEAM = JTEXWEH4CZ; 554 | INFOPLIST_FILE = TextureAVAssetFeed/Info.plist; 555 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 556 | PRODUCT_BUNDLE_IDENTIFIER = Geektree0101.TextureAVAssetFeed; 557 | PRODUCT_NAME = "$(TARGET_NAME)"; 558 | SWIFT_VERSION = 4.0; 559 | TARGETED_DEVICE_FAMILY = 1; 560 | }; 561 | name = Release; 562 | }; 563 | 9B86D7BA1FEE2638007ABFD9 /* Debug */ = { 564 | isa = XCBuildConfiguration; 565 | buildSettings = { 566 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 567 | BUNDLE_LOADER = "$(TEST_HOST)"; 568 | CODE_SIGN_STYLE = Automatic; 569 | DEVELOPMENT_TEAM = JTEXWEH4CZ; 570 | INFOPLIST_FILE = TextureAVAssetFeedTests/Info.plist; 571 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 572 | PRODUCT_BUNDLE_IDENTIFIER = Geektree0101.TextureAVAssetFeedTests; 573 | PRODUCT_NAME = "$(TARGET_NAME)"; 574 | SWIFT_VERSION = 4.0; 575 | TARGETED_DEVICE_FAMILY = "1,2"; 576 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TextureAVAssetFeed.app/TextureAVAssetFeed"; 577 | }; 578 | name = Debug; 579 | }; 580 | 9B86D7BB1FEE2638007ABFD9 /* Release */ = { 581 | isa = XCBuildConfiguration; 582 | buildSettings = { 583 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 584 | BUNDLE_LOADER = "$(TEST_HOST)"; 585 | CODE_SIGN_STYLE = Automatic; 586 | DEVELOPMENT_TEAM = JTEXWEH4CZ; 587 | INFOPLIST_FILE = TextureAVAssetFeedTests/Info.plist; 588 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 589 | PRODUCT_BUNDLE_IDENTIFIER = Geektree0101.TextureAVAssetFeedTests; 590 | PRODUCT_NAME = "$(TARGET_NAME)"; 591 | SWIFT_VERSION = 4.0; 592 | TARGETED_DEVICE_FAMILY = "1,2"; 593 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TextureAVAssetFeed.app/TextureAVAssetFeed"; 594 | }; 595 | name = Release; 596 | }; 597 | 9B86D7BD1FEE2638007ABFD9 /* Debug */ = { 598 | isa = XCBuildConfiguration; 599 | buildSettings = { 600 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 601 | CODE_SIGN_STYLE = Automatic; 602 | DEVELOPMENT_TEAM = JTEXWEH4CZ; 603 | INFOPLIST_FILE = TextureAVAssetFeedUITests/Info.plist; 604 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 605 | PRODUCT_BUNDLE_IDENTIFIER = Geektree0101.TextureAVAssetFeedUITests; 606 | PRODUCT_NAME = "$(TARGET_NAME)"; 607 | SWIFT_VERSION = 4.0; 608 | TARGETED_DEVICE_FAMILY = "1,2"; 609 | TEST_TARGET_NAME = TextureAVAssetFeed; 610 | }; 611 | name = Debug; 612 | }; 613 | 9B86D7BE1FEE2638007ABFD9 /* Release */ = { 614 | isa = XCBuildConfiguration; 615 | buildSettings = { 616 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 617 | CODE_SIGN_STYLE = Automatic; 618 | DEVELOPMENT_TEAM = JTEXWEH4CZ; 619 | INFOPLIST_FILE = TextureAVAssetFeedUITests/Info.plist; 620 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 621 | PRODUCT_BUNDLE_IDENTIFIER = Geektree0101.TextureAVAssetFeedUITests; 622 | PRODUCT_NAME = "$(TARGET_NAME)"; 623 | SWIFT_VERSION = 4.0; 624 | TARGETED_DEVICE_FAMILY = "1,2"; 625 | TEST_TARGET_NAME = TextureAVAssetFeed; 626 | }; 627 | name = Release; 628 | }; 629 | /* End XCBuildConfiguration section */ 630 | 631 | /* Begin XCConfigurationList section */ 632 | 9B86D7891FEE2637007ABFD9 /* Build configuration list for PBXProject "TextureAVAssetFeed" */ = { 633 | isa = XCConfigurationList; 634 | buildConfigurations = ( 635 | 9B86D7B41FEE2638007ABFD9 /* Debug */, 636 | 9B86D7B51FEE2638007ABFD9 /* Release */, 637 | ); 638 | defaultConfigurationIsVisible = 0; 639 | defaultConfigurationName = Release; 640 | }; 641 | 9B86D7B61FEE2638007ABFD9 /* Build configuration list for PBXNativeTarget "TextureAVAssetFeed" */ = { 642 | isa = XCConfigurationList; 643 | buildConfigurations = ( 644 | 9B86D7B71FEE2638007ABFD9 /* Debug */, 645 | 9B86D7B81FEE2638007ABFD9 /* Release */, 646 | ); 647 | defaultConfigurationIsVisible = 0; 648 | defaultConfigurationName = Release; 649 | }; 650 | 9B86D7B91FEE2638007ABFD9 /* Build configuration list for PBXNativeTarget "TextureAVAssetFeedTests" */ = { 651 | isa = XCConfigurationList; 652 | buildConfigurations = ( 653 | 9B86D7BA1FEE2638007ABFD9 /* Debug */, 654 | 9B86D7BB1FEE2638007ABFD9 /* Release */, 655 | ); 656 | defaultConfigurationIsVisible = 0; 657 | defaultConfigurationName = Release; 658 | }; 659 | 9B86D7BC1FEE2638007ABFD9 /* Build configuration list for PBXNativeTarget "TextureAVAssetFeedUITests" */ = { 660 | isa = XCConfigurationList; 661 | buildConfigurations = ( 662 | 9B86D7BD1FEE2638007ABFD9 /* Debug */, 663 | 9B86D7BE1FEE2638007ABFD9 /* Release */, 664 | ); 665 | defaultConfigurationIsVisible = 0; 666 | defaultConfigurationName = Release; 667 | }; 668 | /* End XCConfigurationList section */ 669 | }; 670 | rootObject = 9B86D7861FEE2637007ABFD9 /* Project object */; 671 | } 672 | -------------------------------------------------------------------------------- /TextureAVAssetFeed.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TextureAVAssetFeed.xcodeproj/project.xcworkspace/xcuserdata/vingle.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekTree0101/TextureAVAssetVideoFeed/173a048a4dbbb170f0fbf861f51265d8d7ee408b/TextureAVAssetFeed.xcodeproj/project.xcworkspace/xcuserdata/vingle.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /TextureAVAssetFeed.xcodeproj/xcuserdata/vingle.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | TextureAVAssetFeed.xcscheme 8 | 9 | orderHint 10 | 6 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /TextureAVAssetFeed.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /TextureAVAssetFeed.xcworkspace/xcuserdata/vingle.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekTree0101/TextureAVAssetVideoFeed/173a048a4dbbb170f0fbf861f51265d8d7ee408b/TextureAVAssetFeed.xcworkspace/xcuserdata/vingle.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /TextureAVAssetFeed/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // TextureAVAssetFeed 4 | // 5 | // Created by Vingle on 2017. 12. 23.. 6 | // Copyright © 2017년 Geektree0101. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 17 | self.window = UIWindow() 18 | self.window?.rootViewController = VideoFeedViewController() 19 | self.window?.makeKeyAndVisible() 20 | return true 21 | } 22 | 23 | func applicationWillResignActive(_ application: UIApplication) { 24 | // 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. 25 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 26 | } 27 | 28 | func applicationDidEnterBackground(_ application: UIApplication) { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | func applicationWillEnterForeground(_ application: UIApplication) { 34 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | func applicationDidBecomeActive(_ application: UIApplication) { 38 | // 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. 39 | } 40 | 41 | func applicationWillTerminate(_ application: UIApplication) { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | 46 | } 47 | 48 | -------------------------------------------------------------------------------- /TextureAVAssetFeed/Assets.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 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /TextureAVAssetFeed/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /TextureAVAssetFeed/Assets.xcassets/icPlay.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icPlay.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /TextureAVAssetFeed/Assets.xcassets/icPlay.imageset/icPlay.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekTree0101/TextureAVAssetVideoFeed/173a048a4dbbb170f0fbf861f51265d8d7ee408b/TextureAVAssetFeed/Assets.xcassets/icPlay.imageset/icPlay.pdf -------------------------------------------------------------------------------- /TextureAVAssetFeed/Controllers/VideoFeedViewController.swift: -------------------------------------------------------------------------------- 1 | //: Playground - noun: a place where people can play 2 | import UIKit 3 | import AsyncDisplayKit 4 | import SnapKit 5 | 6 | class VideoFeedViewController: UIViewController { 7 | 8 | struct Const { 9 | static let numberOfSection: Int = 1 10 | static let itemCount: Int = 100 11 | } 12 | 13 | let tableNode = ASTableNode(style: .plain) 14 | 15 | init() { 16 | super.init(nibName: nil, bundle: nil) 17 | tableNode.backgroundColor = .gray 18 | self.view.addSubnode(tableNode) 19 | tableNode.dataSource = self 20 | tableNode.onDidLoad({ _ in 21 | self.tableNode.view.separatorStyle = .none 22 | self.tableNode.view.snp.makeConstraints({ make in 23 | make.edges.equalToSuperview() 24 | }) 25 | }) 26 | } 27 | 28 | required init?(coder aDecoder: NSCoder) { 29 | fatalError("init(coder:) has not been implemented") 30 | } 31 | 32 | override func viewDidLoad() { 33 | super.viewDidLoad() 34 | self.tableNode.reloadData() 35 | } 36 | } 37 | 38 | extension VideoFeedViewController: ASTableDataSource { 39 | func numberOfSections(in tableNode: ASTableNode) -> Int { 40 | return Const.numberOfSection 41 | } 42 | 43 | func tableNode(_ tableNode: ASTableNode, numberOfRowsInSection section: Int) -> Int { 44 | return Const.itemCount 45 | } 46 | 47 | func tableNode(_ tableNodes: ASTableNode, nodeForRowAt indexPath: IndexPath) -> ASCellNode { 48 | let cell = VideoCellNode() 49 | cell.configure(video: Video()) 50 | return cell 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /TextureAVAssetFeed/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UILaunchStoryboardName 6 | LaunchScreen 7 | CFBundleDevelopmentRegion 8 | $(DEVELOPMENT_LANGUAGE) 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIRequiredDeviceCapabilities 26 | 27 | armv7 28 | 29 | UIRequiresFullScreen 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /TextureAVAssetFeed/Launch Screen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /TextureAVAssetFeed/Models/Video.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | struct Video { 4 | let url: URL 5 | let title: String 6 | let description: String 7 | 8 | init() { 9 | let list: [String] = [ 10 | "http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8", 11 | "https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8", 12 | "http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8", 13 | "https://bitmovin-a.akamaihd.net/content/playhouse-vr/m3u8s/105560.m3u8" 14 | ] 15 | 16 | let random = Int(arc4random_uniform(UInt32(list.count))) 17 | self.url = URL(string: list[random])! 18 | self.title = list[random].split(separator: "/").last?.decomposedStringWithCanonicalMapping ?? "" 19 | self.description = list[random] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /TextureAVAssetFeed/Views/GTVideoNode.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import AsyncDisplayKit 3 | 4 | class GTVideoNode: ASDisplayNode { 5 | fileprivate var state: VideoState? // video state 6 | private let ratio: CGFloat 7 | private let automaticallyPause: Bool // Recommend true 8 | private let videoGravity: AVLayerVideoGravity 9 | private var willCache: Bool = true 10 | private var playControlNode: ASDisplayNode? 11 | 12 | fileprivate lazy var videoNode = { () -> ASVideoNode in 13 | let node = ASVideoNode() 14 | node.shouldAutoplay = false 15 | node.shouldAutorepeat = false 16 | node.muted = true 17 | return node 18 | }() 19 | 20 | enum VideoState { 21 | case readyToPlay(URL) 22 | case play(URL) 23 | case pause(URL) 24 | } 25 | 26 | required init(ratio: CGFloat, 27 | videoGravity: AVLayerVideoGravity, 28 | automaticallyPause: Bool = true, 29 | playControlNode: ASDisplayNode?) { 30 | self.ratio = ratio 31 | self.videoGravity = videoGravity 32 | self.automaticallyPause = automaticallyPause 33 | self.playControlNode = playControlNode 34 | super.init() 35 | self.automaticallyManagesSubnodes = true 36 | } 37 | 38 | override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec { 39 | return ASRatioLayoutSpec(ratio: self.ratio, child: self.videoNode) 40 | } 41 | 42 | func setPlayControlNode(_ node: ASDisplayNode) { 43 | self.playControlNode = node 44 | } 45 | 46 | func setVideoAsset(_ url: URL, isCache: Bool = true) { 47 | self.willCache = isCache 48 | self.state = .readyToPlay(url) 49 | let asset = AVAsset(url: url) 50 | asset.loadValuesAsynchronously(forKeys: ["playable"], completionHandler: { 51 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 3.0, execute: { 52 | asset.cancelLoading() 53 | self.videoNode.asset = asset 54 | }) 55 | }) 56 | } 57 | } 58 | 59 | // MARK - Intelligent Preloading LifeCycle 60 | extension GTVideoNode { 61 | override func didEnterVisibleState() { 62 | super.didEnterVisibleState() 63 | self.playVideo() 64 | } 65 | 66 | override func didExitVisibleState() { 67 | super.didExitVisibleState() 68 | if automaticallyPause { 69 | self.pauseVideo() 70 | } 71 | } 72 | } 73 | 74 | // MARK - Video ControlEvent 75 | extension GTVideoNode { 76 | func replayVideo() { 77 | guard let state = self.state, case .pause(let url) = state else { return } 78 | self.state = .readyToPlay(url) 79 | self.playVideo(forcePlay: true) 80 | } 81 | 82 | func playVideo(forcePlay: Bool = false) { 83 | guard let state = self.state, case .readyToPlay(let url) = state else { return } 84 | self.videoNode.play() 85 | self.videoNode.playerLayer?.videoGravity = self.videoGravity 86 | self.playControlNode?.isHidden = true 87 | self.state = .play(url) 88 | } 89 | 90 | func pauseVideo() { 91 | guard let state = self.state, case .play(let url) = state else { return } 92 | self.videoNode.pause() 93 | self.videoNode.asset?.cancelLoading() 94 | self.playControlNode?.isHidden = false 95 | if !self.willCache { 96 | self.videoNode.asset = nil 97 | } 98 | self.state = .pause(url) 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /TextureAVAssetFeed/Views/VideoCellNode.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import AsyncDisplayKit 3 | import UIKit 4 | 5 | class VideoCellNode: ASCellNode { 6 | lazy var videoNode = VideoContentNode() 7 | 8 | struct Const { 9 | static let insets: UIEdgeInsets = .init(top: 20.0, 10 | left: 15.0, 11 | bottom: 0.0, 12 | right: 15.0) 13 | } 14 | 15 | override init() { 16 | super.init() 17 | self.selectionStyle = .none 18 | self.automaticallyManagesSubnodes = true 19 | } 20 | 21 | func configure(video: Video) { 22 | videoNode.configure(video: video) 23 | } 24 | 25 | override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec { 26 | return ASInsetLayoutSpec(insets: Const.insets, 27 | child: videoNode) 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /TextureAVAssetFeed/Views/VideoContentNode.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import AsyncDisplayKit 3 | 4 | class VideoContentNode: ASDisplayNode { 5 | 6 | var state: VideoState? // video state 7 | 8 | struct Const { 9 | static let videoRatio: CGFloat = 0.5 10 | static let stackSpacing: CGFloat = 2.0 11 | static let insets: UIEdgeInsets = .init(top: 20.0, 12 | left: 15.0, 13 | bottom: 20.0, 14 | right: 15.0) 15 | static let playIconSize: CGSize = .init(width: 60.0, height: 60.0) 16 | 17 | static let forgroundColorKey = NSAttributedStringKey.foregroundColor 18 | static let fontKey = NSAttributedStringKey.font 19 | } 20 | 21 | enum VideoState { 22 | case readyToPlay(URL) 23 | case play(URL) 24 | case pause(URL) 25 | } 26 | 27 | lazy var playButton = { () -> ASButtonNode in 28 | let node = ASButtonNode() 29 | node.setImage(#imageLiteral(resourceName: "icPlay"), for: .normal) 30 | node.contentMode = .scaleAspectFill 31 | node.clipsToBounds = true 32 | node.style.preferredSize = Const.playIconSize 33 | node.addTarget(self, action: #selector(self.replay), forControlEvents: .touchUpInside) 34 | return node 35 | }() 36 | 37 | lazy var videoNode = { () -> GTVideoNode in 38 | let node = GTVideoNode(ratio: 0.5, 39 | videoGravity: .resizeAspectFill, 40 | playControlNode: self.playButton) 41 | node.backgroundColor = UIColor.black.withAlphaComponent(0.05) 42 | return node 43 | }() 44 | 45 | lazy var titleNode = { () -> ASTextNode in 46 | let node = ASTextNode() 47 | node.backgroundColor = .white 48 | node.maximumNumberOfLines = 2 49 | return node 50 | }() 51 | 52 | lazy var decriptionNode = { () -> ASTextNode in 53 | let node = ASTextNode() 54 | node.backgroundColor = .white 55 | node.maximumNumberOfLines = 5 56 | return node 57 | }() 58 | 59 | enum TextStyle { 60 | case title 61 | case description 62 | 63 | var fontStyle: UIFont { 64 | switch self { 65 | case .title: return UIFont.systemFont(ofSize: 14.0, 66 | weight: UIFont.Weight.bold) 67 | case .description: return UIFont.systemFont(ofSize: 10.0, 68 | weight: UIFont.Weight.regular) 69 | } 70 | } 71 | 72 | var fontColor: UIColor { 73 | switch self { 74 | case .title: return UIColor.black 75 | case .description: return UIColor.gray 76 | } 77 | } 78 | 79 | func attributedText(_ text: String) -> NSAttributedString { 80 | let attr = [Const.forgroundColorKey: self.fontColor, 81 | Const.fontKey: self.fontStyle] 82 | return NSAttributedString(string: text, 83 | attributes: attr) 84 | } 85 | } 86 | 87 | override init() { 88 | super.init() 89 | self.backgroundColor = .white 90 | self.automaticallyManagesSubnodes = true 91 | } 92 | 93 | @objc func replay() { 94 | self.videoNode.replayVideo() 95 | } 96 | } 97 | 98 | extension VideoContentNode { 99 | func configure(video: Video) { 100 | self.titleNode.attributedText = TextStyle.title.attributedText(video.title) 101 | self.decriptionNode.attributedText = TextStyle.description.attributedText(video.description) 102 | self.videoNode.setVideoAsset(video.url, isCache: true) 103 | } 104 | } 105 | 106 | // MARK - LayoutSpec 107 | extension VideoContentNode { 108 | func videoRatioLayout() -> ASLayoutSpec { 109 | let videoRatioLayout = ASRatioLayoutSpec(ratio: Const.videoRatio, 110 | child: self.videoNode) 111 | let playButtonCenterLayout = ASCenterLayoutSpec(centeringOptions: .XY, 112 | sizingOptions: [], 113 | child: playButton) 114 | return ASOverlayLayoutSpec(child: videoRatioLayout, 115 | overlay: playButtonCenterLayout) 116 | } 117 | 118 | override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec { 119 | let stackLayoutSpec = ASStackLayoutSpec(direction: .vertical, 120 | spacing: Const.stackSpacing, 121 | justifyContent: .start, 122 | alignItems: .stretch, 123 | children: [videoRatioLayout(), 124 | titleNode, 125 | decriptionNode]) 126 | return ASInsetLayoutSpec(insets: Const.insets, child: stackLayoutSpec) 127 | } 128 | } 129 | -------------------------------------------------------------------------------- /TextureAVAssetFeedTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TextureAVAssetFeedTests/TextureAVAssetFeedTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TextureAVAssetFeedTests.swift 3 | // TextureAVAssetFeedTests 4 | // 5 | // Created by Vingle on 2017. 12. 23.. 6 | // Copyright © 2017년 Geektree0101. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import TextureAVAssetFeed 11 | 12 | class TextureAVAssetFeedTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /TextureAVAssetFeedUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TextureAVAssetFeedUITests/TextureAVAssetFeedUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TextureAVAssetFeedUITests.swift 3 | // TextureAVAssetFeedUITests 4 | // 5 | // Created by Vingle on 2017. 12. 23.. 6 | // Copyright © 2017년 Geektree0101. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class TextureAVAssetFeedUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | --------------------------------------------------------------------------------