├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── ZSYMaskView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-ZSYMaskView_Example │ │ ├── Pods-ZSYMaskView_Example-Info.plist │ │ ├── Pods-ZSYMaskView_Example-acknowledgements.markdown │ │ ├── Pods-ZSYMaskView_Example-acknowledgements.plist │ │ ├── Pods-ZSYMaskView_Example-dummy.m │ │ ├── Pods-ZSYMaskView_Example-frameworks.sh │ │ ├── Pods-ZSYMaskView_Example-umbrella.h │ │ ├── Pods-ZSYMaskView_Example.debug.xcconfig │ │ ├── Pods-ZSYMaskView_Example.modulemap │ │ └── Pods-ZSYMaskView_Example.release.xcconfig │ │ ├── Pods-ZSYMaskView_Tests │ │ ├── Pods-ZSYMaskView_Tests-Info.plist │ │ ├── Pods-ZSYMaskView_Tests-acknowledgements.markdown │ │ ├── Pods-ZSYMaskView_Tests-acknowledgements.plist │ │ ├── Pods-ZSYMaskView_Tests-dummy.m │ │ ├── Pods-ZSYMaskView_Tests-umbrella.h │ │ ├── Pods-ZSYMaskView_Tests.debug.xcconfig │ │ ├── Pods-ZSYMaskView_Tests.modulemap │ │ └── Pods-ZSYMaskView_Tests.release.xcconfig │ │ └── ZSYMaskView │ │ ├── ZSYMaskView-Info.plist │ │ ├── ZSYMaskView-dummy.m │ │ ├── ZSYMaskView-prefix.pch │ │ ├── ZSYMaskView-umbrella.h │ │ ├── ZSYMaskView.debug.xcconfig │ │ ├── ZSYMaskView.modulemap │ │ └── ZSYMaskView.release.xcconfig ├── Tests │ ├── Info.plist │ └── Tests.swift ├── ZSYMaskView.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── ZSYMaskView-Example.xcscheme ├── ZSYMaskView.xcworkspace │ └── contents.xcworkspacedata ├── ZSYMaskView │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── CustomCellView.swift │ ├── CustomCellView.xib │ ├── CustomTableViewCell.swift │ ├── CustomTableViewCell.xib │ ├── Images.xcassets │ │ ├── 1.imageset │ │ │ ├── Contents.json │ │ │ └── head.jpg │ │ ├── 2.imageset │ │ │ ├── Contents.json │ │ │ └── head.jpg │ │ ├── 3.imageset │ │ │ ├── Contents.json │ │ │ └── timg.jpg │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── MaskForStaticViewController.swift │ ├── ViewController.swift │ ├── ZSYScrollViewController.swift │ ├── ZSYStaticViewController.swift │ └── ZSYTableViewController.swift └── images │ ├── scrollview.gif │ ├── staticview.gif │ └── tableview.gif ├── LICENSE ├── README.md ├── ZSYMaskView.podspec ├── ZSYMaskView ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── ZSYMaskViewController.swift └── _Pods.xcodeproj /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode11.5 6 | language: swift 7 | cache: cocoapods 8 | podfile: Example/Podfile 9 | before_install: 10 | - gem install cocoapods # Since Travis is not always on latest version 11 | - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/ZSYMaskView.xcworkspace -scheme ZSYMaskView-Example -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 11" | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'ZSYMaskView_Example' do 4 | pod 'ZSYMaskView', :path => '../' 5 | 6 | target 'ZSYMaskView_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ZSYMaskView (0.0.1) 3 | 4 | DEPENDENCIES: 5 | - ZSYMaskView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ZSYMaskView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ZSYMaskView: 8adaa8609440e80598b8f5e20092b7635334dba8 13 | 14 | PODFILE CHECKSUM: 7a523c5f831f28c95c699766d6de6d54ee266748 15 | 16 | COCOAPODS: 1.9.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/ZSYMaskView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZSYMaskView", 3 | "version": "0.0.1", 4 | "summary": "A short description of ZSYMaskView.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/zhusongyu1990@163.com/ZSYMaskView", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "zhusongyu1990@163.com": "zhusongyu1990@163.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/zhusongyu1990@163.com/ZSYMaskView.git", 16 | "tag": "0.0.1" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "ZSYMaskView/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ZSYMaskView (0.0.1) 3 | 4 | DEPENDENCIES: 5 | - ZSYMaskView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ZSYMaskView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ZSYMaskView: 8adaa8609440e80598b8f5e20092b7635334dba8 13 | 14 | PODFILE CHECKSUM: 7a523c5f831f28c95c699766d6de6d54ee266748 15 | 16 | COCOAPODS: 1.9.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 63C4B440CFF87095208145DFBA6B4441 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 11 | 651F1B430267928EEE9E83568A55166B /* ZSYMaskViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6637B4E84892323D6F5DAFFED264B1DC /* ZSYMaskViewController.swift */; }; 12 | 704920D64FFAFDD8D0D6815AA083763D /* Pods-ZSYMaskView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0530747B501600442B33110ED5EC9A8E /* Pods-ZSYMaskView_Example-dummy.m */; }; 13 | 850F9FB88ADF276A2E5E11BF70E8951D /* Pods-ZSYMaskView_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2E01F8A19F6036B365A1317CA84EDE24 /* Pods-ZSYMaskView_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 8B07A239B8B8EED131D823F77549A2C1 /* ZSYMaskView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A4BD4ADBC0DCE07F0FBEBE34C585AA8 /* ZSYMaskView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 91EB2BA16F4EB6110C75E9B02AE9CCF4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 16 | 9DCBFEF285B9A74E1932AA58D298C361 /* ZSYMaskView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7095F891167A286AEA2DFB062663476A /* ZSYMaskView-dummy.m */; }; 17 | A24123832BB9BD8929B83D71FB11EA76 /* Pods-ZSYMaskView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = D6FFB7377EB75A6B12F004EA90E5A97C /* Pods-ZSYMaskView_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | B9AD2465C0983D59E16955EB1422CA27 /* Pods-ZSYMaskView_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DFD91DAC3B3E31837BEBC9B4486512C /* Pods-ZSYMaskView_Tests-dummy.m */; }; 19 | BFB33B6F2205A9A6A509CDC04583B945 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 72167DF0D210F3B64C8BE60F110854BB /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 3EA4403C93979CC72213E9ECD76939CC; 28 | remoteInfo = ZSYMaskView; 29 | }; 30 | E18A43A090AAD0676E7C4FF250B2B189 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 21342DA66AE177E6680603364CA87905; 35 | remoteInfo = "Pods-ZSYMaskView_Example"; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 0530747B501600442B33110ED5EC9A8E /* Pods-ZSYMaskView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ZSYMaskView_Example-dummy.m"; sourceTree = ""; }; 41 | 1405F09E6DE1268739F3CA8DF611AEEF /* ZSYMaskView.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ZSYMaskView.release.xcconfig; sourceTree = ""; }; 42 | 23DABDDF2E85D1F4AB6252D434FCB0B8 /* Pods-ZSYMaskView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZSYMaskView_Tests.debug.xcconfig"; sourceTree = ""; }; 43 | 2E01F8A19F6036B365A1317CA84EDE24 /* Pods-ZSYMaskView_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ZSYMaskView_Tests-umbrella.h"; sourceTree = ""; }; 44 | 2F7738A1B1F7D6E0FA9B952DA99C3961 /* Pods-ZSYMaskView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZSYMaskView_Example-acknowledgements.plist"; sourceTree = ""; }; 45 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 46 | 335E72C04B9DBE079DF8D75B382F987D /* Pods-ZSYMaskView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZSYMaskView_Example.debug.xcconfig"; sourceTree = ""; }; 47 | 356E7EAB5F7A1B10C8082A68FF1ED046 /* Pods-ZSYMaskView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ZSYMaskView_Example.modulemap"; sourceTree = ""; }; 48 | 3EA56C048E4076F50E059B83D9D77FAE /* Pods-ZSYMaskView_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZSYMaskView_Example-Info.plist"; sourceTree = ""; }; 49 | 402D8650433284D3A99FA22ABEBE7E33 /* ZSYMaskView.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ZSYMaskView.debug.xcconfig; sourceTree = ""; }; 50 | 5A4BD4ADBC0DCE07F0FBEBE34C585AA8 /* ZSYMaskView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ZSYMaskView-umbrella.h"; sourceTree = ""; }; 51 | 6637B4E84892323D6F5DAFFED264B1DC /* ZSYMaskViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ZSYMaskViewController.swift; path = ZSYMaskView/Classes/ZSYMaskViewController.swift; sourceTree = ""; }; 52 | 7095F891167A286AEA2DFB062663476A /* ZSYMaskView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ZSYMaskView-dummy.m"; sourceTree = ""; }; 53 | 78C188FFBADFEE76301C52DAC1ECB6B8 /* Pods-ZSYMaskView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZSYMaskView_Example.release.xcconfig"; sourceTree = ""; }; 54 | 7C842BCA86F883EEFC8CBF3A890EEC1D /* ZSYMaskView.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = ZSYMaskView.podspec; sourceTree = ""; tabWidth = 2; }; 55 | 7D36C17BC0F93C6E91B2B473CD2438F3 /* Pods-ZSYMaskView_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZSYMaskView_Tests-acknowledgements.plist"; sourceTree = ""; }; 56 | 8DFD91DAC3B3E31837BEBC9B4486512C /* Pods-ZSYMaskView_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ZSYMaskView_Tests-dummy.m"; sourceTree = ""; }; 57 | 8F1D03A26B4C407E6D76BA0C39B99020 /* Pods-ZSYMaskView_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ZSYMaskView_Example-frameworks.sh"; sourceTree = ""; }; 58 | 98E87A5890B878804B6CAAFFA0C27882 /* Pods-ZSYMaskView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ZSYMaskView_Example-acknowledgements.markdown"; sourceTree = ""; }; 59 | 9C8A4F793F45E390AD428BF652C27AD1 /* Pods_ZSYMaskView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZSYMaskView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 61 | A184C39C27027F04D548407BBC2D1C9D /* Pods-ZSYMaskView_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ZSYMaskView_Tests-acknowledgements.markdown"; sourceTree = ""; }; 62 | A2349AF1497B048F95ECCF28DF0BC4A1 /* ZSYMaskView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ZSYMaskView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | AD9CF785C4F4147EAA3B57286CC87F94 /* Pods-ZSYMaskView_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ZSYMaskView_Tests.modulemap"; sourceTree = ""; }; 64 | C0BD1D40B0907C9D473FCA63ABC2AD4B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 65 | C313C0D7B31B8D12BEB3A782A7855BE4 /* Pods-ZSYMaskView_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ZSYMaskView_Tests-Info.plist"; sourceTree = ""; }; 66 | D3F7785ABADD15820376FF7636FF6B98 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 67 | D48A92D2106BAAF1DEAA4697F0B7624D /* ZSYMaskView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ZSYMaskView-Info.plist"; sourceTree = ""; }; 68 | D6FFB7377EB75A6B12F004EA90E5A97C /* Pods-ZSYMaskView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ZSYMaskView_Example-umbrella.h"; sourceTree = ""; }; 69 | DBAD21CF52A5BF23089C083FF9B2C29B /* Pods_ZSYMaskView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZSYMaskView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | E74EC105CF86373C4F0F50EE3374D091 /* ZSYMaskView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ZSYMaskView-prefix.pch"; sourceTree = ""; }; 71 | F0B31A282AB289FC4807EBECADB17622 /* Pods-ZSYMaskView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ZSYMaskView_Tests.release.xcconfig"; sourceTree = ""; }; 72 | F3557480435486853F2EB4EAEC43EC0A /* ZSYMaskView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = ZSYMaskView.modulemap; sourceTree = ""; }; 73 | /* End PBXFileReference section */ 74 | 75 | /* Begin PBXFrameworksBuildPhase section */ 76 | 1997B57880B4F2A69CA5AC68748095E3 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | 63C4B440CFF87095208145DFBA6B4441 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 7B56A16E13323FF80DA86FE5021A7A27 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | BFB33B6F2205A9A6A509CDC04583B945 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | 8FAF0F5777EB261D4799E12C6999A159 /* Frameworks */ = { 93 | isa = PBXFrameworksBuildPhase; 94 | buildActionMask = 2147483647; 95 | files = ( 96 | 91EB2BA16F4EB6110C75E9B02AE9CCF4 /* Foundation.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | /* End PBXFrameworksBuildPhase section */ 101 | 102 | /* Begin PBXGroup section */ 103 | 204B881B723CA441A7BC0D1455F2B559 /* Pods-ZSYMaskView_Tests */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | AD9CF785C4F4147EAA3B57286CC87F94 /* Pods-ZSYMaskView_Tests.modulemap */, 107 | A184C39C27027F04D548407BBC2D1C9D /* Pods-ZSYMaskView_Tests-acknowledgements.markdown */, 108 | 7D36C17BC0F93C6E91B2B473CD2438F3 /* Pods-ZSYMaskView_Tests-acknowledgements.plist */, 109 | 8DFD91DAC3B3E31837BEBC9B4486512C /* Pods-ZSYMaskView_Tests-dummy.m */, 110 | C313C0D7B31B8D12BEB3A782A7855BE4 /* Pods-ZSYMaskView_Tests-Info.plist */, 111 | 2E01F8A19F6036B365A1317CA84EDE24 /* Pods-ZSYMaskView_Tests-umbrella.h */, 112 | 23DABDDF2E85D1F4AB6252D434FCB0B8 /* Pods-ZSYMaskView_Tests.debug.xcconfig */, 113 | F0B31A282AB289FC4807EBECADB17622 /* Pods-ZSYMaskView_Tests.release.xcconfig */, 114 | ); 115 | name = "Pods-ZSYMaskView_Tests"; 116 | path = "Target Support Files/Pods-ZSYMaskView_Tests"; 117 | sourceTree = ""; 118 | }; 119 | 240CD1B4DDF7319BE498A0685EBB62C8 /* Pod */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | D3F7785ABADD15820376FF7636FF6B98 /* LICENSE */, 123 | C0BD1D40B0907C9D473FCA63ABC2AD4B /* README.md */, 124 | 7C842BCA86F883EEFC8CBF3A890EEC1D /* ZSYMaskView.podspec */, 125 | ); 126 | name = Pod; 127 | sourceTree = ""; 128 | }; 129 | 42ABDCC45761BAF227E8AF42D869E238 /* Support Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | F3557480435486853F2EB4EAEC43EC0A /* ZSYMaskView.modulemap */, 133 | 7095F891167A286AEA2DFB062663476A /* ZSYMaskView-dummy.m */, 134 | D48A92D2106BAAF1DEAA4697F0B7624D /* ZSYMaskView-Info.plist */, 135 | E74EC105CF86373C4F0F50EE3374D091 /* ZSYMaskView-prefix.pch */, 136 | 5A4BD4ADBC0DCE07F0FBEBE34C585AA8 /* ZSYMaskView-umbrella.h */, 137 | 402D8650433284D3A99FA22ABEBE7E33 /* ZSYMaskView.debug.xcconfig */, 138 | 1405F09E6DE1268739F3CA8DF611AEEF /* ZSYMaskView.release.xcconfig */, 139 | ); 140 | name = "Support Files"; 141 | path = "Example/Pods/Target Support Files/ZSYMaskView"; 142 | sourceTree = ""; 143 | }; 144 | 4EC5610FFABCD432AF6BA86E4E1A589A /* Development Pods */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 84602586996485999DEF26CBA487C056 /* ZSYMaskView */, 148 | ); 149 | name = "Development Pods"; 150 | sourceTree = ""; 151 | }; 152 | 6AA0DB9DDD9B24449D78D185F9CDE689 /* Pods-ZSYMaskView_Example */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 356E7EAB5F7A1B10C8082A68FF1ED046 /* Pods-ZSYMaskView_Example.modulemap */, 156 | 98E87A5890B878804B6CAAFFA0C27882 /* Pods-ZSYMaskView_Example-acknowledgements.markdown */, 157 | 2F7738A1B1F7D6E0FA9B952DA99C3961 /* Pods-ZSYMaskView_Example-acknowledgements.plist */, 158 | 0530747B501600442B33110ED5EC9A8E /* Pods-ZSYMaskView_Example-dummy.m */, 159 | 8F1D03A26B4C407E6D76BA0C39B99020 /* Pods-ZSYMaskView_Example-frameworks.sh */, 160 | 3EA56C048E4076F50E059B83D9D77FAE /* Pods-ZSYMaskView_Example-Info.plist */, 161 | D6FFB7377EB75A6B12F004EA90E5A97C /* Pods-ZSYMaskView_Example-umbrella.h */, 162 | 335E72C04B9DBE079DF8D75B382F987D /* Pods-ZSYMaskView_Example.debug.xcconfig */, 163 | 78C188FFBADFEE76301C52DAC1ECB6B8 /* Pods-ZSYMaskView_Example.release.xcconfig */, 164 | ); 165 | name = "Pods-ZSYMaskView_Example"; 166 | path = "Target Support Files/Pods-ZSYMaskView_Example"; 167 | sourceTree = ""; 168 | }; 169 | 84602586996485999DEF26CBA487C056 /* ZSYMaskView */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 6637B4E84892323D6F5DAFFED264B1DC /* ZSYMaskViewController.swift */, 173 | 240CD1B4DDF7319BE498A0685EBB62C8 /* Pod */, 174 | 42ABDCC45761BAF227E8AF42D869E238 /* Support Files */, 175 | ); 176 | name = ZSYMaskView; 177 | path = ../..; 178 | sourceTree = ""; 179 | }; 180 | A3D687DD27CA9E4AA0BEEF0C6BFB1894 /* Targets Support Files */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 6AA0DB9DDD9B24449D78D185F9CDE689 /* Pods-ZSYMaskView_Example */, 184 | 204B881B723CA441A7BC0D1455F2B559 /* Pods-ZSYMaskView_Tests */, 185 | ); 186 | name = "Targets Support Files"; 187 | sourceTree = ""; 188 | }; 189 | BEDCF366858F23EAD09AEA55BF9E059F /* Products */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | DBAD21CF52A5BF23089C083FF9B2C29B /* Pods_ZSYMaskView_Example.framework */, 193 | 9C8A4F793F45E390AD428BF652C27AD1 /* Pods_ZSYMaskView_Tests.framework */, 194 | A2349AF1497B048F95ECCF28DF0BC4A1 /* ZSYMaskView.framework */, 195 | ); 196 | name = Products; 197 | sourceTree = ""; 198 | }; 199 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 203 | ); 204 | name = iOS; 205 | sourceTree = ""; 206 | }; 207 | CF1408CF629C7361332E53B88F7BD30C = { 208 | isa = PBXGroup; 209 | children = ( 210 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 211 | 4EC5610FFABCD432AF6BA86E4E1A589A /* Development Pods */, 212 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 213 | BEDCF366858F23EAD09AEA55BF9E059F /* Products */, 214 | A3D687DD27CA9E4AA0BEEF0C6BFB1894 /* Targets Support Files */, 215 | ); 216 | sourceTree = ""; 217 | }; 218 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 222 | ); 223 | name = Frameworks; 224 | sourceTree = ""; 225 | }; 226 | /* End PBXGroup section */ 227 | 228 | /* Begin PBXHeadersBuildPhase section */ 229 | 40C1BFEC11994DFCB1B3847820F27E4A /* Headers */ = { 230 | isa = PBXHeadersBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 8B07A239B8B8EED131D823F77549A2C1 /* ZSYMaskView-umbrella.h in Headers */, 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | }; 237 | 7525B8815FD767479C5FC6F988230E13 /* Headers */ = { 238 | isa = PBXHeadersBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 850F9FB88ADF276A2E5E11BF70E8951D /* Pods-ZSYMaskView_Tests-umbrella.h in Headers */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | BA479CD1228FA5A26AB208640F883E36 /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | A24123832BB9BD8929B83D71FB11EA76 /* Pods-ZSYMaskView_Example-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | /* End PBXHeadersBuildPhase section */ 254 | 255 | /* Begin PBXNativeTarget section */ 256 | 21342DA66AE177E6680603364CA87905 /* Pods-ZSYMaskView_Example */ = { 257 | isa = PBXNativeTarget; 258 | buildConfigurationList = B88A2E53E189C4D61759801476CFFAD5 /* Build configuration list for PBXNativeTarget "Pods-ZSYMaskView_Example" */; 259 | buildPhases = ( 260 | BA479CD1228FA5A26AB208640F883E36 /* Headers */, 261 | FFBC2F3A5811A70B2ABCE6CF290D3120 /* Sources */, 262 | 7B56A16E13323FF80DA86FE5021A7A27 /* Frameworks */, 263 | 78C959CB0102E6B72B382DF7F67ADA10 /* Resources */, 264 | ); 265 | buildRules = ( 266 | ); 267 | dependencies = ( 268 | 2CDA6E036BBCE49C126FE49E827D88FF /* PBXTargetDependency */, 269 | ); 270 | name = "Pods-ZSYMaskView_Example"; 271 | productName = "Pods-ZSYMaskView_Example"; 272 | productReference = DBAD21CF52A5BF23089C083FF9B2C29B /* Pods_ZSYMaskView_Example.framework */; 273 | productType = "com.apple.product-type.framework"; 274 | }; 275 | 3EA4403C93979CC72213E9ECD76939CC /* ZSYMaskView */ = { 276 | isa = PBXNativeTarget; 277 | buildConfigurationList = 41235BB3920DDB011515A27C4D8457CD /* Build configuration list for PBXNativeTarget "ZSYMaskView" */; 278 | buildPhases = ( 279 | 40C1BFEC11994DFCB1B3847820F27E4A /* Headers */, 280 | 9E7E925FD4A6B6BA1E5DCFDDCA1E70E8 /* Sources */, 281 | 1997B57880B4F2A69CA5AC68748095E3 /* Frameworks */, 282 | 84A7011FC7076FE22DA62B37828ECEC4 /* Resources */, 283 | ); 284 | buildRules = ( 285 | ); 286 | dependencies = ( 287 | ); 288 | name = ZSYMaskView; 289 | productName = ZSYMaskView; 290 | productReference = A2349AF1497B048F95ECCF28DF0BC4A1 /* ZSYMaskView.framework */; 291 | productType = "com.apple.product-type.framework"; 292 | }; 293 | 903060D6228D3132C337AE2004B0E2E5 /* Pods-ZSYMaskView_Tests */ = { 294 | isa = PBXNativeTarget; 295 | buildConfigurationList = 79031771F1EA175BFA22CC9191E4E20E /* Build configuration list for PBXNativeTarget "Pods-ZSYMaskView_Tests" */; 296 | buildPhases = ( 297 | 7525B8815FD767479C5FC6F988230E13 /* Headers */, 298 | 2753F61BEC029CDAEB7B1E3A5D3D73AA /* Sources */, 299 | 8FAF0F5777EB261D4799E12C6999A159 /* Frameworks */, 300 | 8612EAE604C4AA3AD8D974316689E1EA /* Resources */, 301 | ); 302 | buildRules = ( 303 | ); 304 | dependencies = ( 305 | 62F3DD88F806029F188242ABE2E8C627 /* PBXTargetDependency */, 306 | ); 307 | name = "Pods-ZSYMaskView_Tests"; 308 | productName = "Pods-ZSYMaskView_Tests"; 309 | productReference = 9C8A4F793F45E390AD428BF652C27AD1 /* Pods_ZSYMaskView_Tests.framework */; 310 | productType = "com.apple.product-type.framework"; 311 | }; 312 | /* End PBXNativeTarget section */ 313 | 314 | /* Begin PBXProject section */ 315 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 316 | isa = PBXProject; 317 | attributes = { 318 | LastSwiftUpdateCheck = 1100; 319 | LastUpgradeCheck = 1100; 320 | TargetAttributes = { 321 | 21342DA66AE177E6680603364CA87905 = { 322 | LastSwiftMigration = 1160; 323 | }; 324 | }; 325 | }; 326 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 327 | compatibilityVersion = "Xcode 3.2"; 328 | developmentRegion = en; 329 | hasScannedForEncodings = 0; 330 | knownRegions = ( 331 | en, 332 | Base, 333 | ); 334 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 335 | productRefGroup = BEDCF366858F23EAD09AEA55BF9E059F /* Products */; 336 | projectDirPath = ""; 337 | projectRoot = ""; 338 | targets = ( 339 | 21342DA66AE177E6680603364CA87905 /* Pods-ZSYMaskView_Example */, 340 | 903060D6228D3132C337AE2004B0E2E5 /* Pods-ZSYMaskView_Tests */, 341 | 3EA4403C93979CC72213E9ECD76939CC /* ZSYMaskView */, 342 | ); 343 | }; 344 | /* End PBXProject section */ 345 | 346 | /* Begin PBXResourcesBuildPhase section */ 347 | 78C959CB0102E6B72B382DF7F67ADA10 /* Resources */ = { 348 | isa = PBXResourcesBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | }; 354 | 84A7011FC7076FE22DA62B37828ECEC4 /* Resources */ = { 355 | isa = PBXResourcesBuildPhase; 356 | buildActionMask = 2147483647; 357 | files = ( 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | }; 361 | 8612EAE604C4AA3AD8D974316689E1EA /* Resources */ = { 362 | isa = PBXResourcesBuildPhase; 363 | buildActionMask = 2147483647; 364 | files = ( 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | /* End PBXResourcesBuildPhase section */ 369 | 370 | /* Begin PBXSourcesBuildPhase section */ 371 | 2753F61BEC029CDAEB7B1E3A5D3D73AA /* Sources */ = { 372 | isa = PBXSourcesBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | B9AD2465C0983D59E16955EB1422CA27 /* Pods-ZSYMaskView_Tests-dummy.m in Sources */, 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | }; 379 | 9E7E925FD4A6B6BA1E5DCFDDCA1E70E8 /* Sources */ = { 380 | isa = PBXSourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | 9DCBFEF285B9A74E1932AA58D298C361 /* ZSYMaskView-dummy.m in Sources */, 384 | 651F1B430267928EEE9E83568A55166B /* ZSYMaskViewController.swift in Sources */, 385 | ); 386 | runOnlyForDeploymentPostprocessing = 0; 387 | }; 388 | FFBC2F3A5811A70B2ABCE6CF290D3120 /* Sources */ = { 389 | isa = PBXSourcesBuildPhase; 390 | buildActionMask = 2147483647; 391 | files = ( 392 | 704920D64FFAFDD8D0D6815AA083763D /* Pods-ZSYMaskView_Example-dummy.m in Sources */, 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | }; 396 | /* End PBXSourcesBuildPhase section */ 397 | 398 | /* Begin PBXTargetDependency section */ 399 | 2CDA6E036BBCE49C126FE49E827D88FF /* PBXTargetDependency */ = { 400 | isa = PBXTargetDependency; 401 | name = ZSYMaskView; 402 | target = 3EA4403C93979CC72213E9ECD76939CC /* ZSYMaskView */; 403 | targetProxy = 72167DF0D210F3B64C8BE60F110854BB /* PBXContainerItemProxy */; 404 | }; 405 | 62F3DD88F806029F188242ABE2E8C627 /* PBXTargetDependency */ = { 406 | isa = PBXTargetDependency; 407 | name = "Pods-ZSYMaskView_Example"; 408 | target = 21342DA66AE177E6680603364CA87905 /* Pods-ZSYMaskView_Example */; 409 | targetProxy = E18A43A090AAD0676E7C4FF250B2B189 /* PBXContainerItemProxy */; 410 | }; 411 | /* End PBXTargetDependency section */ 412 | 413 | /* Begin XCBuildConfiguration section */ 414 | 3F84FB3A6A43D3E8B551F9FC2B7BCAFB /* Release */ = { 415 | isa = XCBuildConfiguration; 416 | baseConfigurationReference = 78C188FFBADFEE76301C52DAC1ECB6B8 /* Pods-ZSYMaskView_Example.release.xcconfig */; 417 | buildSettings = { 418 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 419 | CLANG_ENABLE_MODULES = YES; 420 | CODE_SIGN_IDENTITY = ""; 421 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 423 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 424 | CURRENT_PROJECT_VERSION = 1; 425 | DEFINES_MODULE = YES; 426 | DYLIB_COMPATIBILITY_VERSION = 1; 427 | DYLIB_CURRENT_VERSION = 1; 428 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 429 | INFOPLIST_FILE = "Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-Info.plist"; 430 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 431 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 432 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 433 | MACH_O_TYPE = staticlib; 434 | MODULEMAP_FILE = "Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example.modulemap"; 435 | OTHER_LDFLAGS = ""; 436 | OTHER_LIBTOOLFLAGS = ""; 437 | PODS_ROOT = "$(SRCROOT)"; 438 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 439 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 440 | SDKROOT = iphoneos; 441 | SKIP_INSTALL = YES; 442 | SWIFT_VERSION = 5.0; 443 | TARGETED_DEVICE_FAMILY = "1,2"; 444 | VALIDATE_PRODUCT = YES; 445 | VERSIONING_SYSTEM = "apple-generic"; 446 | VERSION_INFO_PREFIX = ""; 447 | }; 448 | name = Release; 449 | }; 450 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | ALWAYS_SEARCH_USER_PATHS = NO; 454 | CLANG_ANALYZER_NONNULL = YES; 455 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 456 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 457 | CLANG_CXX_LIBRARY = "libc++"; 458 | CLANG_ENABLE_MODULES = YES; 459 | CLANG_ENABLE_OBJC_ARC = YES; 460 | CLANG_ENABLE_OBJC_WEAK = YES; 461 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 462 | CLANG_WARN_BOOL_CONVERSION = YES; 463 | CLANG_WARN_COMMA = YES; 464 | CLANG_WARN_CONSTANT_CONVERSION = YES; 465 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 466 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 467 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 468 | CLANG_WARN_EMPTY_BODY = YES; 469 | CLANG_WARN_ENUM_CONVERSION = YES; 470 | CLANG_WARN_INFINITE_RECURSION = YES; 471 | CLANG_WARN_INT_CONVERSION = YES; 472 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 473 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 474 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 475 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 476 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 477 | CLANG_WARN_STRICT_PROTOTYPES = YES; 478 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 479 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 480 | CLANG_WARN_UNREACHABLE_CODE = YES; 481 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 482 | COPY_PHASE_STRIP = NO; 483 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 484 | ENABLE_NS_ASSERTIONS = NO; 485 | ENABLE_STRICT_OBJC_MSGSEND = YES; 486 | GCC_C_LANGUAGE_STANDARD = gnu11; 487 | GCC_NO_COMMON_BLOCKS = YES; 488 | GCC_PREPROCESSOR_DEFINITIONS = ( 489 | "POD_CONFIGURATION_RELEASE=1", 490 | "$(inherited)", 491 | ); 492 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 493 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 494 | GCC_WARN_UNDECLARED_SELECTOR = YES; 495 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 496 | GCC_WARN_UNUSED_FUNCTION = YES; 497 | GCC_WARN_UNUSED_VARIABLE = YES; 498 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 499 | MTL_ENABLE_DEBUG_INFO = NO; 500 | MTL_FAST_MATH = YES; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | STRIP_INSTALLED_PRODUCT = NO; 503 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 504 | SWIFT_VERSION = 5.0; 505 | SYMROOT = "${SRCROOT}/../build"; 506 | }; 507 | name = Release; 508 | }; 509 | 4E2B5C20E616DA9B486AEBF4A6F43DB5 /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = F0B31A282AB289FC4807EBECADB17622 /* Pods-ZSYMaskView_Tests.release.xcconfig */; 512 | buildSettings = { 513 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 514 | CODE_SIGN_IDENTITY = ""; 515 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 516 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 517 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 518 | CURRENT_PROJECT_VERSION = 1; 519 | DEFINES_MODULE = YES; 520 | DYLIB_COMPATIBILITY_VERSION = 1; 521 | DYLIB_CURRENT_VERSION = 1; 522 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 523 | INFOPLIST_FILE = "Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests-Info.plist"; 524 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 525 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 527 | MACH_O_TYPE = staticlib; 528 | MODULEMAP_FILE = "Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests.modulemap"; 529 | OTHER_LDFLAGS = ""; 530 | OTHER_LIBTOOLFLAGS = ""; 531 | PODS_ROOT = "$(SRCROOT)"; 532 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 533 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 534 | SDKROOT = iphoneos; 535 | SKIP_INSTALL = YES; 536 | TARGETED_DEVICE_FAMILY = "1,2"; 537 | VALIDATE_PRODUCT = YES; 538 | VERSIONING_SYSTEM = "apple-generic"; 539 | VERSION_INFO_PREFIX = ""; 540 | }; 541 | name = Release; 542 | }; 543 | 65F7B2DE27A68BB59222A0154A95CDEB /* Release */ = { 544 | isa = XCBuildConfiguration; 545 | baseConfigurationReference = 1405F09E6DE1268739F3CA8DF611AEEF /* ZSYMaskView.release.xcconfig */; 546 | buildSettings = { 547 | CODE_SIGN_IDENTITY = ""; 548 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 549 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 550 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 551 | CURRENT_PROJECT_VERSION = 1; 552 | DEFINES_MODULE = YES; 553 | DYLIB_COMPATIBILITY_VERSION = 1; 554 | DYLIB_CURRENT_VERSION = 1; 555 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 556 | GCC_PREFIX_HEADER = "Target Support Files/ZSYMaskView/ZSYMaskView-prefix.pch"; 557 | INFOPLIST_FILE = "Target Support Files/ZSYMaskView/ZSYMaskView-Info.plist"; 558 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 559 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 560 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 561 | MODULEMAP_FILE = "Target Support Files/ZSYMaskView/ZSYMaskView.modulemap"; 562 | PRODUCT_MODULE_NAME = ZSYMaskView; 563 | PRODUCT_NAME = ZSYMaskView; 564 | SDKROOT = iphoneos; 565 | SKIP_INSTALL = YES; 566 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 567 | SWIFT_VERSION = 4.0; 568 | TARGETED_DEVICE_FAMILY = "1,2"; 569 | VALIDATE_PRODUCT = YES; 570 | VERSIONING_SYSTEM = "apple-generic"; 571 | VERSION_INFO_PREFIX = ""; 572 | }; 573 | name = Release; 574 | }; 575 | 676504DA5324AD3AFF8565A70889C89F /* Debug */ = { 576 | isa = XCBuildConfiguration; 577 | baseConfigurationReference = 23DABDDF2E85D1F4AB6252D434FCB0B8 /* Pods-ZSYMaskView_Tests.debug.xcconfig */; 578 | buildSettings = { 579 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 580 | CODE_SIGN_IDENTITY = ""; 581 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 582 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 583 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 584 | CURRENT_PROJECT_VERSION = 1; 585 | DEFINES_MODULE = YES; 586 | DYLIB_COMPATIBILITY_VERSION = 1; 587 | DYLIB_CURRENT_VERSION = 1; 588 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 589 | INFOPLIST_FILE = "Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests-Info.plist"; 590 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 591 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 592 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 593 | MACH_O_TYPE = staticlib; 594 | MODULEMAP_FILE = "Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests.modulemap"; 595 | OTHER_LDFLAGS = ""; 596 | OTHER_LIBTOOLFLAGS = ""; 597 | PODS_ROOT = "$(SRCROOT)"; 598 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 599 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 600 | SDKROOT = iphoneos; 601 | SKIP_INSTALL = YES; 602 | TARGETED_DEVICE_FAMILY = "1,2"; 603 | VERSIONING_SYSTEM = "apple-generic"; 604 | VERSION_INFO_PREFIX = ""; 605 | }; 606 | name = Debug; 607 | }; 608 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */ = { 609 | isa = XCBuildConfiguration; 610 | buildSettings = { 611 | ALWAYS_SEARCH_USER_PATHS = NO; 612 | CLANG_ANALYZER_NONNULL = YES; 613 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 614 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 615 | CLANG_CXX_LIBRARY = "libc++"; 616 | CLANG_ENABLE_MODULES = YES; 617 | CLANG_ENABLE_OBJC_ARC = YES; 618 | CLANG_ENABLE_OBJC_WEAK = YES; 619 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 620 | CLANG_WARN_BOOL_CONVERSION = YES; 621 | CLANG_WARN_COMMA = YES; 622 | CLANG_WARN_CONSTANT_CONVERSION = YES; 623 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 624 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 625 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 626 | CLANG_WARN_EMPTY_BODY = YES; 627 | CLANG_WARN_ENUM_CONVERSION = YES; 628 | CLANG_WARN_INFINITE_RECURSION = YES; 629 | CLANG_WARN_INT_CONVERSION = YES; 630 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 631 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 632 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 633 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 634 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 635 | CLANG_WARN_STRICT_PROTOTYPES = YES; 636 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 637 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 638 | CLANG_WARN_UNREACHABLE_CODE = YES; 639 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 640 | COPY_PHASE_STRIP = NO; 641 | DEBUG_INFORMATION_FORMAT = dwarf; 642 | ENABLE_STRICT_OBJC_MSGSEND = YES; 643 | ENABLE_TESTABILITY = YES; 644 | GCC_C_LANGUAGE_STANDARD = gnu11; 645 | GCC_DYNAMIC_NO_PIC = NO; 646 | GCC_NO_COMMON_BLOCKS = YES; 647 | GCC_OPTIMIZATION_LEVEL = 0; 648 | GCC_PREPROCESSOR_DEFINITIONS = ( 649 | "POD_CONFIGURATION_DEBUG=1", 650 | "DEBUG=1", 651 | "$(inherited)", 652 | ); 653 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 654 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 655 | GCC_WARN_UNDECLARED_SELECTOR = YES; 656 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 657 | GCC_WARN_UNUSED_FUNCTION = YES; 658 | GCC_WARN_UNUSED_VARIABLE = YES; 659 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 660 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 661 | MTL_FAST_MATH = YES; 662 | ONLY_ACTIVE_ARCH = YES; 663 | PRODUCT_NAME = "$(TARGET_NAME)"; 664 | STRIP_INSTALLED_PRODUCT = NO; 665 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 666 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 667 | SWIFT_VERSION = 5.0; 668 | SYMROOT = "${SRCROOT}/../build"; 669 | }; 670 | name = Debug; 671 | }; 672 | 9206E9F75CAF3BD1CADF818AA92E155C /* Debug */ = { 673 | isa = XCBuildConfiguration; 674 | baseConfigurationReference = 402D8650433284D3A99FA22ABEBE7E33 /* ZSYMaskView.debug.xcconfig */; 675 | buildSettings = { 676 | CODE_SIGN_IDENTITY = ""; 677 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 678 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 679 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 680 | CURRENT_PROJECT_VERSION = 1; 681 | DEFINES_MODULE = YES; 682 | DYLIB_COMPATIBILITY_VERSION = 1; 683 | DYLIB_CURRENT_VERSION = 1; 684 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 685 | GCC_PREFIX_HEADER = "Target Support Files/ZSYMaskView/ZSYMaskView-prefix.pch"; 686 | INFOPLIST_FILE = "Target Support Files/ZSYMaskView/ZSYMaskView-Info.plist"; 687 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 688 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 689 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 690 | MODULEMAP_FILE = "Target Support Files/ZSYMaskView/ZSYMaskView.modulemap"; 691 | PRODUCT_MODULE_NAME = ZSYMaskView; 692 | PRODUCT_NAME = ZSYMaskView; 693 | SDKROOT = iphoneos; 694 | SKIP_INSTALL = YES; 695 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 696 | SWIFT_VERSION = 4.0; 697 | TARGETED_DEVICE_FAMILY = "1,2"; 698 | VERSIONING_SYSTEM = "apple-generic"; 699 | VERSION_INFO_PREFIX = ""; 700 | }; 701 | name = Debug; 702 | }; 703 | 971133DD449258305B53BAC655CA6E18 /* Debug */ = { 704 | isa = XCBuildConfiguration; 705 | baseConfigurationReference = 335E72C04B9DBE079DF8D75B382F987D /* Pods-ZSYMaskView_Example.debug.xcconfig */; 706 | buildSettings = { 707 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 708 | CLANG_ENABLE_MODULES = YES; 709 | CODE_SIGN_IDENTITY = ""; 710 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 711 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 712 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 713 | CURRENT_PROJECT_VERSION = 1; 714 | DEFINES_MODULE = YES; 715 | DYLIB_COMPATIBILITY_VERSION = 1; 716 | DYLIB_CURRENT_VERSION = 1; 717 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 718 | INFOPLIST_FILE = "Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-Info.plist"; 719 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 720 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 721 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 722 | MACH_O_TYPE = staticlib; 723 | MODULEMAP_FILE = "Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example.modulemap"; 724 | OTHER_LDFLAGS = ""; 725 | OTHER_LIBTOOLFLAGS = ""; 726 | PODS_ROOT = "$(SRCROOT)"; 727 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 728 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 729 | SDKROOT = iphoneos; 730 | SKIP_INSTALL = YES; 731 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 732 | SWIFT_VERSION = 5.0; 733 | TARGETED_DEVICE_FAMILY = "1,2"; 734 | VERSIONING_SYSTEM = "apple-generic"; 735 | VERSION_INFO_PREFIX = ""; 736 | }; 737 | name = Debug; 738 | }; 739 | /* End XCBuildConfiguration section */ 740 | 741 | /* Begin XCConfigurationList section */ 742 | 41235BB3920DDB011515A27C4D8457CD /* Build configuration list for PBXNativeTarget "ZSYMaskView" */ = { 743 | isa = XCConfigurationList; 744 | buildConfigurations = ( 745 | 9206E9F75CAF3BD1CADF818AA92E155C /* Debug */, 746 | 65F7B2DE27A68BB59222A0154A95CDEB /* Release */, 747 | ); 748 | defaultConfigurationIsVisible = 0; 749 | defaultConfigurationName = Release; 750 | }; 751 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 752 | isa = XCConfigurationList; 753 | buildConfigurations = ( 754 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */, 755 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */, 756 | ); 757 | defaultConfigurationIsVisible = 0; 758 | defaultConfigurationName = Release; 759 | }; 760 | 79031771F1EA175BFA22CC9191E4E20E /* Build configuration list for PBXNativeTarget "Pods-ZSYMaskView_Tests" */ = { 761 | isa = XCConfigurationList; 762 | buildConfigurations = ( 763 | 676504DA5324AD3AFF8565A70889C89F /* Debug */, 764 | 4E2B5C20E616DA9B486AEBF4A6F43DB5 /* Release */, 765 | ); 766 | defaultConfigurationIsVisible = 0; 767 | defaultConfigurationName = Release; 768 | }; 769 | B88A2E53E189C4D61759801476CFFAD5 /* Build configuration list for PBXNativeTarget "Pods-ZSYMaskView_Example" */ = { 770 | isa = XCConfigurationList; 771 | buildConfigurations = ( 772 | 971133DD449258305B53BAC655CA6E18 /* Debug */, 773 | 3F84FB3A6A43D3E8B551F9FC2B7BCAFB /* Release */, 774 | ); 775 | defaultConfigurationIsVisible = 0; 776 | defaultConfigurationName = Release; 777 | }; 778 | /* End XCConfigurationList section */ 779 | }; 780 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 781 | } 782 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ZSYMaskView 5 | 6 | Copyright (c) 2020 zhusongyu1990@163.com 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2020 zhusongyu1990@163.com <zhusongyu1990@163.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | ZSYMaskView 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ZSYMaskView_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ZSYMaskView_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | warn_missing_arch=${2:-true} 88 | if [ -r "$source" ]; then 89 | # Copy the dSYM into the targets temp dir. 90 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 91 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 92 | 93 | local basename 94 | basename="$(basename -s .dSYM "$source")" 95 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 96 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 97 | 98 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 99 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 100 | strip_invalid_archs "$binary" "$warn_missing_arch" 101 | fi 102 | 103 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 104 | # Move the stripped file into its final destination. 105 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 106 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 107 | else 108 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 109 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 110 | fi 111 | fi 112 | } 113 | 114 | # Copies the bcsymbolmap files of a vendored framework 115 | install_bcsymbolmap() { 116 | local bcsymbolmap_path="$1" 117 | local destination="${BUILT_PRODUCTS_DIR}" 118 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 119 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 120 | } 121 | 122 | # Signs a framework with the provided identity 123 | code_sign_if_enabled() { 124 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 125 | # Use the current code_sign_identity 126 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 127 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 128 | 129 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 130 | code_sign_cmd="$code_sign_cmd &" 131 | fi 132 | echo "$code_sign_cmd" 133 | eval "$code_sign_cmd" 134 | fi 135 | } 136 | 137 | # Strip invalid architectures 138 | strip_invalid_archs() { 139 | binary="$1" 140 | warn_missing_arch=${2:-true} 141 | # Get architectures for current target binary 142 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 143 | # Intersect them with the architectures we are building for 144 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 145 | # If there are no archs supported by this binary then warn the user 146 | if [[ -z "$intersected_archs" ]]; then 147 | if [[ "$warn_missing_arch" == "true" ]]; then 148 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 149 | fi 150 | STRIP_BINARY_RETVAL=0 151 | return 152 | fi 153 | stripped="" 154 | for arch in $binary_archs; do 155 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 156 | # Strip non-valid architectures in-place 157 | lipo -remove "$arch" -output "$binary" "$binary" 158 | stripped="$stripped $arch" 159 | fi 160 | done 161 | if [[ "$stripped" ]]; then 162 | echo "Stripped $binary of architectures:$stripped" 163 | fi 164 | STRIP_BINARY_RETVAL=1 165 | } 166 | 167 | install_artifact() { 168 | artifact="$1" 169 | base="$(basename "$artifact")" 170 | case $base in 171 | *.framework) 172 | install_framework "$artifact" 173 | ;; 174 | *.dSYM) 175 | # Suppress arch warnings since XCFrameworks will include many dSYM files 176 | install_dsym "$artifact" "false" 177 | ;; 178 | *.bcsymbolmap) 179 | install_bcsymbolmap "$artifact" 180 | ;; 181 | *) 182 | echo "error: Unrecognized artifact "$artifact"" 183 | ;; 184 | esac 185 | } 186 | 187 | copy_artifacts() { 188 | file_list="$1" 189 | while read artifact; do 190 | install_artifact "$artifact" 191 | done <$file_list 192 | } 193 | 194 | ARTIFACT_LIST_FILE="${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt" 195 | if [ -r "${ARTIFACT_LIST_FILE}" ]; then 196 | copy_artifacts "${ARTIFACT_LIST_FILE}" 197 | fi 198 | 199 | if [[ "$CONFIGURATION" == "Debug" ]]; then 200 | install_framework "${BUILT_PRODUCTS_DIR}/ZSYMaskView/ZSYMaskView.framework" 201 | fi 202 | if [[ "$CONFIGURATION" == "Release" ]]; then 203 | install_framework "${BUILT_PRODUCTS_DIR}/ZSYMaskView/ZSYMaskView.framework" 204 | fi 205 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 206 | wait 207 | fi 208 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ZSYMaskView_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ZSYMaskView_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView/ZSYMaskView.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "ZSYMaskView" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ZSYMaskView_Example { 2 | umbrella header "Pods-ZSYMaskView_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView/ZSYMaskView.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "ZSYMaskView" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ZSYMaskView_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ZSYMaskView_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ZSYMaskView_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ZSYMaskView_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView/ZSYMaskView.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "ZSYMaskView" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ZSYMaskView_Tests { 2 | umbrella header "Pods-ZSYMaskView_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView/ZSYMaskView.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "ZSYMaskView" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZSYMaskView/ZSYMaskView-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.0.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZSYMaskView/ZSYMaskView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ZSYMaskView : NSObject 3 | @end 4 | @implementation PodsDummy_ZSYMaskView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZSYMaskView/ZSYMaskView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZSYMaskView/ZSYMaskView-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double ZSYMaskViewVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char ZSYMaskViewVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZSYMaskView/ZSYMaskView.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZSYMaskView/ZSYMaskView.modulemap: -------------------------------------------------------------------------------- 1 | framework module ZSYMaskView { 2 | umbrella header "ZSYMaskView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZSYMaskView/ZSYMaskView.release.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ZSYMaskView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import ZSYMaskView 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Example/ZSYMaskView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2125EC9AA18F6311F4B580D5 /* Pods_ZSYMaskView_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDD162F1CDB8D0489FDD3B07 /* Pods_ZSYMaskView_Tests.framework */; }; 11 | 3B95E8D024BFF8EA009EEC43 /* CustomTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B95E8CE24BFF8EA009EEC43 /* CustomTableViewCell.swift */; }; 12 | 3B95E8D124BFF8EA009EEC43 /* CustomTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3B95E8CF24BFF8EA009EEC43 /* CustomTableViewCell.xib */; }; 13 | 3B95E8D324BFF97F009EEC43 /* CustomCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B95E8D224BFF97F009EEC43 /* CustomCellView.swift */; }; 14 | 3B95E8D524BFF98B009EEC43 /* CustomCellView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3B95E8D424BFF98B009EEC43 /* CustomCellView.xib */; }; 15 | 3BA09DED24B71BE2007B7C1C /* Pods_ZSYMaskView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 925352F943E9E5CE13581393 /* Pods_ZSYMaskView_Example.framework */; }; 16 | 3BDB892D24C14C6100DFCE34 /* ZSYScrollViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BDB892C24C14C6100DFCE34 /* ZSYScrollViewController.swift */; }; 17 | 3BDB892F24C14DF700DFCE34 /* ZSYTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BDB892E24C14DF700DFCE34 /* ZSYTableViewController.swift */; }; 18 | 3BDB893124C154C600DFCE34 /* ZSYStaticViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BDB893024C154C600DFCE34 /* ZSYStaticViewController.swift */; }; 19 | 3BDB893324C1584F00DFCE34 /* MaskForStaticViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BDB893224C1584F00DFCE34 /* MaskForStaticViewController.swift */; }; 20 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 21 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 22 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 23 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 24 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 25 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 34 | remoteInfo = ZSYMaskView; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 180FD65F776FF406102E4906 /* Pods-ZSYMaskView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZSYMaskView_Example.debug.xcconfig"; path = "Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example.debug.xcconfig"; sourceTree = ""; }; 40 | 3B95E8CE24BFF8EA009EEC43 /* CustomTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTableViewCell.swift; sourceTree = ""; }; 41 | 3B95E8CF24BFF8EA009EEC43 /* CustomTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CustomTableViewCell.xib; sourceTree = ""; }; 42 | 3B95E8D224BFF97F009EEC43 /* CustomCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomCellView.swift; sourceTree = ""; }; 43 | 3B95E8D424BFF98B009EEC43 /* CustomCellView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CustomCellView.xib; sourceTree = ""; }; 44 | 3BDB892C24C14C6100DFCE34 /* ZSYScrollViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZSYScrollViewController.swift; sourceTree = ""; }; 45 | 3BDB892E24C14DF700DFCE34 /* ZSYTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZSYTableViewController.swift; sourceTree = ""; }; 46 | 3BDB893024C154C600DFCE34 /* ZSYStaticViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZSYStaticViewController.swift; sourceTree = ""; }; 47 | 3BDB893224C1584F00DFCE34 /* MaskForStaticViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MaskForStaticViewController.swift; sourceTree = ""; }; 48 | 607FACD01AFB9204008FA782 /* ZSYMaskView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZSYMaskView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 51 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 52 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 54 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 55 | 607FACE51AFB9204008FA782 /* ZSYMaskView_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ZSYMaskView_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 58 | 67F336F0DC391687F88AD3D9 /* ZSYMaskView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ZSYMaskView.podspec; path = ../ZSYMaskView.podspec; sourceTree = ""; }; 59 | 751AC665DF01D18897C838C5 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 60 | 925352F943E9E5CE13581393 /* Pods_ZSYMaskView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZSYMaskView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | BC7E6DCC97D294F8A51E30C8 /* Pods-ZSYMaskView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZSYMaskView_Example.release.xcconfig"; path = "Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example.release.xcconfig"; sourceTree = ""; }; 62 | BE9B1F2B17B51D674A10882F /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 63 | C2FD58E94B0DA1331E2AD724 /* Pods-ZSYMaskView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZSYMaskView_Tests.release.xcconfig"; path = "Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests.release.xcconfig"; sourceTree = ""; }; 64 | C5E791108BE7BEC0232DFD12 /* Pods-ZSYMaskView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZSYMaskView_Tests.debug.xcconfig"; path = "Target Support Files/Pods-ZSYMaskView_Tests/Pods-ZSYMaskView_Tests.debug.xcconfig"; sourceTree = ""; }; 65 | FDD162F1CDB8D0489FDD3B07 /* Pods_ZSYMaskView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ZSYMaskView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | /* End PBXFileReference section */ 67 | 68 | /* Begin PBXFrameworksBuildPhase section */ 69 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | 3BA09DED24B71BE2007B7C1C /* Pods_ZSYMaskView_Example.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 2125EC9AA18F6311F4B580D5 /* Pods_ZSYMaskView_Tests.framework in Frameworks */, 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | /* End PBXFrameworksBuildPhase section */ 86 | 87 | /* Begin PBXGroup section */ 88 | 4608DEC7649C2F5D0B97BB7E /* Pods */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 180FD65F776FF406102E4906 /* Pods-ZSYMaskView_Example.debug.xcconfig */, 92 | BC7E6DCC97D294F8A51E30C8 /* Pods-ZSYMaskView_Example.release.xcconfig */, 93 | C5E791108BE7BEC0232DFD12 /* Pods-ZSYMaskView_Tests.debug.xcconfig */, 94 | C2FD58E94B0DA1331E2AD724 /* Pods-ZSYMaskView_Tests.release.xcconfig */, 95 | ); 96 | path = Pods; 97 | sourceTree = ""; 98 | }; 99 | 607FACC71AFB9204008FA782 = { 100 | isa = PBXGroup; 101 | children = ( 102 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 103 | 607FACD21AFB9204008FA782 /* Example for ZSYMaskView */, 104 | 607FACE81AFB9204008FA782 /* Tests */, 105 | 607FACD11AFB9204008FA782 /* Products */, 106 | 4608DEC7649C2F5D0B97BB7E /* Pods */, 107 | D75EC086348794BC322D7419 /* Frameworks */, 108 | ); 109 | sourceTree = ""; 110 | }; 111 | 607FACD11AFB9204008FA782 /* Products */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 607FACD01AFB9204008FA782 /* ZSYMaskView_Example.app */, 115 | 607FACE51AFB9204008FA782 /* ZSYMaskView_Tests.xctest */, 116 | ); 117 | name = Products; 118 | sourceTree = ""; 119 | }; 120 | 607FACD21AFB9204008FA782 /* Example for ZSYMaskView */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 124 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 125 | 3BDB893024C154C600DFCE34 /* ZSYStaticViewController.swift */, 126 | 3BDB893224C1584F00DFCE34 /* MaskForStaticViewController.swift */, 127 | 3BDB892C24C14C6100DFCE34 /* ZSYScrollViewController.swift */, 128 | 3BDB892E24C14DF700DFCE34 /* ZSYTableViewController.swift */, 129 | 3B95E8CE24BFF8EA009EEC43 /* CustomTableViewCell.swift */, 130 | 3B95E8CF24BFF8EA009EEC43 /* CustomTableViewCell.xib */, 131 | 3B95E8D224BFF97F009EEC43 /* CustomCellView.swift */, 132 | 3B95E8D424BFF98B009EEC43 /* CustomCellView.xib */, 133 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 134 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 135 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 136 | 607FACD31AFB9204008FA782 /* Supporting Files */, 137 | ); 138 | name = "Example for ZSYMaskView"; 139 | path = ZSYMaskView; 140 | sourceTree = ""; 141 | }; 142 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 607FACD41AFB9204008FA782 /* Info.plist */, 146 | ); 147 | name = "Supporting Files"; 148 | sourceTree = ""; 149 | }; 150 | 607FACE81AFB9204008FA782 /* Tests */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 154 | 607FACE91AFB9204008FA782 /* Supporting Files */, 155 | ); 156 | path = Tests; 157 | sourceTree = ""; 158 | }; 159 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 607FACEA1AFB9204008FA782 /* Info.plist */, 163 | ); 164 | name = "Supporting Files"; 165 | sourceTree = ""; 166 | }; 167 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 67F336F0DC391687F88AD3D9 /* ZSYMaskView.podspec */, 171 | BE9B1F2B17B51D674A10882F /* README.md */, 172 | 751AC665DF01D18897C838C5 /* LICENSE */, 173 | ); 174 | name = "Podspec Metadata"; 175 | sourceTree = ""; 176 | }; 177 | D75EC086348794BC322D7419 /* Frameworks */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 925352F943E9E5CE13581393 /* Pods_ZSYMaskView_Example.framework */, 181 | FDD162F1CDB8D0489FDD3B07 /* Pods_ZSYMaskView_Tests.framework */, 182 | ); 183 | name = Frameworks; 184 | sourceTree = ""; 185 | }; 186 | /* End PBXGroup section */ 187 | 188 | /* Begin PBXNativeTarget section */ 189 | 607FACCF1AFB9204008FA782 /* ZSYMaskView_Example */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZSYMaskView_Example" */; 192 | buildPhases = ( 193 | 5A6565F8DFA81D5EC3593A8F /* [CP] Check Pods Manifest.lock */, 194 | 607FACCC1AFB9204008FA782 /* Sources */, 195 | 607FACCD1AFB9204008FA782 /* Frameworks */, 196 | 607FACCE1AFB9204008FA782 /* Resources */, 197 | F8DA5D7AB578DA87F5D2F6F0 /* [CP] Embed Pods Frameworks */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | ); 203 | name = ZSYMaskView_Example; 204 | productName = ZSYMaskView; 205 | productReference = 607FACD01AFB9204008FA782 /* ZSYMaskView_Example.app */; 206 | productType = "com.apple.product-type.application"; 207 | }; 208 | 607FACE41AFB9204008FA782 /* ZSYMaskView_Tests */ = { 209 | isa = PBXNativeTarget; 210 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZSYMaskView_Tests" */; 211 | buildPhases = ( 212 | 76B1628EDB5558948B56DA7F /* [CP] Check Pods Manifest.lock */, 213 | 607FACE11AFB9204008FA782 /* Sources */, 214 | 607FACE21AFB9204008FA782 /* Frameworks */, 215 | 607FACE31AFB9204008FA782 /* Resources */, 216 | ); 217 | buildRules = ( 218 | ); 219 | dependencies = ( 220 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 221 | ); 222 | name = ZSYMaskView_Tests; 223 | productName = Tests; 224 | productReference = 607FACE51AFB9204008FA782 /* ZSYMaskView_Tests.xctest */; 225 | productType = "com.apple.product-type.bundle.unit-test"; 226 | }; 227 | /* End PBXNativeTarget section */ 228 | 229 | /* Begin PBXProject section */ 230 | 607FACC81AFB9204008FA782 /* Project object */ = { 231 | isa = PBXProject; 232 | attributes = { 233 | LastSwiftUpdateCheck = 0830; 234 | LastUpgradeCheck = 0830; 235 | ORGANIZATIONNAME = CocoaPods; 236 | TargetAttributes = { 237 | 607FACCF1AFB9204008FA782 = { 238 | CreatedOnToolsVersion = 6.3.1; 239 | DevelopmentTeam = 5B974QYD5M; 240 | LastSwiftMigration = 0900; 241 | }; 242 | 607FACE41AFB9204008FA782 = { 243 | CreatedOnToolsVersion = 6.3.1; 244 | LastSwiftMigration = 0900; 245 | TestTargetID = 607FACCF1AFB9204008FA782; 246 | }; 247 | }; 248 | }; 249 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ZSYMaskView" */; 250 | compatibilityVersion = "Xcode 3.2"; 251 | developmentRegion = English; 252 | hasScannedForEncodings = 0; 253 | knownRegions = ( 254 | English, 255 | en, 256 | Base, 257 | ); 258 | mainGroup = 607FACC71AFB9204008FA782; 259 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 260 | projectDirPath = ""; 261 | projectRoot = ""; 262 | targets = ( 263 | 607FACCF1AFB9204008FA782 /* ZSYMaskView_Example */, 264 | 607FACE41AFB9204008FA782 /* ZSYMaskView_Tests */, 265 | ); 266 | }; 267 | /* End PBXProject section */ 268 | 269 | /* Begin PBXResourcesBuildPhase section */ 270 | 607FACCE1AFB9204008FA782 /* Resources */ = { 271 | isa = PBXResourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 275 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 276 | 3B95E8D524BFF98B009EEC43 /* CustomCellView.xib in Resources */, 277 | 3B95E8D124BFF8EA009EEC43 /* CustomTableViewCell.xib in Resources */, 278 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | 607FACE31AFB9204008FA782 /* Resources */ = { 283 | isa = PBXResourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | }; 289 | /* End PBXResourcesBuildPhase section */ 290 | 291 | /* Begin PBXShellScriptBuildPhase section */ 292 | 5A6565F8DFA81D5EC3593A8F /* [CP] Check Pods Manifest.lock */ = { 293 | isa = PBXShellScriptBuildPhase; 294 | buildActionMask = 2147483647; 295 | files = ( 296 | ); 297 | inputFileListPaths = ( 298 | ); 299 | inputPaths = ( 300 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 301 | "${PODS_ROOT}/Manifest.lock", 302 | ); 303 | name = "[CP] Check Pods Manifest.lock"; 304 | outputFileListPaths = ( 305 | ); 306 | outputPaths = ( 307 | "$(DERIVED_FILE_DIR)/Pods-ZSYMaskView_Example-checkManifestLockResult.txt", 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | shellPath = /bin/sh; 311 | 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"; 312 | showEnvVarsInLog = 0; 313 | }; 314 | 76B1628EDB5558948B56DA7F /* [CP] Check Pods Manifest.lock */ = { 315 | isa = PBXShellScriptBuildPhase; 316 | buildActionMask = 2147483647; 317 | files = ( 318 | ); 319 | inputFileListPaths = ( 320 | ); 321 | inputPaths = ( 322 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 323 | "${PODS_ROOT}/Manifest.lock", 324 | ); 325 | name = "[CP] Check Pods Manifest.lock"; 326 | outputFileListPaths = ( 327 | ); 328 | outputPaths = ( 329 | "$(DERIVED_FILE_DIR)/Pods-ZSYMaskView_Tests-checkManifestLockResult.txt", 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | shellPath = /bin/sh; 333 | 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"; 334 | showEnvVarsInLog = 0; 335 | }; 336 | F8DA5D7AB578DA87F5D2F6F0 /* [CP] Embed Pods Frameworks */ = { 337 | isa = PBXShellScriptBuildPhase; 338 | buildActionMask = 2147483647; 339 | files = ( 340 | ); 341 | inputPaths = ( 342 | "${PODS_ROOT}/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-frameworks.sh", 343 | "${BUILT_PRODUCTS_DIR}/ZSYMaskView/ZSYMaskView.framework", 344 | ); 345 | name = "[CP] Embed Pods Frameworks"; 346 | outputPaths = ( 347 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ZSYMaskView.framework", 348 | ); 349 | runOnlyForDeploymentPostprocessing = 0; 350 | shellPath = /bin/sh; 351 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ZSYMaskView_Example/Pods-ZSYMaskView_Example-frameworks.sh\"\n"; 352 | showEnvVarsInLog = 0; 353 | }; 354 | /* End PBXShellScriptBuildPhase section */ 355 | 356 | /* Begin PBXSourcesBuildPhase section */ 357 | 607FACCC1AFB9204008FA782 /* Sources */ = { 358 | isa = PBXSourcesBuildPhase; 359 | buildActionMask = 2147483647; 360 | files = ( 361 | 3BDB892F24C14DF700DFCE34 /* ZSYTableViewController.swift in Sources */, 362 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 363 | 3BDB893124C154C600DFCE34 /* ZSYStaticViewController.swift in Sources */, 364 | 3BDB892D24C14C6100DFCE34 /* ZSYScrollViewController.swift in Sources */, 365 | 3B95E8D024BFF8EA009EEC43 /* CustomTableViewCell.swift in Sources */, 366 | 3B95E8D324BFF97F009EEC43 /* CustomCellView.swift in Sources */, 367 | 3BDB893324C1584F00DFCE34 /* MaskForStaticViewController.swift in Sources */, 368 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 369 | ); 370 | runOnlyForDeploymentPostprocessing = 0; 371 | }; 372 | 607FACE11AFB9204008FA782 /* Sources */ = { 373 | isa = PBXSourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | }; 380 | /* End PBXSourcesBuildPhase section */ 381 | 382 | /* Begin PBXTargetDependency section */ 383 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 384 | isa = PBXTargetDependency; 385 | target = 607FACCF1AFB9204008FA782 /* ZSYMaskView_Example */; 386 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 387 | }; 388 | /* End PBXTargetDependency section */ 389 | 390 | /* Begin PBXVariantGroup section */ 391 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 392 | isa = PBXVariantGroup; 393 | children = ( 394 | 607FACDA1AFB9204008FA782 /* Base */, 395 | ); 396 | name = Main.storyboard; 397 | sourceTree = ""; 398 | }; 399 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 400 | isa = PBXVariantGroup; 401 | children = ( 402 | 607FACDF1AFB9204008FA782 /* Base */, 403 | ); 404 | name = LaunchScreen.xib; 405 | sourceTree = ""; 406 | }; 407 | /* End PBXVariantGroup section */ 408 | 409 | /* Begin XCBuildConfiguration section */ 410 | 607FACED1AFB9204008FA782 /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | buildSettings = { 413 | ALWAYS_SEARCH_USER_PATHS = NO; 414 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 415 | CLANG_CXX_LIBRARY = "libc++"; 416 | CLANG_ENABLE_MODULES = YES; 417 | CLANG_ENABLE_OBJC_ARC = YES; 418 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 419 | CLANG_WARN_BOOL_CONVERSION = YES; 420 | CLANG_WARN_COMMA = YES; 421 | CLANG_WARN_CONSTANT_CONVERSION = YES; 422 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 423 | CLANG_WARN_EMPTY_BODY = YES; 424 | CLANG_WARN_ENUM_CONVERSION = YES; 425 | CLANG_WARN_INFINITE_RECURSION = YES; 426 | CLANG_WARN_INT_CONVERSION = YES; 427 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 428 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 429 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 430 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 431 | CLANG_WARN_STRICT_PROTOTYPES = YES; 432 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 433 | CLANG_WARN_UNREACHABLE_CODE = YES; 434 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 435 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 436 | COPY_PHASE_STRIP = NO; 437 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 438 | ENABLE_STRICT_OBJC_MSGSEND = YES; 439 | ENABLE_TESTABILITY = YES; 440 | GCC_C_LANGUAGE_STANDARD = gnu99; 441 | GCC_DYNAMIC_NO_PIC = NO; 442 | GCC_NO_COMMON_BLOCKS = YES; 443 | GCC_OPTIMIZATION_LEVEL = 0; 444 | GCC_PREPROCESSOR_DEFINITIONS = ( 445 | "DEBUG=1", 446 | "$(inherited)", 447 | ); 448 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 451 | GCC_WARN_UNDECLARED_SELECTOR = YES; 452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 453 | GCC_WARN_UNUSED_FUNCTION = YES; 454 | GCC_WARN_UNUSED_VARIABLE = YES; 455 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 456 | MTL_ENABLE_DEBUG_INFO = YES; 457 | ONLY_ACTIVE_ARCH = YES; 458 | SDKROOT = iphoneos; 459 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 460 | }; 461 | name = Debug; 462 | }; 463 | 607FACEE1AFB9204008FA782 /* Release */ = { 464 | isa = XCBuildConfiguration; 465 | buildSettings = { 466 | ALWAYS_SEARCH_USER_PATHS = NO; 467 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 468 | CLANG_CXX_LIBRARY = "libc++"; 469 | CLANG_ENABLE_MODULES = YES; 470 | CLANG_ENABLE_OBJC_ARC = YES; 471 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 472 | CLANG_WARN_BOOL_CONVERSION = YES; 473 | CLANG_WARN_COMMA = YES; 474 | CLANG_WARN_CONSTANT_CONVERSION = YES; 475 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 476 | CLANG_WARN_EMPTY_BODY = YES; 477 | CLANG_WARN_ENUM_CONVERSION = YES; 478 | CLANG_WARN_INFINITE_RECURSION = YES; 479 | CLANG_WARN_INT_CONVERSION = YES; 480 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 481 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 482 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 483 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 484 | CLANG_WARN_STRICT_PROTOTYPES = YES; 485 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 486 | CLANG_WARN_UNREACHABLE_CODE = YES; 487 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 488 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 489 | COPY_PHASE_STRIP = NO; 490 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 491 | ENABLE_NS_ASSERTIONS = NO; 492 | ENABLE_STRICT_OBJC_MSGSEND = YES; 493 | GCC_C_LANGUAGE_STANDARD = gnu99; 494 | GCC_NO_COMMON_BLOCKS = YES; 495 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 496 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 497 | GCC_WARN_UNDECLARED_SELECTOR = YES; 498 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 499 | GCC_WARN_UNUSED_FUNCTION = YES; 500 | GCC_WARN_UNUSED_VARIABLE = YES; 501 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 502 | MTL_ENABLE_DEBUG_INFO = NO; 503 | SDKROOT = iphoneos; 504 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 505 | VALIDATE_PRODUCT = YES; 506 | }; 507 | name = Release; 508 | }; 509 | 607FACF01AFB9204008FA782 /* Debug */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 180FD65F776FF406102E4906 /* Pods-ZSYMaskView_Example.debug.xcconfig */; 512 | buildSettings = { 513 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 514 | DEVELOPMENT_TEAM = 5B974QYD5M; 515 | INFOPLIST_FILE = ZSYMaskView/Info.plist; 516 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 518 | MODULE_NAME = ExampleApp; 519 | PRODUCT_BUNDLE_IDENTIFIER = com.zsy.maskview; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 522 | SWIFT_VERSION = 4.0; 523 | }; 524 | name = Debug; 525 | }; 526 | 607FACF11AFB9204008FA782 /* Release */ = { 527 | isa = XCBuildConfiguration; 528 | baseConfigurationReference = BC7E6DCC97D294F8A51E30C8 /* Pods-ZSYMaskView_Example.release.xcconfig */; 529 | buildSettings = { 530 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 531 | DEVELOPMENT_TEAM = 5B974QYD5M; 532 | INFOPLIST_FILE = ZSYMaskView/Info.plist; 533 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 534 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 535 | MODULE_NAME = ExampleApp; 536 | PRODUCT_BUNDLE_IDENTIFIER = com.zsy.maskview; 537 | PRODUCT_NAME = "$(TARGET_NAME)"; 538 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 539 | SWIFT_VERSION = 4.0; 540 | }; 541 | name = Release; 542 | }; 543 | 607FACF31AFB9204008FA782 /* Debug */ = { 544 | isa = XCBuildConfiguration; 545 | baseConfigurationReference = C5E791108BE7BEC0232DFD12 /* Pods-ZSYMaskView_Tests.debug.xcconfig */; 546 | buildSettings = { 547 | FRAMEWORK_SEARCH_PATHS = ( 548 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 549 | "$(inherited)", 550 | ); 551 | GCC_PREPROCESSOR_DEFINITIONS = ( 552 | "DEBUG=1", 553 | "$(inherited)", 554 | ); 555 | INFOPLIST_FILE = Tests/Info.plist; 556 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 557 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 558 | PRODUCT_NAME = "$(TARGET_NAME)"; 559 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 560 | SWIFT_VERSION = 4.0; 561 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZSYMaskView_Example.app/ZSYMaskView_Example"; 562 | }; 563 | name = Debug; 564 | }; 565 | 607FACF41AFB9204008FA782 /* Release */ = { 566 | isa = XCBuildConfiguration; 567 | baseConfigurationReference = C2FD58E94B0DA1331E2AD724 /* Pods-ZSYMaskView_Tests.release.xcconfig */; 568 | buildSettings = { 569 | FRAMEWORK_SEARCH_PATHS = ( 570 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 571 | "$(inherited)", 572 | ); 573 | INFOPLIST_FILE = Tests/Info.plist; 574 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 575 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 576 | PRODUCT_NAME = "$(TARGET_NAME)"; 577 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 578 | SWIFT_VERSION = 4.0; 579 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZSYMaskView_Example.app/ZSYMaskView_Example"; 580 | }; 581 | name = Release; 582 | }; 583 | /* End XCBuildConfiguration section */ 584 | 585 | /* Begin XCConfigurationList section */ 586 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ZSYMaskView" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | 607FACED1AFB9204008FA782 /* Debug */, 590 | 607FACEE1AFB9204008FA782 /* Release */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZSYMaskView_Example" */ = { 596 | isa = XCConfigurationList; 597 | buildConfigurations = ( 598 | 607FACF01AFB9204008FA782 /* Debug */, 599 | 607FACF11AFB9204008FA782 /* Release */, 600 | ); 601 | defaultConfigurationIsVisible = 0; 602 | defaultConfigurationName = Release; 603 | }; 604 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ZSYMaskView_Tests" */ = { 605 | isa = XCConfigurationList; 606 | buildConfigurations = ( 607 | 607FACF31AFB9204008FA782 /* Debug */, 608 | 607FACF41AFB9204008FA782 /* Release */, 609 | ); 610 | defaultConfigurationIsVisible = 0; 611 | defaultConfigurationName = Release; 612 | }; 613 | /* End XCConfigurationList section */ 614 | }; 615 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 616 | } 617 | -------------------------------------------------------------------------------- /Example/ZSYMaskView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/ZSYMaskView.xcodeproj/xcshareddata/xcschemes/ZSYMaskView-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/ZSYMaskView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ZSYMaskView 4 | // 5 | // Created by Pigpig on 07/09/2020. 6 | // Copyright (c) 2020 zhusongyu1990@163.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 45 | 52 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 285 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/CustomCellView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomCellView.swift 3 | // ZSYMaskView_Example 4 | // 5 | // Created by Pigpig on 2020/7/16. 6 | // Copyright © 2020 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CustomCellView: UIView { 12 | @IBOutlet weak var titleLabel: UILabel! 13 | @IBOutlet weak var contentLabel: UILabel! 14 | 15 | func setup() { 16 | let red = CGFloat.random(in: 0...255) / 255.0 17 | let green = CGFloat.random(in: 0...255) / 255.0 18 | let blue = CGFloat.random(in: 0...255) / 255.0 19 | backgroundColor = UIColor(red: red, green: green, blue: blue, alpha: 1) 20 | } 21 | 22 | override func layoutSubviews() { 23 | super.layoutSubviews() 24 | layoutIfNeeded() 25 | } 26 | 27 | override init(frame: CGRect) { 28 | super.init(frame: frame) 29 | loadViewFromNib() 30 | setup() 31 | } 32 | 33 | required init?(coder aDecoder: NSCoder) { 34 | super.init(coder: aDecoder) 35 | loadViewFromNib() 36 | setup() 37 | } 38 | 39 | fileprivate func loadViewFromNib() { 40 | let bundle = Bundle(for: type(of: self)) 41 | let nibName = String(describing: type(of: self)) 42 | let nib = UINib.init(nibName: nibName, bundle: bundle) 43 | guard let view = nib.instantiate(withOwner: self, options: nil).first as? UIView else { 44 | return 45 | } 46 | insertSubview(view, at: 0) 47 | view.frame = self.bounds 48 | view.autoresizingMask = [.flexibleHeight, .flexibleWidth] 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/CustomCellView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/CustomTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomTableViewCell.swift 3 | // ZSYMaskView_Example 4 | // 5 | // Created by Pigpig on 2020/7/16. 6 | // Copyright © 2020 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CustomTableViewCell: UITableViewCell { 12 | @IBOutlet weak var cellView1: CustomCellView! 13 | @IBOutlet weak var cellView2: CustomCellView! 14 | @IBOutlet weak var cellView3: CustomCellView! 15 | 16 | override func awakeFromNib() { 17 | super.awakeFromNib() 18 | // Initialization code 19 | } 20 | 21 | override func setSelected(_ selected: Bool, animated: Bool) { 22 | super.setSelected(selected, animated: animated) 23 | 24 | // Configure the view for the selected state 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/CustomTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "head.jpg", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/1.imageset/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/Example/ZSYMaskView/Images.xcassets/1.imageset/head.jpg -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "head.jpg", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/2.imageset/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/Example/ZSYMaskView/Images.xcassets/2.imageset/head.jpg -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "timg.jpg", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/3.imageset/timg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/Example/ZSYMaskView/Images.xcassets/3.imageset/timg.jpg -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "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" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/MaskForStaticViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MaskForStaticViewController.swift 3 | // ZSYMaskView_Example 4 | // 5 | // Created by Pigpig on 2020/7/17. 6 | // Copyright © 2020 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ZSYMaskView 11 | 12 | class MaskForStaticViewController: ZSYMaskViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | // Do any additional setup after loading the view. 18 | } 19 | /* 20 | 自定义遮罩层VC,根据自己传入的maskFrame来约束布局, 21 | 放心,如果传的是maskView,库会帮你转成maskFrame,所以此处用maskFrame即可 22 | */ 23 | override func reloadViews(index: Int) { 24 | let frame = maskFrame[index] 25 | if index == 0 { 26 | frame?.enumerated().forEach({ itemIndex, item in 27 | if itemIndex == 0 { 28 | let label = UILabel(frame: CGRect(x: item.origin.x + 20, y: item.origin.y + 210, width: 100, height: 20)) 29 | label.text = "绿色View" 30 | label.textColor = UIColor.green 31 | view.addSubview(label) 32 | } 33 | if itemIndex == 1 { 34 | let label = UILabel(frame: CGRect(x: item.origin.x, y: item.origin.y + 150, width: 100, height: 20)) 35 | label.text = "黄色View" 36 | label.textColor = UIColor.orange 37 | view.addSubview(label) 38 | } 39 | }) 40 | } 41 | 42 | if index == 1 { 43 | view.subviews.forEach { item in 44 | item.removeFromSuperview() 45 | } 46 | frame?.enumerated().forEach({ itemIndex, item in 47 | if itemIndex == 0 { 48 | let label = UILabel(frame: CGRect(x: item.origin.x + 30, y: item.origin.y + 150, width: 100, height: 20)) 49 | label.text = "紫色View" 50 | label.textColor = UIColor.purple 51 | view.addSubview(label) 52 | } 53 | }) 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // MaskDemo 4 | // 5 | // Created by Pigpig on 2020/7/9. 6 | // Copyright © 2020 zsy. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | ///底层VC 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | // Do any additional setup after loading the view. 18 | } 19 | 20 | @IBAction func maskForStatic(_ sender: Any) { 21 | let storyboard = UIStoryboard(name: "Main", bundle: nil) 22 | if let controller = storyboard.instantiateViewController(withIdentifier: "ZSYStaticViewController") as? ZSYStaticViewController { 23 | self.navigationController?.show(controller, sender: nil) 24 | } 25 | } 26 | 27 | @IBAction func maskForScroll(_ sender: Any) { 28 | let storyboard = UIStoryboard(name: "Main", bundle: nil) 29 | if let controller = storyboard.instantiateViewController(withIdentifier: "ZSYScrollViewController") as? ZSYScrollViewController { 30 | self.navigationController?.show(controller, sender: nil) 31 | } 32 | } 33 | 34 | @IBAction func maskForTable(_ sender: Any) { 35 | let storyboard = UIStoryboard(name: "Main", bundle: nil) 36 | if let controller = storyboard.instantiateViewController(withIdentifier: "ZSYTableViewController") as? ZSYTableViewController { 37 | self.navigationController?.show(controller, sender: nil) 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/ZSYScrollViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MaskForScrollViewController.swift 3 | // ZSYMaskView_Example 4 | // 5 | // Created by Pigpig on 2020/7/17. 6 | // Copyright © 2020 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ZSYMaskView 11 | 12 | class ZSYScrollViewController: UIViewController { 13 | 14 | @IBOutlet weak var scrollView: UIScrollView! 15 | @IBOutlet weak var greenView: UIView! 16 | @IBOutlet weak var yellowView: UIView! 17 | @IBOutlet weak var blueView: UIView! 18 | 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | 22 | let vc = ZSYMaskViewController() 23 | vc.maskView = [0: [greenView], 1: [blueView], 2: [yellowView]] 24 | vc.scrollView = scrollView 25 | present(vc, animated: true, completion: nil) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/ZSYStaticViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MaskForStaticViewController.swift 3 | // ZSYMaskView_Example 4 | // 5 | // Created by Pigpig on 2020/7/17. 6 | // Copyright © 2020 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ZSYStaticViewController: UIViewController { 12 | @IBOutlet weak var greenView: UIView! 13 | @IBOutlet weak var blueView: UIView! 14 | @IBOutlet weak var orangeView: UIView! 15 | @IBOutlet weak var purpleView: UIView! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | let vc = MaskForStaticViewController() 21 | vc.maskView = [0: [greenView, orangeView], 1: [purpleView]] 22 | present(vc, animated: true, completion: nil) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Example/ZSYMaskView/ZSYTableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MaskForTableViewController.swift 3 | // ZSYMaskView_Example 4 | // 5 | // Created by Pigpig on 2020/7/17. 6 | // Copyright © 2020 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ZSYMaskView 11 | 12 | class ZSYTableViewController: UIViewController { 13 | 14 | @IBOutlet weak var tableView: UITableView! 15 | 16 | let array: [String] = ["line1", "line2", "line3", "line4", "line5", "line6", "line7", "line8", "line9", "line10"] 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | 21 | view.backgroundColor = UIColor.orange 22 | 23 | tableView.rowHeight = 100 24 | let nibName = String.init(describing: CustomTableViewCell.self) 25 | self.tableView.register(UINib.init(nibName: nibName, bundle: nil), forCellReuseIdentifier: nibName) 26 | 27 | // Do any additional setup after loading the view. 28 | } 29 | 30 | @IBAction func sendFrameButtonClick(_ sender: UIButton) { 31 | let vc = ZSYMaskViewController() 32 | let cell1 = tableView.cellForRow(at: IndexPath(row: 1, section: 0)) 33 | let frame1 = view.convert(cell1!.frame, from: cell1!.superview) 34 | let cell2 = self.tableView.cellForRow(at: IndexPath(row: 4, section: 0)) as! CustomTableViewCell 35 | let frame2 = view.convert(cell2.cellView1.frame, from: cell2.cellView1.superview) 36 | vc.maskFrame = [0: [sender.frame, frame1], 1: [frame2]] 37 | present(vc, animated: true, completion: nil) 38 | } 39 | 40 | @IBAction func sendViewButtonClick(_ sender: UIButton) { 41 | let vc = ZSYMaskViewController() 42 | if let cellView = tableView.cellForRow(at: IndexPath(row: 3, section: 0)) as? CustomTableViewCell { 43 | vc.maskView = [0: [sender], 1: [tableView.cellForRow(at: IndexPath(row: 1, section: 0))!], 2: [cellView.cellView2]] 44 | vc.invisibleIndexPath = [3: IndexPath(row: 7, section: 0)] 45 | vc.tableView = tableView 46 | vc.maskInsets = [3: [UIEdgeInsets(top: 0, left: 100, bottom: 0, right: 100)]] 47 | present(vc, animated: true, completion: nil) 48 | } 49 | } 50 | } 51 | 52 | extension ZSYTableViewController: UITableViewDataSource, UITableViewDelegate { 53 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 54 | return array.count 55 | } 56 | 57 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 58 | if array.count <= 0 { 59 | return UITableViewCell() 60 | } 61 | if indexPath.row < 3 { 62 | let cell = UITableViewCell.init(style: UITableViewCell.CellStyle.default, reuseIdentifier: "CellIdentifier") 63 | cell.textLabel?.text = array[indexPath.row] 64 | 65 | return cell 66 | 67 | } 68 | let cell = tableView.dequeueReusableCell(withIdentifier: String.init(describing: CustomTableViewCell.self), for: indexPath) as! CustomTableViewCell 69 | cell.cellView1.titleLabel.text = "title1" 70 | cell.cellView1.contentLabel.text = "content1" 71 | cell.cellView2.titleLabel.text = "title2" 72 | cell.cellView2.contentLabel.text = "content2" 73 | cell.cellView3.titleLabel.text = "title3" 74 | cell.cellView3.contentLabel.text = "content3" 75 | return cell 76 | } 77 | } 78 | 79 | -------------------------------------------------------------------------------- /Example/images/scrollview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/Example/images/scrollview.gif -------------------------------------------------------------------------------- /Example/images/staticview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/Example/images/staticview.gif -------------------------------------------------------------------------------- /Example/images/tableview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/Example/images/tableview.gif -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 zhusongyu1990@163.com 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ZSYMaskView 2 | [![Build Status](https://travis-ci.org/zhusongyu/ZSYMaskView.svg?branch=master)](https://travis-ci.org/zhusongyu/ZSYMaskView) 3 | [![Version](https://img.shields.io/cocoapods/v/ZSYMaskView.svg?style=flat)](https://cocoapods.org/pods/ZSYMaskView) 4 | [![License](https://img.shields.io/cocoapods/l/ZSYMaskView.svg?style=flat)](https://cocoapods.org/pods/ZSYMaskView) 5 | [![Platform](https://img.shields.io/cocoapods/p/ZSYMaskView.svg?style=flat)](https://cocoapods.org/pods/ZSYMaskView) 6 | 7 | 一个自定义程度极高的遮罩引导页。 8 | 9 | 10 | ## 示例 11 | 12 | ### 静态页面 13 | ![Demo~](https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/master/Example/images/staticview.gif) 14 | 15 | 静态页面如何使用,传View即可 16 | ```swift 17 | import UIKit 18 | 19 | class ZSYStaticViewController: UIViewController { 20 | @IBOutlet weak var greenView: UIView! 21 | @IBOutlet weak var blueView: UIView! 22 | @IBOutlet weak var orangeView: UIView! 23 | @IBOutlet weak var purpleView: UIView! 24 | 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | 28 | let vc = MaskForStaticViewController() 29 | vc.maskView = [0: [greenView, orangeView], 1: [purpleView]] 30 | present(vc, animated: true, completion: nil) 31 | } 32 | } 33 | 34 | ``` 35 | 36 | ### UIScrollView 37 | ![Demo~](https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/master/Example/images/scrollview.gif) 38 | 39 | ScrollView如何使用,传View的同时,把ScrollView也传过去。这样如果需要遮罩的View在屏幕以外也不用担心啦,因为库已经帮你做好啦 40 | ```swift 41 | import UIKit 42 | import ZSYMaskView 43 | 44 | class ZSYScrollViewController: UIViewController { 45 | 46 | @IBOutlet weak var scrollView: UIScrollView! 47 | @IBOutlet weak var greenView: UIView! 48 | @IBOutlet weak var yellowView: UIView! 49 | @IBOutlet weak var blueView: UIView! 50 | 51 | override func viewDidLoad() { 52 | super.viewDidLoad() 53 | 54 | let vc = ZSYMaskViewController() 55 | vc.maskView = [0: [greenView], 1: [blueView], 2: [yellowView]] 56 | vc.scrollView = scrollView 57 | present(vc, animated: true, completion: nil) 58 | } 59 | } 60 | 61 | ``` 62 | 63 | ### UITableView 64 | ![Demo~](https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/master/Example/images/tableview.gif) 65 | 66 | TableView如何使用,传View的同时,还需要传TableView、invisibleIndexPath(不可见的IndexPath,即还未渲染出来,你还不能拿到的Cell的IndexPath), 67 | ```swift 68 | let vc = ZSYMaskViewController() 69 | if let cellView = tableView.cellForRow(at: IndexPath(row: 3, section: 0)) as? CustomTableViewCell { 70 | vc.maskView = [0: [sender], 1: [tableView.cellForRow(at: IndexPath(row: 1, section: 0))!], 2: [cellView.cellView2]] 71 | vc.invisibleIndexPath = [3: IndexPath(row: 7, section: 0)] 72 | vc.tableView = tableView 73 | vc.maskInsets = [3: [UIEdgeInsets(top: 0, left: 100, bottom: 0, right: 100)]] 74 | present(vc, animated: true, completion: nil) 75 | } 76 | 77 | ``` 78 | 79 | ## Example 80 | 81 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 82 | 83 | ## Usage 84 | 85 | ### Swift 86 | 87 | 自定义遮罩层VC,继承于ZSYMaskViewController,重写reloadViews(index: Int),来刷新遮罩层,根据传入的index来判断当前进行到遮罩第几步。 88 | ```swift 89 | import ZSYMaskView 90 | 91 | class MaskForStaticViewController: ZSYMaskViewController { 92 | 93 | override func viewDidLoad() { 94 | super.viewDidLoad() 95 | 96 | // Do any additional setup after loading the view. 97 | } 98 | /* 99 | 自定义遮罩层VC,根据自己传入的maskFrame来约束布局, 100 | 放心,如果传的是maskView,库会帮你转成maskFrame,所以此处用maskFrame即可 101 | */ 102 | override func reloadViews(index: Int) { 103 | let frame = maskFrame[index] 104 | if index == 0 { 105 | frame?.enumerated().forEach({ itemIndex, item in 106 | if itemIndex == 0 { 107 | let label = UILabel(frame: CGRect(x: item.origin.x + 20, y: item.origin.y + 210, width: 100, height: 20)) 108 | label.text = "绿色View" 109 | label.textColor = UIColor.green 110 | view.addSubview(label) 111 | } 112 | if itemIndex == 1 { 113 | let label = UILabel(frame: CGRect(x: item.origin.x, y: item.origin.y + 150, width: 100, height: 20)) 114 | label.text = "黄色View" 115 | label.textColor = UIColor.orange 116 | view.addSubview(label) 117 | } 118 | }) 119 | } 120 | 121 | if index == 1 { 122 | view.subviews.forEach { item in 123 | item.removeFromSuperview() 124 | } 125 | frame?.enumerated().forEach({ itemIndex, item in 126 | if itemIndex == 0 { 127 | let label = UILabel(frame: CGRect(x: item.origin.x + 30, y: item.origin.y + 150, width: 100, height: 20)) 128 | label.text = "紫色View" 129 | label.textColor = UIColor.purple 130 | view.addSubview(label) 131 | } 132 | }) 133 | } 134 | } 135 | } 136 | 137 | 138 | ``` 139 | 140 | ## Requirements 141 | 142 | This library requires `iOS 8.0+` 143 | 144 | ## Installation 145 | 146 | ZSYMaskView is available through [CocoaPods](https://cocoapods.org). To install 147 | it, simply add the following line to your Podfile: 148 | 149 | ```ruby 150 | pod 'ZSYMaskView' 151 | ``` 152 | 153 | ## Author 154 | 155 | ZSY, zhusongyu1990@163.com 156 | 157 | ## License 158 | 159 | ZSYMaskView is available under the MIT license. See the LICENSE file for more info. -------------------------------------------------------------------------------- /ZSYMaskView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ZSYMaskView.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'ZSYMaskView' 11 | s.version = '0.0.5' 12 | s.summary = '可以自定义的MaskView.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = '自定义程度极高的遮罩层,可用于App引导带遮罩效果的设计,不但支持静态页面,而且支持ScrollView、TableView。' 21 | 22 | s.homepage = 'https://github.com/zhusongyu/ZSYMaskView' 23 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 24 | s.license = { :type => 'MIT', :file => 'LICENSE' } 25 | s.author = { 'zhusongyu1990@163.com' => 'zhusongyu1990@163.com' } 26 | s.source = { :git => 'https://github.com/zhusongyu/ZSYMaskView.git', :tag => s.version.to_s } 27 | # s.social_media_url = 'https://twitter.com/' 28 | 29 | s.ios.deployment_target = '8.0' 30 | 31 | s.source_files = 'ZSYMaskView/Classes/**/*' 32 | 33 | s.swift_version = '4' 34 | # s.resource_bundles = { 35 | # 'ZSYMaskView' => ['ZSYMaskView/Assets/*.png'] 36 | # } 37 | 38 | # s.public_header_files = 'Pod/Classes/**/*.h' 39 | # s.frameworks = 'UIKit', 'MapKit' 40 | # s.dependency 'AFNetworking', '~> 2.3' 41 | end 42 | -------------------------------------------------------------------------------- /ZSYMaskView/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/ZSYMaskView/Assets/.gitkeep -------------------------------------------------------------------------------- /ZSYMaskView/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhusongyu/ZSYMaskView/343c12aab2dcd6fe37bb4ea9f54409b12b0c65a6/ZSYMaskView/Classes/.gitkeep -------------------------------------------------------------------------------- /ZSYMaskView/Classes/ZSYMaskViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestViewController.swift 3 | // MaskDemo 4 | // 5 | // Created by Pigpig on 2020/7/9. 6 | // Copyright © 2020 zsy. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class ZSYMaskViewController: UIViewController, UITableViewDelegate { 12 | 13 | /* 14 | 传Frame的方式,布局遮罩 15 | */ 16 | public var maskFrame: [Int: [CGRect]] = [:] 17 | 18 | /* 19 | 传View的方式,布局遮罩 20 | */ 21 | public var maskView: [Int: [UIView]] = [:] 22 | public var maskColor: UIColor = UIColor(red: 0/255.0, green: 0/255.0, blue: 0/255.0, alpha: 0.5) 23 | public var maskCornerRadius: CGFloat = 0 24 | 25 | @objc public var maskInsets: [Int: [UIEdgeInsets]] = [:] 26 | /* 27 | 点击是否需要dismiss,默认为true 28 | */ 29 | public var touchShouldDismiss: Bool = true 30 | 31 | /* 32 | dismiss的callback 33 | */ 34 | public var dismissCallback: (() -> Void)? 35 | 36 | /* 37 | 点击之后的callback,把当前index回传 38 | */ 39 | public var touchCallback: ((Int) -> Void)? 40 | 41 | /* 42 | 在ScrollView上做遮罩,最好把ScrollView传进来。 43 | 当传进来的View在屏幕之外的时候,库会帮你做滚动处理 44 | */ 45 | public var scrollView: UIScrollView? 46 | 47 | /* 48 | 在TableView上做遮罩,最好把TableView传进来。 49 | 当需要遮罩的View在屏幕之外的时候,库会帮你做滚动处理 50 | */ 51 | public var tableView: UITableView? 52 | 53 | /* 54 | 在TableView上做遮罩,最好把invisibleIndexPath传进来。 55 | 当需要遮罩的View在屏幕之外的时候,把IndexPath传进来 56 | */ 57 | public var invisibleIndexPath: [Int: IndexPath] = [:] 58 | 59 | var path: UIBezierPath! 60 | var shapeLayer = CAShapeLayer() 61 | var index: Int = 0 62 | 63 | open override func viewDidLoad() { 64 | super.viewDidLoad() 65 | view.backgroundColor = maskColor 66 | scrollView?.delegate = self 67 | tableView?.delegate = self 68 | setupMaskFrame() 69 | } 70 | 71 | open func setupMaskFrame() { 72 | if maskView.keys.count > 0 { 73 | maskView.keys.forEach { key in 74 | guard let sourceView = maskView[key] else { return } 75 | var rectArray: [CGRect] = [] 76 | sourceView.forEach { item in 77 | rectArray.append(view.convert(item.frame, from: item.superview)) 78 | } 79 | maskFrame[key] = rectArray 80 | } 81 | } 82 | updatePath() 83 | } 84 | 85 | func setupMaskFrameWithIndex() { 86 | guard let sourceView = maskView[index] else { return } 87 | var rectArray: [CGRect] = [] 88 | sourceView.forEach { item in 89 | rectArray.append(view.convert(item.frame, from: item.superview)) 90 | } 91 | maskFrame[index] = rectArray 92 | updatePath() 93 | } 94 | 95 | open func updatePath() { 96 | if index == 0 { 97 | path = UIBezierPath(rect: CGRect(x: 0, y: 0, width: view.bounds.width, height: view.bounds.height)) 98 | } else { 99 | path.removeAllPoints() 100 | path = UIBezierPath(rect: CGRect(x: 0, y: 0, width: view.bounds.width, height: view.bounds.height)) 101 | } 102 | 103 | guard let frame = maskFrame[index] else { return } 104 | frame.enumerated().forEach { indexFrame, rect in 105 | ///对ScrollView的特殊处理 106 | if let scrollView = scrollView, rect.origin.y + rect.height > view.bounds.height { 107 | scrollView.scrollRectToVisible(rect, animated: true) 108 | } 109 | 110 | ///处理上下左右边距 111 | var newRect = rect 112 | let maskInset = maskInsets[index] 113 | newRect.origin.x += maskInset?[indexFrame].left ?? 0 114 | newRect.origin.y += maskInset?[indexFrame].top ?? 0 115 | newRect.size.width -= (maskInset?[indexFrame].right ?? 0) + (maskInset?[indexFrame].left ?? 0) 116 | newRect.size.height -= (maskInset?[indexFrame].bottom ?? 0) + (maskInset?[indexFrame].top ?? 0) 117 | path.append(UIBezierPath(roundedRect: newRect, cornerRadius: maskCornerRadius).reversing()) 118 | } 119 | 120 | shapeLayer.path = path.cgPath 121 | view.layer.mask = shapeLayer 122 | reloadViews(index: index) 123 | } 124 | 125 | open func reloadViews(index: Int) {} 126 | 127 | 128 | public override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { 129 | super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) 130 | modalPresentationStyle = .custom 131 | modalTransitionStyle = .crossDissolve 132 | } 133 | 134 | public required init?(coder: NSCoder) { 135 | super.init(coder: coder) 136 | } 137 | 138 | public override func touchesBegan(_ touches: Set, with event: UIEvent?) { 139 | if !touchShouldDismiss { 140 | return 141 | } 142 | nextStep() 143 | } 144 | 145 | public func nextStep() { 146 | var numbers = maskFrame.keys.count - 1 147 | if invisibleIndexPath.keys.count > 0 { 148 | var maxKey = 0 149 | invisibleIndexPath.keys.forEach { key in 150 | if key > maxKey { 151 | maxKey = key 152 | } 153 | } 154 | numbers = maxKey 155 | } 156 | 157 | if numbers > self.index { 158 | self.index += 1 159 | ///TableView的特殊处理 160 | if let indexPath = invisibleIndexPath[index], let tempTableView = tableView { 161 | tempTableView.scrollToRow(at: indexPath, at: .middle, animated: true) 162 | } else { 163 | self.updatePath() 164 | } 165 | touchCallback?(index) 166 | return 167 | } 168 | dismissCallback?() 169 | dismiss(animated: true, completion: nil) 170 | } 171 | } 172 | 173 | extension ZSYMaskViewController: UIScrollViewDelegate { 174 | public func scrollViewDidEndScrollingAnimation(_ scrollView: UIScrollView) { 175 | ///对TableView的特殊处理 176 | if let indexPath = invisibleIndexPath[index], let tempTableView = tableView { 177 | maskView[index] = [tempTableView.cellForRow(at: indexPath)!] 178 | } 179 | setupMaskFrameWithIndex() 180 | } 181 | } 182 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------