From d6ecf614051e655a274878f72491bd9cc483b5d1 Mon Sep 17 00:00:00 2001 From: suzuki_keishi Date: Tue, 30 Aug 2016 15:51:55 +0900 Subject: [PATCH] update example, readme. --- README.md | 47 +- SKPhotoBrowserExample/Podfile | 5 + SKPhotoBrowserExample/Podfile.lock | 12 + .../project.pbxproj | 1698 ++++++++++++----- .../contents.xcworkspacedata | 10 + .../Base.lproj/Main.storyboard | 14 +- .../FromWebViewController.swift | 29 + 7 files changed, 1313 insertions(+), 502 deletions(-) create mode 100644 SKPhotoBrowserExample/Podfile create mode 100644 SKPhotoBrowserExample/Podfile.lock create mode 100644 SKPhotoBrowserExample/SKPhotoBrowserExample.xcworkspace/contents.xcworkspacedata diff --git a/README.md b/README.md index 59ed370..31f208a 100644 --- a/README.md +++ b/README.md @@ -101,10 +101,6 @@ func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath i #### Toolbar You can customize Toolbar via SKPhotoBrowserOptions. -- displayCounterLabel (default is true) -- displayBackAndForwardButton (default is true) -- displayAction (default is true) - ```swift SKPhotoBrowserOptions.displayToolbar = false // all tool bar will be hidden @@ -115,24 +111,29 @@ SKPhotoBrowserOptions.displayDeleteButton = true // delete button wil let browser = SKPhotoBrowser(originImage: originImage, photos: images, animatedFromView: cell) ``` -#### CustomButton Image -Close button is able to change image and frame. -``` swift -browser.displayCustomCloseButton = true // custom close button will be enable -browser.customCloseButtonImage = UIImage(named: "some.png") -browser.customCloseButtonShowFrame = CGRect() -browser.customCloseButtonHideFrame = CGRect() -``` -Delete button is able to change image and frame. -``` swift -browser.displayCustomDeleteButton = true // custom delete button will be enable -browser.customDeleteButtonImage = UIImage(named: "some.png") -browser.customDeleteButtonShowFrame = CGRect() -browser.customDeleteButtonHideFrame = CGRect() +#### Custom Cache From Web URL +You can use SKCacheable protocol if others are adaptable. (SKImageCacheable or SKRequestResponseCacheable) + +```swift +e.g. SDWebImage + +// 1. create custon cache. implement function for protocol +class CustomImageCache: SKImageCacheable { var cache: SDImageCache } + +// 2. replace SKCache instance with custom cache +SKCache.sharedCache.imageCache = CustomImageCache() ``` -#### Delete -You can delete your photo for your own hanlding. +#### CustomButton Image +Close, Delete buttons are able to change image and frame. +``` swift +browser.browser.updateCloseButton(UIImage()) +browser.browser.updateUpdateButton(UIImage()) +``` + +#### Delete Photo +You can delete your photo for your own handling. detect button tap from `removePhoto` delegate function. + #### Photo Captions Photo captions can be displayed simply bottom of PhotoBrowser. by setting the `caption` property on specific photos: @@ -184,9 +185,9 @@ func didDismissAtPageIndex(index: Int) { - single tap handling, dismiss/noaction - bounce animation when appearing/dismissing ``` swift -enableZoomBlackArea = true // default true -enableSingleTapDismiss = true // default false -bounceAnimation = true // default false +SKPhotoBrowserOptions.enableZoomBlackArea = true // default true +SKPhotoBrowserOptions.enableSingleTapDismiss = true // default false +SKPhotoBrowserOptions.bounceAnimation = true // default false ``` ## Photos from diff --git a/SKPhotoBrowserExample/Podfile b/SKPhotoBrowserExample/Podfile new file mode 100644 index 0000000..5269cee --- /dev/null +++ b/SKPhotoBrowserExample/Podfile @@ -0,0 +1,5 @@ +platform :ios, '8.0' +use_frameworks! + +pod 'SDWebImage', '~>3.8' + diff --git a/SKPhotoBrowserExample/Podfile.lock b/SKPhotoBrowserExample/Podfile.lock new file mode 100644 index 0000000..1fed5e4 --- /dev/null +++ b/SKPhotoBrowserExample/Podfile.lock @@ -0,0 +1,12 @@ +PODS: + - SDWebImage (3.8.1): + - SDWebImage/Core (= 3.8.1) + - SDWebImage/Core (3.8.1) + +DEPENDENCIES: + - SDWebImage (~> 3.8) + +SPEC CHECKSUMS: + SDWebImage: 35f9627a3e44b4f292a8a8ce6a531fa488239b91 + +COCOAPODS: 0.39.0 diff --git a/SKPhotoBrowserExample/SKPhotoBrowserExample.xcodeproj/project.pbxproj b/SKPhotoBrowserExample/SKPhotoBrowserExample.xcodeproj/project.pbxproj index fe09679..399c9ec 100644 --- a/SKPhotoBrowserExample/SKPhotoBrowserExample.xcodeproj/project.pbxproj +++ b/SKPhotoBrowserExample/SKPhotoBrowserExample.xcodeproj/project.pbxproj @@ -1,478 +1,1220 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 212705891C92C69C00466223 /* FromCameraRollViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 212705881C92C69C00466223 /* FromCameraRollViewController.swift */; }; - 8909B55B1BC792150060A053 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8909B55A1BC792150060A053 /* AppDelegate.swift */; }; - 8909B55D1BC792150060A053 /* FromLocalViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8909B55C1BC792150060A053 /* FromLocalViewController.swift */; }; - 8909B5601BC792150060A053 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8909B55E1BC792150060A053 /* Main.storyboard */; }; - 8909B5621BC792150060A053 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5611BC792150060A053 /* Assets.xcassets */; }; - 8909B5651BC792150060A053 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5631BC792150060A053 /* LaunchScreen.storyboard */; }; - 8909B5811BC792DC0060A053 /* image0.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5751BC792DC0060A053 /* image0.jpg */; }; - 8909B5821BC792DC0060A053 /* image1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5761BC792DC0060A053 /* image1.jpg */; }; - 8909B5831BC792DC0060A053 /* image10.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5771BC792DC0060A053 /* image10.jpg */; }; - 8909B5841BC792DC0060A053 /* image12.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5781BC792DC0060A053 /* image12.jpg */; }; - 8909B5851BC792DC0060A053 /* image2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5791BC792DC0060A053 /* image2.jpg */; }; - 8909B5861BC792DC0060A053 /* image3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B57A1BC792DC0060A053 /* image3.jpg */; }; - 8909B5871BC792DC0060A053 /* image4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B57B1BC792DC0060A053 /* image4.jpg */; }; - 8909B5881BC792DC0060A053 /* image5.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B57C1BC792DC0060A053 /* image5.jpg */; }; - 8909B5891BC792DC0060A053 /* image6.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B57D1BC792DC0060A053 /* image6.jpg */; }; - 8909B58A1BC792DC0060A053 /* image7.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B57E1BC792DC0060A053 /* image7.jpg */; }; - 8909B58B1BC792DC0060A053 /* image8.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B57F1BC792DC0060A053 /* image8.jpg */; }; - 8909B58C1BC792DC0060A053 /* image9.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8909B5801BC792DC0060A053 /* image9.jpg */; }; - 89FC5DBB1D54A04900F1BE52 /* FromWebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89FC5DBA1D54A04900F1BE52 /* FromWebViewController.swift */; }; - A6A7B7801C9578E30025AC07 /* SKPhotoBrowser.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8909B5711BC792570060A053 /* SKPhotoBrowser.framework */; }; - A6A7B7811C9578E30025AC07 /* SKPhotoBrowser.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8909B5711BC792570060A053 /* SKPhotoBrowser.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 8909B5701BC792570060A053 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 8909B56C1BC792570060A053 /* SKPhotoBrowser.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 8909B5301BC791280060A053; - remoteInfo = SKPhotoBrowser; - }; - 89FC5DBD1D54A04A00F1BE52 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 8909B56C1BC792570060A053 /* SKPhotoBrowser.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A64B89331CB04222000071B9; - remoteInfo = SKPhotoBrowserTests; - }; - A6A7B7821C9578E30025AC07 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 8909B56C1BC792570060A053 /* SKPhotoBrowser.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 8909B52F1BC791280060A053; - remoteInfo = SKPhotoBrowser; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - A6A7B7841C9578E30025AC07 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - A6A7B7811C9578E30025AC07 /* SKPhotoBrowser.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 212705881C92C69C00466223 /* FromCameraRollViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FromCameraRollViewController.swift; sourceTree = ""; }; - 8909B5571BC792150060A053 /* SKPhotoBrowserExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SKPhotoBrowserExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 8909B55A1BC792150060A053 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 8909B55C1BC792150060A053 /* FromLocalViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FromLocalViewController.swift; sourceTree = ""; }; - 8909B55F1BC792150060A053 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 8909B5611BC792150060A053 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 8909B5641BC792150060A053 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 8909B5661BC792150060A053 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 8909B56C1BC792570060A053 /* SKPhotoBrowser.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SKPhotoBrowser.xcodeproj; path = ../SKPhotoBrowser.xcodeproj; sourceTree = ""; }; - 8909B5751BC792DC0060A053 /* image0.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image0.jpg; sourceTree = ""; }; - 8909B5761BC792DC0060A053 /* image1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image1.jpg; sourceTree = ""; }; - 8909B5771BC792DC0060A053 /* image10.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image10.jpg; sourceTree = ""; }; - 8909B5781BC792DC0060A053 /* image12.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image12.jpg; sourceTree = ""; }; - 8909B5791BC792DC0060A053 /* image2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image2.jpg; sourceTree = ""; }; - 8909B57A1BC792DC0060A053 /* image3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image3.jpg; sourceTree = ""; }; - 8909B57B1BC792DC0060A053 /* image4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image4.jpg; sourceTree = ""; }; - 8909B57C1BC792DC0060A053 /* image5.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image5.jpg; sourceTree = ""; }; - 8909B57D1BC792DC0060A053 /* image6.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image6.jpg; sourceTree = ""; }; - 8909B57E1BC792DC0060A053 /* image7.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image7.jpg; sourceTree = ""; }; - 8909B57F1BC792DC0060A053 /* image8.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image8.jpg; sourceTree = ""; }; - 8909B5801BC792DC0060A053 /* image9.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image9.jpg; sourceTree = ""; }; - 89FC5DBA1D54A04900F1BE52 /* FromWebViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FromWebViewController.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 8909B5541BC792150060A053 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - A6A7B7801C9578E30025AC07 /* SKPhotoBrowser.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 8909B54E1BC792150060A053 = { - isa = PBXGroup; - children = ( - 8909B56C1BC792570060A053 /* SKPhotoBrowser.xcodeproj */, - 8909B5591BC792150060A053 /* SKPhotoBrowserExample */, - 8909B5581BC792150060A053 /* Products */, - ); - sourceTree = ""; - }; - 8909B5581BC792150060A053 /* Products */ = { - isa = PBXGroup; - children = ( - 8909B5571BC792150060A053 /* SKPhotoBrowserExample.app */, - ); - name = Products; - sourceTree = ""; - }; - 8909B5591BC792150060A053 /* SKPhotoBrowserExample */ = { - isa = PBXGroup; - children = ( - 8909B55A1BC792150060A053 /* AppDelegate.swift */, - A6EBAD761CAFB87A00F80595 /* Controllers */, - A6EBAD771CAFB89300F80595 /* UI */, - A6EBAD781CAFB8A500F80595 /* Resource */, - A6EBAD791CAFB96C00F80595 /* Info */, - ); - path = SKPhotoBrowserExample; - sourceTree = ""; - }; - 8909B56D1BC792570060A053 /* Products */ = { - isa = PBXGroup; - children = ( - 8909B5711BC792570060A053 /* SKPhotoBrowser.framework */, - 89FC5DBE1D54A04A00F1BE52 /* SKPhotoBrowserTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 8909B5741BC792DC0060A053 /* SampleImages */ = { - isa = PBXGroup; - children = ( - 8909B5751BC792DC0060A053 /* image0.jpg */, - 8909B5761BC792DC0060A053 /* image1.jpg */, - 8909B5771BC792DC0060A053 /* image10.jpg */, - 8909B5781BC792DC0060A053 /* image12.jpg */, - 8909B5791BC792DC0060A053 /* image2.jpg */, - 8909B57A1BC792DC0060A053 /* image3.jpg */, - 8909B57B1BC792DC0060A053 /* image4.jpg */, - 8909B57C1BC792DC0060A053 /* image5.jpg */, - 8909B57D1BC792DC0060A053 /* image6.jpg */, - 8909B57E1BC792DC0060A053 /* image7.jpg */, - 8909B57F1BC792DC0060A053 /* image8.jpg */, - 8909B5801BC792DC0060A053 /* image9.jpg */, - ); - path = SampleImages; - sourceTree = ""; - }; - A6EBAD761CAFB87A00F80595 /* Controllers */ = { - isa = PBXGroup; - children = ( - 8909B55C1BC792150060A053 /* FromLocalViewController.swift */, - 212705881C92C69C00466223 /* FromCameraRollViewController.swift */, - 89FC5DBA1D54A04900F1BE52 /* FromWebViewController.swift */, - ); - name = Controllers; - sourceTree = ""; - }; - A6EBAD771CAFB89300F80595 /* UI */ = { - isa = PBXGroup; - children = ( - 8909B55E1BC792150060A053 /* Main.storyboard */, - 8909B5631BC792150060A053 /* LaunchScreen.storyboard */, - ); - name = UI; - sourceTree = ""; - }; - A6EBAD781CAFB8A500F80595 /* Resource */ = { - isa = PBXGroup; - children = ( - 8909B5741BC792DC0060A053 /* SampleImages */, - 8909B5611BC792150060A053 /* Assets.xcassets */, - ); - name = Resource; - sourceTree = ""; - }; - A6EBAD791CAFB96C00F80595 /* Info */ = { - isa = PBXGroup; - children = ( - 8909B5661BC792150060A053 /* Info.plist */, - ); - name = Info; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 8909B5561BC792150060A053 /* SKPhotoBrowserExample */ = { - isa = PBXNativeTarget; - buildConfigurationList = 8909B5691BC792150060A053 /* Build configuration list for PBXNativeTarget "SKPhotoBrowserExample" */; - buildPhases = ( - 8909B5531BC792150060A053 /* Sources */, - 8909B5541BC792150060A053 /* Frameworks */, - 8909B5551BC792150060A053 /* Resources */, - A6A7B7841C9578E30025AC07 /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - A6A7B7831C9578E30025AC07 /* PBXTargetDependency */, - ); - name = SKPhotoBrowserExample; - productName = SKPhotoBrowserExample; - productReference = 8909B5571BC792150060A053 /* SKPhotoBrowserExample.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 8909B54F1BC792150060A053 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0700; - ORGANIZATIONNAME = suzuki_keishi; - TargetAttributes = { - 8909B5561BC792150060A053 = { - CreatedOnToolsVersion = 7.0; - }; - }; - }; - buildConfigurationList = 8909B5521BC792150060A053 /* Build configuration list for PBXProject "SKPhotoBrowserExample" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 8909B54E1BC792150060A053; - productRefGroup = 8909B5581BC792150060A053 /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 8909B56D1BC792570060A053 /* Products */; - ProjectRef = 8909B56C1BC792570060A053 /* SKPhotoBrowser.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - 8909B5561BC792150060A053 /* SKPhotoBrowserExample */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 8909B5711BC792570060A053 /* SKPhotoBrowser.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = SKPhotoBrowser.framework; - remoteRef = 8909B5701BC792570060A053 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 89FC5DBE1D54A04A00F1BE52 /* SKPhotoBrowserTests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = SKPhotoBrowserTests.xctest; - remoteRef = 89FC5DBD1D54A04A00F1BE52 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 8909B5551BC792150060A053 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8909B58B1BC792DC0060A053 /* image8.jpg in Resources */, - 8909B5861BC792DC0060A053 /* image3.jpg in Resources */, - 8909B5811BC792DC0060A053 /* image0.jpg in Resources */, - 8909B58A1BC792DC0060A053 /* image7.jpg in Resources */, - 8909B5821BC792DC0060A053 /* image1.jpg in Resources */, - 8909B5831BC792DC0060A053 /* image10.jpg in Resources */, - 8909B58C1BC792DC0060A053 /* image9.jpg in Resources */, - 8909B5651BC792150060A053 /* LaunchScreen.storyboard in Resources */, - 8909B5621BC792150060A053 /* Assets.xcassets in Resources */, - 8909B5891BC792DC0060A053 /* image6.jpg in Resources */, - 8909B5871BC792DC0060A053 /* image4.jpg in Resources */, - 8909B5881BC792DC0060A053 /* image5.jpg in Resources */, - 8909B5841BC792DC0060A053 /* image12.jpg in Resources */, - 8909B5851BC792DC0060A053 /* image2.jpg in Resources */, - 8909B5601BC792150060A053 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 8909B5531BC792150060A053 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 212705891C92C69C00466223 /* FromCameraRollViewController.swift in Sources */, - 8909B55D1BC792150060A053 /* FromLocalViewController.swift in Sources */, - 8909B55B1BC792150060A053 /* AppDelegate.swift in Sources */, - 89FC5DBB1D54A04900F1BE52 /* FromWebViewController.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - A6A7B7831C9578E30025AC07 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = SKPhotoBrowser; - targetProxy = A6A7B7821C9578E30025AC07 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 8909B55E1BC792150060A053 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 8909B55F1BC792150060A053 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 8909B5631BC792150060A053 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 8909B5641BC792150060A053 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 8909B5671BC792150060A053 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 8909B5681BC792150060A053 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 8909B56A1BC792150060A053 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; - INFOPLIST_FILE = SKPhotoBrowserExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.keishi.suzuki.aSKPhotoBrowserExample; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 8909B56B1BC792150060A053 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; - INFOPLIST_FILE = SKPhotoBrowserExample/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.keishi.suzuki.aSKPhotoBrowserExample; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 8909B5521BC792150060A053 /* Build configuration list for PBXProject "SKPhotoBrowserExample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8909B5671BC792150060A053 /* Debug */, - 8909B5681BC792150060A053 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 8909B5691BC792150060A053 /* Build configuration list for PBXNativeTarget "SKPhotoBrowserExample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8909B56A1BC792150060A053 /* Debug */, - 8909B56B1BC792150060A053 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 8909B54F1BC792150060A053 /* Project object */; -} + + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 212705881C92C69C00466223 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + FromCameraRollViewController.swift + sourceTree + <group> + + 212705891C92C69C00466223 + + fileRef + 212705881C92C69C00466223 + isa + PBXBuildFile + + 2ECF43C4E99CDE3D98AE6842 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Copy Pods Resources + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh" + + showEnvVarsInLog + 0 + + 575DBD5855AB711E5773767A + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Embed Pods Frameworks + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh" + + showEnvVarsInLog + 0 + + 7C2188E912BB106233AA4AB2 + + explicitFileType + wrapper.framework + includeInIndex + 0 + isa + PBXFileReference + path + Pods.framework + sourceTree + BUILT_PRODUCTS_DIR + + 8909B54E1BC792150060A053 + + children + + 8909B56C1BC792570060A053 + 8909B5591BC792150060A053 + 8909B5581BC792150060A053 + D1D8ECD45B290372235B8168 + C646D2C27A5B9CCC003A9BD1 + + isa + PBXGroup + sourceTree + <group> + + 8909B54F1BC792150060A053 + + attributes + + LastUpgradeCheck + 0700 + ORGANIZATIONNAME + suzuki_keishi + TargetAttributes + + 8909B5561BC792150060A053 + + CreatedOnToolsVersion + 7.0 + + + + buildConfigurationList + 8909B5521BC792150060A053 + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + en + Base + + mainGroup + 8909B54E1BC792150060A053 + productRefGroup + 8909B5581BC792150060A053 + projectDirPath + + projectReferences + + + ProductGroup + 8909B56D1BC792570060A053 + ProjectRef + 8909B56C1BC792570060A053 + + + projectRoot + + targets + + 8909B5561BC792150060A053 + + + 8909B5521BC792150060A053 + + buildConfigurations + + 8909B5671BC792150060A053 + 8909B5681BC792150060A053 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 8909B5531BC792150060A053 + + buildActionMask + 2147483647 + files + + 212705891C92C69C00466223 + 8909B55D1BC792150060A053 + 8909B55B1BC792150060A053 + 89FC5DBB1D54A04900F1BE52 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 8909B5541BC792150060A053 + + buildActionMask + 2147483647 + files + + A6A7B7801C9578E30025AC07 + DDFD24AF2FBA5A60984D378D + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 8909B5551BC792150060A053 + + buildActionMask + 2147483647 + files + + 8909B58B1BC792DC0060A053 + 8909B5861BC792DC0060A053 + 8909B5811BC792DC0060A053 + 8909B58A1BC792DC0060A053 + 8909B5821BC792DC0060A053 + 8909B5831BC792DC0060A053 + 8909B58C1BC792DC0060A053 + 8909B5651BC792150060A053 + 8909B5621BC792150060A053 + 8909B5891BC792DC0060A053 + 8909B5871BC792DC0060A053 + 8909B5881BC792DC0060A053 + 8909B5841BC792DC0060A053 + 8909B5851BC792DC0060A053 + 8909B5601BC792150060A053 + + isa + PBXResourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 8909B5561BC792150060A053 + + buildConfigurationList + 8909B5691BC792150060A053 + buildPhases + + F19A62C34B2F0CFF753F30C3 + 8909B5531BC792150060A053 + 8909B5541BC792150060A053 + 8909B5551BC792150060A053 + A6A7B7841C9578E30025AC07 + 575DBD5855AB711E5773767A + 2ECF43C4E99CDE3D98AE6842 + + buildRules + + dependencies + + A6A7B7831C9578E30025AC07 + + isa + PBXNativeTarget + name + SKPhotoBrowserExample + productName + SKPhotoBrowserExample + productReference + 8909B5571BC792150060A053 + productType + com.apple.product-type.application + + 8909B5571BC792150060A053 + + explicitFileType + wrapper.application + includeInIndex + 0 + isa + PBXFileReference + path + SKPhotoBrowserExample.app + sourceTree + BUILT_PRODUCTS_DIR + + 8909B5581BC792150060A053 + + children + + 8909B5571BC792150060A053 + + isa + PBXGroup + name + Products + sourceTree + <group> + + 8909B5591BC792150060A053 + + children + + 8909B55A1BC792150060A053 + A6EBAD761CAFB87A00F80595 + A6EBAD771CAFB89300F80595 + A6EBAD781CAFB8A500F80595 + A6EBAD791CAFB96C00F80595 + + isa + PBXGroup + path + SKPhotoBrowserExample + sourceTree + <group> + + 8909B55A1BC792150060A053 + + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + AppDelegate.swift + sourceTree + <group> + + 8909B55B1BC792150060A053 + + fileRef + 8909B55A1BC792150060A053 + isa + PBXBuildFile + + 8909B55C1BC792150060A053 + + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + FromLocalViewController.swift + sourceTree + <group> + + 8909B55D1BC792150060A053 + + fileRef + 8909B55C1BC792150060A053 + isa + PBXBuildFile + + 8909B55E1BC792150060A053 + + children + + 8909B55F1BC792150060A053 + + isa + PBXVariantGroup + name + Main.storyboard + sourceTree + <group> + + 8909B55F1BC792150060A053 + + isa + PBXFileReference + lastKnownFileType + file.storyboard + name + Base + path + Base.lproj/Main.storyboard + sourceTree + <group> + + 8909B5601BC792150060A053 + + fileRef + 8909B55E1BC792150060A053 + isa + PBXBuildFile + + 8909B5611BC792150060A053 + + isa + PBXFileReference + lastKnownFileType + folder.assetcatalog + path + Assets.xcassets + sourceTree + <group> + + 8909B5621BC792150060A053 + + fileRef + 8909B5611BC792150060A053 + isa + PBXBuildFile + + 8909B5631BC792150060A053 + + children + + 8909B5641BC792150060A053 + + isa + PBXVariantGroup + name + LaunchScreen.storyboard + sourceTree + <group> + + 8909B5641BC792150060A053 + + isa + PBXFileReference + lastKnownFileType + file.storyboard + name + Base + path + Base.lproj/LaunchScreen.storyboard + sourceTree + <group> + + 8909B5651BC792150060A053 + + fileRef + 8909B5631BC792150060A053 + isa + PBXBuildFile + + 8909B5661BC792150060A053 + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + Info.plist + sourceTree + <group> + + 8909B5671BC792150060A053 + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES_ERROR + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES_ERROR + CLANG_WARN_UNREACHABLE_CODE + YES + CLANG_WARN__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + NO + DEBUG_INFORMATION_FORMAT + dwarf + ENABLE_STRICT_OBJC_MSGSEND + YES + ENABLE_TESTABILITY + YES + GCC_C_LANGUAGE_STANDARD + gnu99 + GCC_DYNAMIC_NO_PIC + NO + GCC_NO_COMMON_BLOCKS + YES + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_WARN_64_TO_32_BIT_CONVERSION + YES + GCC_WARN_ABOUT_RETURN_TYPE + YES_ERROR + GCC_WARN_UNDECLARED_SELECTOR + YES + GCC_WARN_UNINITIALIZED_AUTOS + YES_AGGRESSIVE + GCC_WARN_UNUSED_FUNCTION + YES + GCC_WARN_UNUSED_VARIABLE + YES + IPHONEOS_DEPLOYMENT_TARGET + 9.0 + MTL_ENABLE_DEBUG_INFO + YES + ONLY_ACTIVE_ARCH + YES + SDKROOT + iphoneos + SWIFT_OPTIMIZATION_LEVEL + -Onone + TARGETED_DEVICE_FAMILY + 1,2 + + isa + XCBuildConfiguration + name + Debug + + 8909B5681BC792150060A053 + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES_ERROR + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES_ERROR + CLANG_WARN_UNREACHABLE_CODE + YES + CLANG_WARN__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + NO + DEBUG_INFORMATION_FORMAT + dwarf-with-dsym + ENABLE_NS_ASSERTIONS + NO + ENABLE_STRICT_OBJC_MSGSEND + YES + GCC_C_LANGUAGE_STANDARD + gnu99 + GCC_NO_COMMON_BLOCKS + YES + GCC_WARN_64_TO_32_BIT_CONVERSION + YES + GCC_WARN_ABOUT_RETURN_TYPE + YES_ERROR + GCC_WARN_UNDECLARED_SELECTOR + YES + GCC_WARN_UNINITIALIZED_AUTOS + YES_AGGRESSIVE + GCC_WARN_UNUSED_FUNCTION + YES + GCC_WARN_UNUSED_VARIABLE + YES + IPHONEOS_DEPLOYMENT_TARGET + 9.0 + MTL_ENABLE_DEBUG_INFO + NO + SDKROOT + iphoneos + TARGETED_DEVICE_FAMILY + 1,2 + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 8909B5691BC792150060A053 + + buildConfigurations + + 8909B56A1BC792150060A053 + 8909B56B1BC792150060A053 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 8909B56A1BC792150060A053 + + baseConfigurationReference + B3E081D4F2C8623852C459F5 + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + CODE_SIGN_IDENTITY + iPhone Developer + EMBEDDED_CONTENT_CONTAINS_SWIFT + YES + INFOPLIST_FILE + SKPhotoBrowserExample/Info.plist + LD_RUNPATH_SEARCH_PATHS + $(inherited) @executable_path/Frameworks + PRODUCT_BUNDLE_IDENTIFIER + com.keishi.suzuki.aSKPhotoBrowserExample + PRODUCT_NAME + $(TARGET_NAME) + + isa + XCBuildConfiguration + name + Debug + + 8909B56B1BC792150060A053 + + baseConfigurationReference + DD077DBD0C164C96BCC7494F + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + CODE_SIGN_IDENTITY + iPhone Developer + EMBEDDED_CONTENT_CONTAINS_SWIFT + YES + INFOPLIST_FILE + SKPhotoBrowserExample/Info.plist + LD_RUNPATH_SEARCH_PATHS + $(inherited) @executable_path/Frameworks + PRODUCT_BUNDLE_IDENTIFIER + com.keishi.suzuki.aSKPhotoBrowserExample + PRODUCT_NAME + $(TARGET_NAME) + + isa + XCBuildConfiguration + name + Release + + 8909B56C1BC792570060A053 + + isa + PBXFileReference + lastKnownFileType + wrapper.pb-project + name + SKPhotoBrowser.xcodeproj + path + ../SKPhotoBrowser.xcodeproj + sourceTree + <group> + + 8909B56D1BC792570060A053 + + children + + 8909B5711BC792570060A053 + 89FC5DBE1D54A04A00F1BE52 + + isa + PBXGroup + name + Products + sourceTree + <group> + + 8909B5701BC792570060A053 + + containerPortal + 8909B56C1BC792570060A053 + isa + PBXContainerItemProxy + proxyType + 2 + remoteGlobalIDString + 8909B5301BC791280060A053 + remoteInfo + SKPhotoBrowser + + 8909B5711BC792570060A053 + + fileType + wrapper.framework + isa + PBXReferenceProxy + path + SKPhotoBrowser.framework + remoteRef + 8909B5701BC792570060A053 + sourceTree + BUILT_PRODUCTS_DIR + + 8909B5741BC792DC0060A053 + + children + + 8909B5751BC792DC0060A053 + 8909B5761BC792DC0060A053 + 8909B5771BC792DC0060A053 + 8909B5781BC792DC0060A053 + 8909B5791BC792DC0060A053 + 8909B57A1BC792DC0060A053 + 8909B57B1BC792DC0060A053 + 8909B57C1BC792DC0060A053 + 8909B57D1BC792DC0060A053 + 8909B57E1BC792DC0060A053 + 8909B57F1BC792DC0060A053 + 8909B5801BC792DC0060A053 + + isa + PBXGroup + path + SampleImages + sourceTree + <group> + + 8909B5751BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image0.jpg + sourceTree + <group> + + 8909B5761BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image1.jpg + sourceTree + <group> + + 8909B5771BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image10.jpg + sourceTree + <group> + + 8909B5781BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image12.jpg + sourceTree + <group> + + 8909B5791BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image2.jpg + sourceTree + <group> + + 8909B57A1BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image3.jpg + sourceTree + <group> + + 8909B57B1BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image4.jpg + sourceTree + <group> + + 8909B57C1BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image5.jpg + sourceTree + <group> + + 8909B57D1BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image6.jpg + sourceTree + <group> + + 8909B57E1BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image7.jpg + sourceTree + <group> + + 8909B57F1BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image8.jpg + sourceTree + <group> + + 8909B5801BC792DC0060A053 + + isa + PBXFileReference + lastKnownFileType + image.jpeg + path + image9.jpg + sourceTree + <group> + + 8909B5811BC792DC0060A053 + + fileRef + 8909B5751BC792DC0060A053 + isa + PBXBuildFile + + 8909B5821BC792DC0060A053 + + fileRef + 8909B5761BC792DC0060A053 + isa + PBXBuildFile + + 8909B5831BC792DC0060A053 + + fileRef + 8909B5771BC792DC0060A053 + isa + PBXBuildFile + + 8909B5841BC792DC0060A053 + + fileRef + 8909B5781BC792DC0060A053 + isa + PBXBuildFile + + 8909B5851BC792DC0060A053 + + fileRef + 8909B5791BC792DC0060A053 + isa + PBXBuildFile + + 8909B5861BC792DC0060A053 + + fileRef + 8909B57A1BC792DC0060A053 + isa + PBXBuildFile + + 8909B5871BC792DC0060A053 + + fileRef + 8909B57B1BC792DC0060A053 + isa + PBXBuildFile + + 8909B5881BC792DC0060A053 + + fileRef + 8909B57C1BC792DC0060A053 + isa + PBXBuildFile + + 8909B5891BC792DC0060A053 + + fileRef + 8909B57D1BC792DC0060A053 + isa + PBXBuildFile + + 8909B58A1BC792DC0060A053 + + fileRef + 8909B57E1BC792DC0060A053 + isa + PBXBuildFile + + 8909B58B1BC792DC0060A053 + + fileRef + 8909B57F1BC792DC0060A053 + isa + PBXBuildFile + + 8909B58C1BC792DC0060A053 + + fileRef + 8909B5801BC792DC0060A053 + isa + PBXBuildFile + + 89FC5DBA1D54A04900F1BE52 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + FromWebViewController.swift + sourceTree + <group> + + 89FC5DBB1D54A04900F1BE52 + + fileRef + 89FC5DBA1D54A04900F1BE52 + isa + PBXBuildFile + + 89FC5DBD1D54A04A00F1BE52 + + containerPortal + 8909B56C1BC792570060A053 + isa + PBXContainerItemProxy + proxyType + 2 + remoteGlobalIDString + A64B89331CB04222000071B9 + remoteInfo + SKPhotoBrowserTests + + 89FC5DBE1D54A04A00F1BE52 + + fileType + wrapper.cfbundle + isa + PBXReferenceProxy + path + SKPhotoBrowserTests.xctest + remoteRef + 89FC5DBD1D54A04A00F1BE52 + sourceTree + BUILT_PRODUCTS_DIR + + A6A7B7801C9578E30025AC07 + + fileRef + 8909B5711BC792570060A053 + isa + PBXBuildFile + + A6A7B7811C9578E30025AC07 + + fileRef + 8909B5711BC792570060A053 + isa + PBXBuildFile + settings + + ATTRIBUTES + + CodeSignOnCopy + RemoveHeadersOnCopy + + + + A6A7B7821C9578E30025AC07 + + containerPortal + 8909B56C1BC792570060A053 + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + 8909B52F1BC791280060A053 + remoteInfo + SKPhotoBrowser + + A6A7B7831C9578E30025AC07 + + isa + PBXTargetDependency + name + SKPhotoBrowser + targetProxy + A6A7B7821C9578E30025AC07 + + A6A7B7841C9578E30025AC07 + + buildActionMask + 2147483647 + dstPath + + dstSubfolderSpec + 10 + files + + A6A7B7811C9578E30025AC07 + + isa + PBXCopyFilesBuildPhase + name + Embed Frameworks + runOnlyForDeploymentPostprocessing + 0 + + A6EBAD761CAFB87A00F80595 + + children + + 8909B55C1BC792150060A053 + 212705881C92C69C00466223 + 89FC5DBA1D54A04900F1BE52 + + isa + PBXGroup + name + Controllers + sourceTree + <group> + + A6EBAD771CAFB89300F80595 + + children + + 8909B55E1BC792150060A053 + 8909B5631BC792150060A053 + + isa + PBXGroup + name + UI + sourceTree + <group> + + A6EBAD781CAFB8A500F80595 + + children + + 8909B5741BC792DC0060A053 + 8909B5611BC792150060A053 + + isa + PBXGroup + name + Resource + sourceTree + <group> + + A6EBAD791CAFB96C00F80595 + + children + + 8909B5661BC792150060A053 + + isa + PBXGroup + name + Info + sourceTree + <group> + + B3E081D4F2C8623852C459F5 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods.debug.xcconfig + path + Pods/Target Support Files/Pods/Pods.debug.xcconfig + sourceTree + <group> + + C646D2C27A5B9CCC003A9BD1 + + children + + 7C2188E912BB106233AA4AB2 + + isa + PBXGroup + name + Frameworks + sourceTree + <group> + + D1D8ECD45B290372235B8168 + + children + + B3E081D4F2C8623852C459F5 + DD077DBD0C164C96BCC7494F + + isa + PBXGroup + name + Pods + sourceTree + <group> + + DD077DBD0C164C96BCC7494F + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods.release.xcconfig + path + Pods/Target Support Files/Pods/Pods.release.xcconfig + sourceTree + <group> + + DDFD24AF2FBA5A60984D378D + + fileRef + 7C2188E912BB106233AA4AB2 + isa + PBXBuildFile + + F19A62C34B2F0CFF753F30C3 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Check Pods Manifest.lock + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null +if [[ $? != 0 ]] ; then + cat << EOM +error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. +EOM + exit 1 +fi + + showEnvVarsInLog + 0 + + + rootObject + 8909B54F1BC792150060A053 + + diff --git a/SKPhotoBrowserExample/SKPhotoBrowserExample.xcworkspace/contents.xcworkspacedata b/SKPhotoBrowserExample/SKPhotoBrowserExample.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..6599573 --- /dev/null +++ b/SKPhotoBrowserExample/SKPhotoBrowserExample.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/SKPhotoBrowserExample/SKPhotoBrowserExample/Base.lproj/Main.storyboard b/SKPhotoBrowserExample/SKPhotoBrowserExample/Base.lproj/Main.storyboard index 40dd83d..d4e8276 100644 --- a/SKPhotoBrowserExample/SKPhotoBrowserExample/Base.lproj/Main.storyboard +++ b/SKPhotoBrowserExample/SKPhotoBrowserExample/Base.lproj/Main.storyboard @@ -1,5 +1,5 @@ - + @@ -88,14 +88,26 @@ + + + + + + + + + + + + diff --git a/SKPhotoBrowserExample/SKPhotoBrowserExample/FromWebViewController.swift b/SKPhotoBrowserExample/SKPhotoBrowserExample/FromWebViewController.swift index a98ad39..f0a43b8 100644 --- a/SKPhotoBrowserExample/SKPhotoBrowserExample/FromWebViewController.swift +++ b/SKPhotoBrowserExample/SKPhotoBrowserExample/FromWebViewController.swift @@ -8,12 +8,19 @@ import UIKit import SKPhotoBrowser +import SDWebImage class FromWebViewController: UIViewController, SKPhotoBrowserDelegate { + @IBOutlet weak var imageView: UIImageView! var images = [SKPhotoProtocol]() override func viewDidLoad() { super.viewDidLoad() + + SKCache.sharedCache.imageCache = CustomImageCache() + imageView.sd_setImageWithURL(NSURL(string: "https://placehold.jp/1500x1500.png")) { + SKCache.sharedCache.setImage($0.0, forKey: $0.3.absoluteString) + } } @IBAction func pushButton(sender: AnyObject) { @@ -35,6 +42,7 @@ extension FromWebViewController { } func removePhoto(browser: SKPhotoBrowser, index: Int, reload: (() -> Void)) { + SKCache.sharedCache.removeImageForKey("somekey") reload() } } @@ -52,3 +60,24 @@ private extension FromWebViewController { } } +class CustomImageCache: SKImageCacheable { + var cache: SDImageCache + + init() { + let cache = SDImageCache(namespace: "com.suzuki.custom.cache") + self.cache = cache + } + + func imageForKey(key: String) -> UIImage? { + guard let image = cache.imageFromDiskCacheForKey(key) else { return nil } + + return image + } + + func setImage(image: UIImage, forKey key: String) { + cache.storeImage(image, forKey: key) + } + + func removeImageForKey(key: String) { + } +} \ No newline at end of file