├── .gitignore ├── Example ├── FBAnnotationClusteringSwift.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── FBAnnotationClusteringSwift.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── FBAnnotationClusteringSwift │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── FBViewController.swift │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ └── Info.plist ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── FBAnnotationClusteringSwift.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── FBAnnotationClusteringSwift │ │ ├── FBAnnotationClusteringSwift-dummy.m │ │ ├── FBAnnotationClusteringSwift-prefix.pch │ │ ├── FBAnnotationClusteringSwift-umbrella.h │ │ ├── FBAnnotationClusteringSwift.modulemap │ │ ├── FBAnnotationClusteringSwift.xcconfig │ │ └── Info.plist │ │ ├── Pods-FBAnnotationClusteringSwift_Example │ │ ├── Info.plist │ │ ├── Pods-FBAnnotationClusteringSwift_Example-acknowledgements.markdown │ │ ├── Pods-FBAnnotationClusteringSwift_Example-acknowledgements.plist │ │ ├── Pods-FBAnnotationClusteringSwift_Example-dummy.m │ │ ├── Pods-FBAnnotationClusteringSwift_Example-frameworks.sh │ │ ├── Pods-FBAnnotationClusteringSwift_Example-resources.sh │ │ ├── Pods-FBAnnotationClusteringSwift_Example-umbrella.h │ │ ├── Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig │ │ ├── Pods-FBAnnotationClusteringSwift_Example.modulemap │ │ └── Pods-FBAnnotationClusteringSwift_Example.release.xcconfig │ │ └── Pods-FBAnnotationClusteringSwift_Tests │ │ ├── Info.plist │ │ ├── Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.markdown │ │ ├── Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.plist │ │ ├── Pods-FBAnnotationClusteringSwift_Tests-dummy.m │ │ ├── Pods-FBAnnotationClusteringSwift_Tests-frameworks.sh │ │ ├── Pods-FBAnnotationClusteringSwift_Tests-resources.sh │ │ ├── Pods-FBAnnotationClusteringSwift_Tests-umbrella.h │ │ ├── Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig │ │ ├── Pods-FBAnnotationClusteringSwift_Tests.modulemap │ │ └── Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── FBAnnotationClusteringSwift.podspec ├── GitHubImages └── simulatorShot.png ├── LICENSE ├── Pod └── Classes │ ├── FBAnnotation.swift │ ├── FBAnnotationCluster.swift │ ├── FBAnnotationClusterTemplate.swift │ ├── FBAnnotationClusterView.swift │ ├── FBAnnotationClusterViewConfiguration.swift │ ├── FBBoundingBox+MapKit.swift │ ├── FBBoundingBox.swift │ ├── FBClusteringManager.swift │ ├── FBQuadTree.swift │ ├── FBQuadTreeNode.swift │ └── FBZoomLevel.swift ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | 28 | ## Playgrounds 29 | timeline.xctimeline 30 | playground.xcworkspace 31 | 32 | # Swift Package Manager 33 | # 34 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 35 | # Packages/ 36 | .build/ 37 | 38 | # CocoaPods 39 | # 40 | # We recommend against adding the Pods directory to your .gitignore. However 41 | # you should judge for yourself, the pros and cons are mentioned at: 42 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 43 | # 44 | # Pods/ 45 | 46 | # Carthage 47 | # 48 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 49 | # Carthage/Checkouts 50 | Carthage/Build 51 | 52 | # fastlane 53 | # 54 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 55 | # screenshots whenever they are needed. 56 | # For more information about the recommended setup visit: 57 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 58 | 59 | fastlane/report.xml 60 | fastlane/Preview.html 61 | fastlane/screenshots 62 | fastlane/test_output 63 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 11 | 850D2922DCE040C383968E2F /* Pods_FBAnnotationClusteringSwift_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BB131D383988B616E6AA6ADE /* Pods_FBAnnotationClusteringSwift_Example.framework */; }; 12 | 9519C485A895A533E95F2F2B /* Pods_FBAnnotationClusteringSwift_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B2FD976775CA013C1C43D43 /* Pods_FBAnnotationClusteringSwift_Tests.framework */; }; 13 | FE07C7E91C6E42EE00B219A5 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FE07C7E81C6E42EE00B219A5 /* Images.xcassets */; }; 14 | FE1225931C6E312200A5E91D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE1225901C6E312200A5E91D /* AppDelegate.swift */; }; 15 | FE1225941C6E312200A5E91D /* FBViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE1225911C6E312200A5E91D /* FBViewController.swift */; }; 16 | FE12259A1C6E313400A5E91D /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = FE1225961C6E313400A5E91D /* LaunchScreen.xib */; }; 17 | FE12259B1C6E313400A5E91D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FE1225981C6E313400A5E91D /* Main.storyboard */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = FBAnnotationClusteringSwift; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 19057509F538F5BE8B2B14F5 /* Pods-FBAnnotationClusteringSwift_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FBAnnotationClusteringSwift_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example.release.xcconfig"; sourceTree = ""; }; 32 | 4B03574C78E2310938916D21 /* Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig"; sourceTree = ""; }; 33 | 5DDEB7EA347330812AE0DF89 /* Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig"; sourceTree = ""; }; 34 | 607FACD01AFB9204008FA782 /* FBAnnotationClusteringSwift_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FBAnnotationClusteringSwift_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 607FACE51AFB9204008FA782 /* FBAnnotationClusteringSwift_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FBAnnotationClusteringSwift_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 39 | 7B2FD976775CA013C1C43D43 /* Pods_FBAnnotationClusteringSwift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FBAnnotationClusteringSwift_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 7F27E8C19C5A405B5072D1D0 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 41 | 8BFE2416CCF84B3F2AFDD15B /* FBAnnotationClusteringSwift.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = FBAnnotationClusteringSwift.podspec; path = ../FBAnnotationClusteringSwift.podspec; sourceTree = ""; }; 42 | 9FA0BD969C7743DC2F85985B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 43 | BB131D383988B616E6AA6ADE /* Pods_FBAnnotationClusteringSwift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FBAnnotationClusteringSwift_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | CF5782C06A82B91E9032DB1B /* Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig"; sourceTree = ""; }; 45 | FE07C7E81C6E42EE00B219A5 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 46 | FE1225901C6E312200A5E91D /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 47 | FE1225911C6E312200A5E91D /* FBViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FBViewController.swift; sourceTree = ""; }; 48 | FE1225971C6E313400A5E91D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 49 | FE1225991C6E313400A5E91D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 850D2922DCE040C383968E2F /* Pods_FBAnnotationClusteringSwift_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 9519C485A895A533E95F2F2B /* Pods_FBAnnotationClusteringSwift_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 607FACC71AFB9204008FA782 = { 73 | isa = PBXGroup; 74 | children = ( 75 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 76 | 607FACD21AFB9204008FA782 /* Example for FBAnnotationClusteringSwift */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | F714F91127D463A17DBF9699 /* Pods */, 80 | A7A81413511ACDBE656A98B8 /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* FBAnnotationClusteringSwift_Example.app */, 88 | 607FACE51AFB9204008FA782 /* FBAnnotationClusteringSwift_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for FBAnnotationClusteringSwift */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | FE07C7E81C6E42EE00B219A5 /* Images.xcassets */, 97 | FE1225961C6E313400A5E91D /* LaunchScreen.xib */, 98 | FE1225981C6E313400A5E91D /* Main.storyboard */, 99 | FE1225901C6E312200A5E91D /* AppDelegate.swift */, 100 | FE1225911C6E312200A5E91D /* FBViewController.swift */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for FBAnnotationClusteringSwift"; 104 | path = FBAnnotationClusteringSwift; 105 | sourceTree = ""; 106 | }; 107 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD41AFB9204008FA782 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 607FACE81AFB9204008FA782 /* Tests */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 119 | 607FACE91AFB9204008FA782 /* Supporting Files */, 120 | ); 121 | path = Tests; 122 | sourceTree = ""; 123 | }; 124 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEA1AFB9204008FA782 /* Info.plist */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 8BFE2416CCF84B3F2AFDD15B /* FBAnnotationClusteringSwift.podspec */, 136 | 9FA0BD969C7743DC2F85985B /* README.md */, 137 | 7F27E8C19C5A405B5072D1D0 /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | A7A81413511ACDBE656A98B8 /* Frameworks */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | BB131D383988B616E6AA6ADE /* Pods_FBAnnotationClusteringSwift_Example.framework */, 146 | 7B2FD976775CA013C1C43D43 /* Pods_FBAnnotationClusteringSwift_Tests.framework */, 147 | ); 148 | name = Frameworks; 149 | sourceTree = ""; 150 | }; 151 | F714F91127D463A17DBF9699 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 5DDEB7EA347330812AE0DF89 /* Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig */, 155 | 19057509F538F5BE8B2B14F5 /* Pods-FBAnnotationClusteringSwift_Example.release.xcconfig */, 156 | CF5782C06A82B91E9032DB1B /* Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig */, 157 | 4B03574C78E2310938916D21 /* Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* FBAnnotationClusteringSwift_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "FBAnnotationClusteringSwift_Example" */; 168 | buildPhases = ( 169 | E8AE06806BE7FD0D3826DDCB /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 3ED4C66F0D00D409A52C0A49 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = FBAnnotationClusteringSwift_Example; 180 | productName = FBAnnotationClusteringSwift; 181 | productReference = 607FACD01AFB9204008FA782 /* FBAnnotationClusteringSwift_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* FBAnnotationClusteringSwift_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "FBAnnotationClusteringSwift_Tests" */; 187 | buildPhases = ( 188 | 04A44C30379F8D23EA405A18 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | 285069E224E2E80AD1340A0A /* [CP] Embed Pods Frameworks */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 198 | ); 199 | name = FBAnnotationClusteringSwift_Tests; 200 | productName = Tests; 201 | productReference = 607FACE51AFB9204008FA782 /* FBAnnotationClusteringSwift_Tests.xctest */; 202 | productType = "com.apple.product-type.bundle.unit-test"; 203 | }; 204 | /* End PBXNativeTarget section */ 205 | 206 | /* Begin PBXProject section */ 207 | 607FACC81AFB9204008FA782 /* Project object */ = { 208 | isa = PBXProject; 209 | attributes = { 210 | LastSwiftUpdateCheck = 0720; 211 | LastUpgradeCheck = 1010; 212 | ORGANIZATIONNAME = CocoaPods; 213 | TargetAttributes = { 214 | 607FACCF1AFB9204008FA782 = { 215 | CreatedOnToolsVersion = 6.3.1; 216 | LastSwiftMigration = 0800; 217 | }; 218 | 607FACE41AFB9204008FA782 = { 219 | CreatedOnToolsVersion = 6.3.1; 220 | LastSwiftMigration = 0800; 221 | TestTargetID = 607FACCF1AFB9204008FA782; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "FBAnnotationClusteringSwift" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = English; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* FBAnnotationClusteringSwift_Example */, 239 | 607FACE41AFB9204008FA782 /* FBAnnotationClusteringSwift_Tests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 607FACCE1AFB9204008FA782 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | FE07C7E91C6E42EE00B219A5 /* Images.xcassets in Resources */, 250 | FE12259B1C6E313400A5E91D /* Main.storyboard in Resources */, 251 | FE12259A1C6E313400A5E91D /* LaunchScreen.xib in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 607FACE31AFB9204008FA782 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXShellScriptBuildPhase section */ 265 | 04A44C30379F8D23EA405A18 /* [CP] Check Pods Manifest.lock */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputFileListPaths = ( 271 | ); 272 | inputPaths = ( 273 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 274 | "${PODS_ROOT}/Manifest.lock", 275 | ); 276 | name = "[CP] Check Pods Manifest.lock"; 277 | outputFileListPaths = ( 278 | ); 279 | outputPaths = ( 280 | "$(DERIVED_FILE_DIR)/Pods-FBAnnotationClusteringSwift_Tests-checkManifestLockResult.txt", 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | shellPath = /bin/sh; 284 | 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"; 285 | showEnvVarsInLog = 0; 286 | }; 287 | 285069E224E2E80AD1340A0A /* [CP] Embed Pods Frameworks */ = { 288 | isa = PBXShellScriptBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | ); 292 | inputFileListPaths = ( 293 | ); 294 | inputPaths = ( 295 | "${SRCROOT}/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests-frameworks.sh", 296 | "${BUILT_PRODUCTS_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework", 297 | ); 298 | name = "[CP] Embed Pods Frameworks"; 299 | outputFileListPaths = ( 300 | ); 301 | outputPaths = ( 302 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBAnnotationClusteringSwift.framework", 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | shellPath = /bin/sh; 306 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests-frameworks.sh\"\n"; 307 | showEnvVarsInLog = 0; 308 | }; 309 | 3ED4C66F0D00D409A52C0A49 /* [CP] Embed Pods Frameworks */ = { 310 | isa = PBXShellScriptBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | ); 314 | inputPaths = ( 315 | "${SRCROOT}/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example-frameworks.sh", 316 | "${BUILT_PRODUCTS_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework", 317 | ); 318 | name = "[CP] Embed Pods Frameworks"; 319 | outputPaths = ( 320 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBAnnotationClusteringSwift.framework", 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example-frameworks.sh\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | E8AE06806BE7FD0D3826DDCB /* [CP] Check Pods Manifest.lock */ = { 328 | isa = PBXShellScriptBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | inputPaths = ( 333 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 334 | "${PODS_ROOT}/Manifest.lock", 335 | ); 336 | name = "[CP] Check Pods Manifest.lock"; 337 | outputPaths = ( 338 | "$(DERIVED_FILE_DIR)/Pods-FBAnnotationClusteringSwift_Example-checkManifestLockResult.txt", 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | shellPath = /bin/sh; 342 | 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"; 343 | showEnvVarsInLog = 0; 344 | }; 345 | /* End PBXShellScriptBuildPhase section */ 346 | 347 | /* Begin PBXSourcesBuildPhase section */ 348 | 607FACCC1AFB9204008FA782 /* Sources */ = { 349 | isa = PBXSourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | FE1225941C6E312200A5E91D /* FBViewController.swift in Sources */, 353 | FE1225931C6E312200A5E91D /* AppDelegate.swift in Sources */, 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | }; 357 | 607FACE11AFB9204008FA782 /* Sources */ = { 358 | isa = PBXSourcesBuildPhase; 359 | buildActionMask = 2147483647; 360 | files = ( 361 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 362 | ); 363 | runOnlyForDeploymentPostprocessing = 0; 364 | }; 365 | /* End PBXSourcesBuildPhase section */ 366 | 367 | /* Begin PBXTargetDependency section */ 368 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 369 | isa = PBXTargetDependency; 370 | target = 607FACCF1AFB9204008FA782 /* FBAnnotationClusteringSwift_Example */; 371 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 372 | }; 373 | /* End PBXTargetDependency section */ 374 | 375 | /* Begin PBXVariantGroup section */ 376 | FE1225961C6E313400A5E91D /* LaunchScreen.xib */ = { 377 | isa = PBXVariantGroup; 378 | children = ( 379 | FE1225971C6E313400A5E91D /* Base */, 380 | ); 381 | name = LaunchScreen.xib; 382 | sourceTree = ""; 383 | }; 384 | FE1225981C6E313400A5E91D /* Main.storyboard */ = { 385 | isa = PBXVariantGroup; 386 | children = ( 387 | FE1225991C6E313400A5E91D /* Base */, 388 | ); 389 | name = Main.storyboard; 390 | sourceTree = ""; 391 | }; 392 | /* End PBXVariantGroup section */ 393 | 394 | /* Begin XCBuildConfiguration section */ 395 | 607FACED1AFB9204008FA782 /* Debug */ = { 396 | isa = XCBuildConfiguration; 397 | buildSettings = { 398 | ALWAYS_SEARCH_USER_PATHS = NO; 399 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 400 | CLANG_CXX_LIBRARY = "libc++"; 401 | CLANG_ENABLE_MODULES = YES; 402 | CLANG_ENABLE_OBJC_ARC = YES; 403 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 404 | CLANG_WARN_BOOL_CONVERSION = YES; 405 | CLANG_WARN_COMMA = YES; 406 | CLANG_WARN_CONSTANT_CONVERSION = YES; 407 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 408 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 409 | CLANG_WARN_EMPTY_BODY = YES; 410 | CLANG_WARN_ENUM_CONVERSION = YES; 411 | CLANG_WARN_INFINITE_RECURSION = YES; 412 | CLANG_WARN_INT_CONVERSION = YES; 413 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 414 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 415 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 416 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 417 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 418 | CLANG_WARN_STRICT_PROTOTYPES = YES; 419 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 420 | CLANG_WARN_UNREACHABLE_CODE = YES; 421 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 423 | COPY_PHASE_STRIP = NO; 424 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | ENABLE_TESTABILITY = YES; 427 | GCC_C_LANGUAGE_STANDARD = gnu99; 428 | GCC_DYNAMIC_NO_PIC = NO; 429 | GCC_NO_COMMON_BLOCKS = YES; 430 | GCC_OPTIMIZATION_LEVEL = 0; 431 | GCC_PREPROCESSOR_DEFINITIONS = ( 432 | "DEBUG=1", 433 | "$(inherited)", 434 | ); 435 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 436 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 437 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 438 | GCC_WARN_UNDECLARED_SELECTOR = YES; 439 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 440 | GCC_WARN_UNUSED_FUNCTION = YES; 441 | GCC_WARN_UNUSED_VARIABLE = YES; 442 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 443 | MTL_ENABLE_DEBUG_INFO = YES; 444 | ONLY_ACTIVE_ARCH = YES; 445 | SDKROOT = iphoneos; 446 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 447 | SWIFT_VERSION = 4.2; 448 | }; 449 | name = Debug; 450 | }; 451 | 607FACEE1AFB9204008FA782 /* Release */ = { 452 | isa = XCBuildConfiguration; 453 | buildSettings = { 454 | ALWAYS_SEARCH_USER_PATHS = NO; 455 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 456 | CLANG_CXX_LIBRARY = "libc++"; 457 | CLANG_ENABLE_MODULES = YES; 458 | CLANG_ENABLE_OBJC_ARC = YES; 459 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 460 | CLANG_WARN_BOOL_CONVERSION = YES; 461 | CLANG_WARN_COMMA = YES; 462 | CLANG_WARN_CONSTANT_CONVERSION = YES; 463 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 464 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 465 | CLANG_WARN_EMPTY_BODY = YES; 466 | CLANG_WARN_ENUM_CONVERSION = YES; 467 | CLANG_WARN_INFINITE_RECURSION = YES; 468 | CLANG_WARN_INT_CONVERSION = YES; 469 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 470 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 471 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 472 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 473 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 474 | CLANG_WARN_STRICT_PROTOTYPES = YES; 475 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 476 | CLANG_WARN_UNREACHABLE_CODE = YES; 477 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 478 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 479 | COPY_PHASE_STRIP = NO; 480 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 481 | ENABLE_NS_ASSERTIONS = NO; 482 | ENABLE_STRICT_OBJC_MSGSEND = YES; 483 | GCC_C_LANGUAGE_STANDARD = gnu99; 484 | GCC_NO_COMMON_BLOCKS = YES; 485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 486 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 487 | GCC_WARN_UNDECLARED_SELECTOR = YES; 488 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 489 | GCC_WARN_UNUSED_FUNCTION = YES; 490 | GCC_WARN_UNUSED_VARIABLE = YES; 491 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 492 | MTL_ENABLE_DEBUG_INFO = NO; 493 | SDKROOT = iphoneos; 494 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 495 | SWIFT_VERSION = 4.2; 496 | VALIDATE_PRODUCT = YES; 497 | }; 498 | name = Release; 499 | }; 500 | 607FACF01AFB9204008FA782 /* Debug */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 5DDEB7EA347330812AE0DF89 /* Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig */; 503 | buildSettings = { 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | CLANG_ENABLE_MODULES = YES; 506 | INFOPLIST_FILE = FBAnnotationClusteringSwift/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 508 | MODULE_NAME = ExampleApp; 509 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 510 | PRODUCT_NAME = "$(TARGET_NAME)"; 511 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 512 | }; 513 | name = Debug; 514 | }; 515 | 607FACF11AFB9204008FA782 /* Release */ = { 516 | isa = XCBuildConfiguration; 517 | baseConfigurationReference = 19057509F538F5BE8B2B14F5 /* Pods-FBAnnotationClusteringSwift_Example.release.xcconfig */; 518 | buildSettings = { 519 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 520 | CLANG_ENABLE_MODULES = YES; 521 | INFOPLIST_FILE = FBAnnotationClusteringSwift/Info.plist; 522 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 523 | MODULE_NAME = ExampleApp; 524 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 525 | PRODUCT_NAME = "$(TARGET_NAME)"; 526 | }; 527 | name = Release; 528 | }; 529 | 607FACF31AFB9204008FA782 /* Debug */ = { 530 | isa = XCBuildConfiguration; 531 | baseConfigurationReference = CF5782C06A82B91E9032DB1B /* Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig */; 532 | buildSettings = { 533 | BUNDLE_LOADER = "$(TEST_HOST)"; 534 | FRAMEWORK_SEARCH_PATHS = ( 535 | "$(SDKROOT)/Developer/Library/Frameworks", 536 | "$(inherited)", 537 | ); 538 | GCC_PREPROCESSOR_DEFINITIONS = ( 539 | "DEBUG=1", 540 | "$(inherited)", 541 | ); 542 | INFOPLIST_FILE = Tests/Info.plist; 543 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 544 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 545 | PRODUCT_NAME = "$(TARGET_NAME)"; 546 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FBAnnotationClusteringSwift_Example.app/FBAnnotationClusteringSwift_Example"; 547 | }; 548 | name = Debug; 549 | }; 550 | 607FACF41AFB9204008FA782 /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | baseConfigurationReference = 4B03574C78E2310938916D21 /* Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig */; 553 | buildSettings = { 554 | BUNDLE_LOADER = "$(TEST_HOST)"; 555 | FRAMEWORK_SEARCH_PATHS = ( 556 | "$(SDKROOT)/Developer/Library/Frameworks", 557 | "$(inherited)", 558 | ); 559 | INFOPLIST_FILE = Tests/Info.plist; 560 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 561 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 562 | PRODUCT_NAME = "$(TARGET_NAME)"; 563 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FBAnnotationClusteringSwift_Example.app/FBAnnotationClusteringSwift_Example"; 564 | }; 565 | name = Release; 566 | }; 567 | /* End XCBuildConfiguration section */ 568 | 569 | /* Begin XCConfigurationList section */ 570 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "FBAnnotationClusteringSwift" */ = { 571 | isa = XCConfigurationList; 572 | buildConfigurations = ( 573 | 607FACED1AFB9204008FA782 /* Debug */, 574 | 607FACEE1AFB9204008FA782 /* Release */, 575 | ); 576 | defaultConfigurationIsVisible = 0; 577 | defaultConfigurationName = Release; 578 | }; 579 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "FBAnnotationClusteringSwift_Example" */ = { 580 | isa = XCConfigurationList; 581 | buildConfigurations = ( 582 | 607FACF01AFB9204008FA782 /* Debug */, 583 | 607FACF11AFB9204008FA782 /* Release */, 584 | ); 585 | defaultConfigurationIsVisible = 0; 586 | defaultConfigurationName = Release; 587 | }; 588 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "FBAnnotationClusteringSwift_Tests" */ = { 589 | isa = XCConfigurationList; 590 | buildConfigurations = ( 591 | 607FACF31AFB9204008FA782 /* Debug */, 592 | 607FACF41AFB9204008FA782 /* Release */, 593 | ); 594 | defaultConfigurationIsVisible = 0; 595 | defaultConfigurationName = Release; 596 | }; 597 | /* End XCConfigurationList section */ 598 | }; 599 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 600 | } 601 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | func applicationWillResignActive(_ application: UIApplication) { 22 | // 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. 23 | // 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. 24 | } 25 | 26 | func applicationDidEnterBackground(_ application: UIApplication) { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | func applicationWillEnterForeground(_ application: UIApplication) { 32 | // 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. 33 | } 34 | 35 | func applicationDidBecomeActive(_ application: UIApplication) { 36 | // 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. 37 | } 38 | 39 | func applicationWillTerminate(_ application: UIApplication) { 40 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 41 | } 42 | 43 | 44 | } 45 | 46 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift/FBViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MapKit 11 | import FBAnnotationClusteringSwift 12 | 13 | class FBViewController: UIViewController { 14 | 15 | @IBOutlet weak var mapView: MKMapView! 16 | 17 | let numberOfLocations = 1000 18 | 19 | let clusteringManager = FBClusteringManager() 20 | let configuration = FBAnnotationClusterViewConfiguration.default() 21 | 22 | override func viewDidLoad() { 23 | super.viewDidLoad() 24 | 25 | clusteringManager.add(annotations: randomLocationsWithCount(numberOfLocations)) 26 | clusteringManager.delegate = self; 27 | 28 | mapView.centerCoordinate = CLLocationCoordinate2DMake(0, 0); 29 | } 30 | 31 | // MARK: - Utility 32 | 33 | func randomLocationsWithCount(_ count:Int) -> [FBAnnotation] { 34 | var array:[FBAnnotation] = [] 35 | for _ in 0...count - 1 { 36 | let a:FBAnnotation = FBAnnotation() 37 | a.coordinate = CLLocationCoordinate2D(latitude: drand48() * 40 - 20, longitude: drand48() * 80 - 40 ) 38 | array.append(a) 39 | } 40 | return array 41 | } 42 | 43 | } 44 | 45 | extension FBViewController : FBClusteringManagerDelegate { 46 | 47 | func cellSizeFactor(forCoordinator coordinator:FBClusteringManager) -> CGFloat { 48 | return 1.0 49 | } 50 | } 51 | 52 | 53 | extension FBViewController : MKMapViewDelegate { 54 | 55 | func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) { 56 | let mapBoundsWidth = Double(self.mapView.bounds.size.width) 57 | let mapVisibleRect = self.mapView.visibleMapRect 58 | let scale = mapBoundsWidth / mapVisibleRect.size.width 59 | DispatchQueue.global(qos: .userInitiated).async { [weak self] in 60 | guard let strongSelf = self else { return } 61 | let annotationArray = strongSelf.clusteringManager.clusteredAnnotations(withinMapRect: mapVisibleRect, zoomScale:scale) 62 | DispatchQueue.main.async { [weak self] in 63 | guard let strongSelf = self else { return } 64 | strongSelf.clusteringManager.display(annotations: annotationArray, onMapView:strongSelf.mapView) 65 | } 66 | } 67 | } 68 | 69 | func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? { 70 | var reuseId = "" 71 | if annotation is FBAnnotationCluster { 72 | reuseId = "Cluster" 73 | var clusterView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) 74 | if clusterView == nil { 75 | clusterView = FBAnnotationClusterView(annotation: annotation, reuseIdentifier: reuseId, configuration: self.configuration) 76 | } else { 77 | clusterView?.annotation = annotation 78 | } 79 | 80 | return clusterView 81 | } else { 82 | reuseId = "Pin" 83 | var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? MKPinAnnotationView 84 | if pinView == nil { 85 | pinView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseId) 86 | pinView?.pinTintColor = UIColor.green 87 | } else { 88 | pinView?.annotation = annotation 89 | } 90 | 91 | return pinView 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "3x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "3x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "57x57", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "57x57", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "iphone", 45 | "size" : "60x60", 46 | "scale" : "3x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/FBAnnotationClusteringSwift/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/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '8.0' 2 | use_frameworks! 3 | 4 | target 'FBAnnotationClusteringSwift_Example' do 5 | pod 'FBAnnotationClusteringSwift', :path => '../' 6 | end 7 | 8 | target 'FBAnnotationClusteringSwift_Tests' do 9 | pod 'FBAnnotationClusteringSwift', :path => '../' 10 | end 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FBAnnotationClusteringSwift (2.0) 3 | 4 | DEPENDENCIES: 5 | - FBAnnotationClusteringSwift (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | FBAnnotationClusteringSwift: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | FBAnnotationClusteringSwift: e3cb9e8156e9b732cc67be0ff852f9a9b4f51025 13 | 14 | PODFILE CHECKSUM: efab2b6c416e3fa4a2535585461e6c02bd57ea2b 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/FBAnnotationClusteringSwift.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "FBAnnotationClusteringSwift", 3 | "version": "2.0", 4 | "summary": "This is a Swift translation of FBAnnotationClustering. Aggregates map pins into a single numbered cluster.", 5 | "description": "Swift translation of FB Annotation Clustering, which clusters pins on the map for iOS. http://ribl.co/blog/2015/05/28/map-clustering-with-swift-how-we-implemented-it-into-the-ribl-ios-app/", 6 | "homepage": "https://github.com/freemiumdev/FBAnnotationClusteringSwift", 7 | "license": "MIT", 8 | "authors": { 9 | "Giuseppe Russo": "freemiumdev@outlook.it" 10 | }, 11 | "source": { 12 | "git": "https://github.com/freemiumdev/FBAnnotationClusteringSwift.git", 13 | "tag": "2.0" 14 | }, 15 | "platforms": { 16 | "ios": "8.0" 17 | }, 18 | "requires_arc": true, 19 | "swift_version": "4.2", 20 | "source_files": "Pod/Classes/**/*", 21 | "frameworks": "MapKit", 22 | "ios": { 23 | "frameworks": "UIKit" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FBAnnotationClusteringSwift (2.0) 3 | 4 | DEPENDENCIES: 5 | - FBAnnotationClusteringSwift (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | FBAnnotationClusteringSwift: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | FBAnnotationClusteringSwift: e3cb9e8156e9b732cc67be0ff852f9a9b4f51025 13 | 14 | PODFILE CHECKSUM: efab2b6c416e3fa4a2535585461e6c02bd57ea2b 15 | 16 | COCOAPODS: 1.5.3 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 | 0510EDE9778AA7F97A057AB62A8C9F72 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56F2ED3CDAE5D2928456AF5EDDDE4257 /* Foundation.framework */; }; 11 | 14AA3934F7889A7EB499405862DB83F2 /* FBQuadTree.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98FC017B503C01ED47A4E6600E51232B /* FBQuadTree.swift */; }; 12 | 1527310342D444FFFBC907E7CBA1C456 /* Pods-FBAnnotationClusteringSwift_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F5369BE3D9B82D6516C75EC0B2E0CC8 /* Pods-FBAnnotationClusteringSwift_Tests-dummy.m */; }; 13 | 18F3D9197BDDA4B9E02BF25DA44A120F /* FBAnnotationCluster.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66D0E5D2AE197673A4765F9165A1FAFC /* FBAnnotationCluster.swift */; }; 14 | 1CB559A88413F15CDEA0E98768539C84 /* FBAnnotationClusteringSwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DE7E16724CC1DA18667B9AD4E636CB0F /* FBAnnotationClusteringSwift-dummy.m */; }; 15 | 27D0058D053C6AF46C8885754DE7D541 /* FBAnnotationClusterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A8B9DDD78021942FA192B934EFC3188 /* FBAnnotationClusterView.swift */; }; 16 | 2C0598EFF9268D54A07C423E53F14F6D /* FBAnnotation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F8FD9E8365BC19E7A0DCCB67FDF3D99 /* FBAnnotation.swift */; }; 17 | 31065410AF59F5E879313AC48EFE8F97 /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17E061A876F428A8E8C9F0CD173365A7 /* MapKit.framework */; }; 18 | 3591B012DC546860AFDCEDDA77689F21 /* FBClusteringManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6AC69909C64EEEE6E231EC0F77BAEF9 /* FBClusteringManager.swift */; }; 19 | 371D0AE9680F0CD72A59491669B113AA /* Pods-FBAnnotationClusteringSwift_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7F682CC539C767EFCE0351176316F2FA /* Pods-FBAnnotationClusteringSwift_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | 40798488B82E9E56DA14A0E834C9EAE6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56F2ED3CDAE5D2928456AF5EDDDE4257 /* Foundation.framework */; }; 21 | 691F0636AAAA0E4EBC060F80B96338A0 /* FBAnnotationClusteringSwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0AD1A4252101410AD603D1D878818E0D /* FBAnnotationClusteringSwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | 8530017628D10ED0E1018DFD44048941 /* FBAnnotationClusterTemplate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25861B62473AEFF06BA9B724230E8F57 /* FBAnnotationClusterTemplate.swift */; }; 23 | 922F9F8EDF171C75A8C49FE0F73662E7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56F2ED3CDAE5D2928456AF5EDDDE4257 /* Foundation.framework */; }; 24 | 975ECCFEF2FB60E594D09BE9257CEADE /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1899DF19920E20BF9EE667803725971 /* UIKit.framework */; }; 25 | A63C80C52C2C7925EA44B55356E2D36B /* Pods-FBAnnotationClusteringSwift_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 469B265AB226E786CE6D130DCA20B9D1 /* Pods-FBAnnotationClusteringSwift_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 26 | B181D423E4755A7281674805DC0A827F /* FBBoundingBox+MapKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F336D50780903BC1F45A6574265B1B0 /* FBBoundingBox+MapKit.swift */; }; 27 | CC27DC66B7C95F8B3D90DEDE6B4402C8 /* FBBoundingBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = 359A02E4436A63311F677D5FC3FC65A1 /* FBBoundingBox.swift */; }; 28 | D4E53A7C40EE962B91243B7EB9F7C51F /* Pods-FBAnnotationClusteringSwift_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = ECC1095767751431F1038E706115A1FA /* Pods-FBAnnotationClusteringSwift_Example-dummy.m */; }; 29 | D9C299D8CCBD2EC5B9443F4357DADCD3 /* FBQuadTreeNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AAB5907832490A95B94F1E5FAD69501 /* FBQuadTreeNode.swift */; }; 30 | E079FC41CA6CE89D932902BD0E03DE90 /* FBZoomLevel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC25C398556BEA7E44F7D427D5B2AE45 /* FBZoomLevel.swift */; }; 31 | F46577252AE013F4C5881CD5CD5DF56A /* FBAnnotationClusterViewConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EB055CA4504868D9E3C140D84EFDC8D /* FBAnnotationClusterViewConfiguration.swift */; }; 32 | /* End PBXBuildFile section */ 33 | 34 | /* Begin PBXContainerItemProxy section */ 35 | 8917994CCE52BD66389F6D22E99FADE7 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = D22311FCAF2B23B7199239B484398704; 40 | remoteInfo = FBAnnotationClusteringSwift; 41 | }; 42 | 9A00CFF15EBD102973B8A9B55E305381 /* PBXContainerItemProxy */ = { 43 | isa = PBXContainerItemProxy; 44 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 45 | proxyType = 1; 46 | remoteGlobalIDString = D22311FCAF2B23B7199239B484398704; 47 | remoteInfo = FBAnnotationClusteringSwift; 48 | }; 49 | /* End PBXContainerItemProxy section */ 50 | 51 | /* Begin PBXFileReference section */ 52 | 0A8B9DDD78021942FA192B934EFC3188 /* FBAnnotationClusterView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBAnnotationClusterView.swift; path = Pod/Classes/FBAnnotationClusterView.swift; sourceTree = ""; }; 53 | 0AD1A4252101410AD603D1D878818E0D /* FBAnnotationClusteringSwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FBAnnotationClusteringSwift-umbrella.h"; sourceTree = ""; }; 54 | 0C1C3E055B1A72B09870F305BB3EC615 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 55 | 0C1FA18DFBAA1264D30516D28325B255 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 17E061A876F428A8E8C9F0CD173365A7 /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/MapKit.framework; sourceTree = DEVELOPER_DIR; }; 57 | 19EF4B16D5C68CBEB824E0EDF22488BF /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 206423E3BD97F549610A94ECAEA85C01 /* Pods-FBAnnotationClusteringSwift_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-FBAnnotationClusteringSwift_Example-acknowledgements.plist"; sourceTree = ""; }; 59 | 25861B62473AEFF06BA9B724230E8F57 /* FBAnnotationClusterTemplate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBAnnotationClusterTemplate.swift; path = Pod/Classes/FBAnnotationClusterTemplate.swift; sourceTree = ""; }; 60 | 26F6A749A8AFE2D4FC17E931D23900EC /* Pods-FBAnnotationClusteringSwift_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-FBAnnotationClusteringSwift_Tests-resources.sh"; sourceTree = ""; }; 61 | 27BA81269E8216B2CD3D95218D31ADC4 /* FBAnnotationClusteringSwift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FBAnnotationClusteringSwift-prefix.pch"; sourceTree = ""; }; 62 | 2D7616F5A90D2D5060FCF0E917F16E90 /* FBAnnotationClusteringSwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = FBAnnotationClusteringSwift.modulemap; sourceTree = ""; }; 63 | 2F5369BE3D9B82D6516C75EC0B2E0CC8 /* Pods-FBAnnotationClusteringSwift_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-FBAnnotationClusteringSwift_Tests-dummy.m"; sourceTree = ""; }; 64 | 359A02E4436A63311F677D5FC3FC65A1 /* FBBoundingBox.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBBoundingBox.swift; path = Pod/Classes/FBBoundingBox.swift; sourceTree = ""; }; 65 | 3A254A4FEF8706D59426424FEBE91098 /* FBAnnotationClusteringSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = FBAnnotationClusteringSwift.framework; path = FBAnnotationClusteringSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 3A9DCEB01470C1DABE907E68A7BCBE42 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 67 | 3B47B7CC2559CB75F0FC36EBCA0383D8 /* Pods-FBAnnotationClusteringSwift_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FBAnnotationClusteringSwift_Example.release.xcconfig"; sourceTree = ""; }; 68 | 469B265AB226E786CE6D130DCA20B9D1 /* Pods-FBAnnotationClusteringSwift_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-FBAnnotationClusteringSwift_Example-umbrella.h"; sourceTree = ""; }; 69 | 51F74EB1A2BBCD88914E05E7F5665B9E /* Pods-FBAnnotationClusteringSwift_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-FBAnnotationClusteringSwift_Example-frameworks.sh"; sourceTree = ""; }; 70 | 56F2ED3CDAE5D2928456AF5EDDDE4257 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 71 | 66D0E5D2AE197673A4765F9165A1FAFC /* FBAnnotationCluster.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBAnnotationCluster.swift; path = Pod/Classes/FBAnnotationCluster.swift; sourceTree = ""; }; 72 | 6EB055CA4504868D9E3C140D84EFDC8D /* FBAnnotationClusterViewConfiguration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBAnnotationClusterViewConfiguration.swift; path = Pod/Classes/FBAnnotationClusterViewConfiguration.swift; sourceTree = ""; }; 73 | 7D5029BAF70407B642F88AE9AEB331C8 /* Pods-FBAnnotationClusteringSwift_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-FBAnnotationClusteringSwift_Example.modulemap"; sourceTree = ""; }; 74 | 7F682CC539C767EFCE0351176316F2FA /* Pods-FBAnnotationClusteringSwift_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-FBAnnotationClusteringSwift_Tests-umbrella.h"; sourceTree = ""; }; 75 | 895C34BA8D537FBF6C53F2D289FD1D62 /* Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.markdown"; sourceTree = ""; }; 76 | 899562EDEF23D9B229659171DCD95CEA /* Pods_FBAnnotationClusteringSwift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_FBAnnotationClusteringSwift_Example.framework; path = "Pods-FBAnnotationClusteringSwift_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 77 | 8ADA20BF1C178A75A42DA714B86138CB /* Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig"; sourceTree = ""; }; 78 | 8F336D50780903BC1F45A6574265B1B0 /* FBBoundingBox+MapKit.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "FBBoundingBox+MapKit.swift"; path = "Pod/Classes/FBBoundingBox+MapKit.swift"; sourceTree = ""; }; 79 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 80 | 95C62DA6AFBA5D82CC2299C594CD1D81 /* Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig"; sourceTree = ""; }; 81 | 98FC017B503C01ED47A4E6600E51232B /* FBQuadTree.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBQuadTree.swift; path = Pod/Classes/FBQuadTree.swift; sourceTree = ""; }; 82 | 9AAB5907832490A95B94F1E5FAD69501 /* FBQuadTreeNode.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBQuadTreeNode.swift; path = Pod/Classes/FBQuadTreeNode.swift; sourceTree = ""; }; 83 | 9F8FD9E8365BC19E7A0DCCB67FDF3D99 /* FBAnnotation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBAnnotation.swift; path = Pod/Classes/FBAnnotation.swift; sourceTree = ""; }; 84 | A91BE2A4B088AB8262A6AD781BC28133 /* Pods_FBAnnotationClusteringSwift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_FBAnnotationClusteringSwift_Tests.framework; path = "Pods-FBAnnotationClusteringSwift_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 85 | B185F54BCF04BF1D17458DF483638CFE /* Pods-FBAnnotationClusteringSwift_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-FBAnnotationClusteringSwift_Example-acknowledgements.markdown"; sourceTree = ""; }; 86 | BC25C398556BEA7E44F7D427D5B2AE45 /* FBZoomLevel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBZoomLevel.swift; path = Pod/Classes/FBZoomLevel.swift; sourceTree = ""; }; 87 | BC3B5997BD49C758FB98E2473FE733B9 /* Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.plist"; sourceTree = ""; }; 88 | C44D23ACA08D306810B4734E879DE15C /* FBAnnotationClusteringSwift.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = FBAnnotationClusteringSwift.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 89 | C5F48BB642E9A587916C3B1239CF7B4C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 90 | CC1C0C9502BBD47E2C7308412C6179EA /* FBAnnotationClusteringSwift.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = FBAnnotationClusteringSwift.xcconfig; sourceTree = ""; }; 91 | CEE917AC6AFE7835F95A361D1CD6A0DE /* Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig"; sourceTree = ""; }; 92 | D1899DF19920E20BF9EE667803725971 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 93 | D6AC69909C64EEEE6E231EC0F77BAEF9 /* FBClusteringManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = FBClusteringManager.swift; path = Pod/Classes/FBClusteringManager.swift; sourceTree = ""; }; 94 | DAA82610BC7BE8E261B2B1F04AFB74B2 /* Pods-FBAnnotationClusteringSwift_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-FBAnnotationClusteringSwift_Example-resources.sh"; sourceTree = ""; }; 95 | DE7E16724CC1DA18667B9AD4E636CB0F /* FBAnnotationClusteringSwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "FBAnnotationClusteringSwift-dummy.m"; sourceTree = ""; }; 96 | E5E6871AC14EBD3A97241EB825604138 /* Pods-FBAnnotationClusteringSwift_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-FBAnnotationClusteringSwift_Tests.modulemap"; sourceTree = ""; }; 97 | ECC1095767751431F1038E706115A1FA /* Pods-FBAnnotationClusteringSwift_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-FBAnnotationClusteringSwift_Example-dummy.m"; sourceTree = ""; }; 98 | EE31829035ECFE0B06D6DCBF6EBE03EE /* Pods-FBAnnotationClusteringSwift_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-FBAnnotationClusteringSwift_Tests-frameworks.sh"; sourceTree = ""; }; 99 | /* End PBXFileReference section */ 100 | 101 | /* Begin PBXFrameworksBuildPhase section */ 102 | 729A848C274B6C2CE22ED4FCF22246C1 /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | 0510EDE9778AA7F97A057AB62A8C9F72 /* Foundation.framework in Frameworks */, 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | D6289CDE2CA158FBA07170AB75996F9B /* Frameworks */ = { 111 | isa = PBXFrameworksBuildPhase; 112 | buildActionMask = 2147483647; 113 | files = ( 114 | 40798488B82E9E56DA14A0E834C9EAE6 /* Foundation.framework in Frameworks */, 115 | ); 116 | runOnlyForDeploymentPostprocessing = 0; 117 | }; 118 | E3FAB552D6C3C40146DB0C69438555E7 /* Frameworks */ = { 119 | isa = PBXFrameworksBuildPhase; 120 | buildActionMask = 2147483647; 121 | files = ( 122 | 922F9F8EDF171C75A8C49FE0F73662E7 /* Foundation.framework in Frameworks */, 123 | 31065410AF59F5E879313AC48EFE8F97 /* MapKit.framework in Frameworks */, 124 | 975ECCFEF2FB60E594D09BE9257CEADE /* UIKit.framework in Frameworks */, 125 | ); 126 | runOnlyForDeploymentPostprocessing = 0; 127 | }; 128 | /* End PBXFrameworksBuildPhase section */ 129 | 130 | /* Begin PBXGroup section */ 131 | 122DA2E5084A4393C29BE363C764795C /* Frameworks */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 1D8C6F2402ECFA465C0F1DA4645473EF /* iOS */, 135 | ); 136 | name = Frameworks; 137 | sourceTree = ""; 138 | }; 139 | 1D8C6F2402ECFA465C0F1DA4645473EF /* iOS */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 56F2ED3CDAE5D2928456AF5EDDDE4257 /* Foundation.framework */, 143 | 17E061A876F428A8E8C9F0CD173365A7 /* MapKit.framework */, 144 | D1899DF19920E20BF9EE667803725971 /* UIKit.framework */, 145 | ); 146 | name = iOS; 147 | sourceTree = ""; 148 | }; 149 | 2EA84517822B8F089F62EE7F1F81994A /* Pod */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | C44D23ACA08D306810B4734E879DE15C /* FBAnnotationClusteringSwift.podspec */, 153 | 0C1C3E055B1A72B09870F305BB3EC615 /* LICENSE */, 154 | C5F48BB642E9A587916C3B1239CF7B4C /* README.md */, 155 | ); 156 | name = Pod; 157 | sourceTree = ""; 158 | }; 159 | 32438D28BCEAB6860B85627483035CBC /* Products */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 3A254A4FEF8706D59426424FEBE91098 /* FBAnnotationClusteringSwift.framework */, 163 | 899562EDEF23D9B229659171DCD95CEA /* Pods_FBAnnotationClusteringSwift_Example.framework */, 164 | A91BE2A4B088AB8262A6AD781BC28133 /* Pods_FBAnnotationClusteringSwift_Tests.framework */, 165 | ); 166 | name = Products; 167 | sourceTree = ""; 168 | }; 169 | 3EF0B2D50A65CABF8D33EA18F34437B1 /* Targets Support Files */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 8BE5505E64D6A8DB319880B19AD6B98B /* Pods-FBAnnotationClusteringSwift_Example */, 173 | 49817FB974B9A5DD14C1DA7179C749B6 /* Pods-FBAnnotationClusteringSwift_Tests */, 174 | ); 175 | name = "Targets Support Files"; 176 | sourceTree = ""; 177 | }; 178 | 49817FB974B9A5DD14C1DA7179C749B6 /* Pods-FBAnnotationClusteringSwift_Tests */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 19EF4B16D5C68CBEB824E0EDF22488BF /* Info.plist */, 182 | E5E6871AC14EBD3A97241EB825604138 /* Pods-FBAnnotationClusteringSwift_Tests.modulemap */, 183 | 895C34BA8D537FBF6C53F2D289FD1D62 /* Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.markdown */, 184 | BC3B5997BD49C758FB98E2473FE733B9 /* Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.plist */, 185 | 2F5369BE3D9B82D6516C75EC0B2E0CC8 /* Pods-FBAnnotationClusteringSwift_Tests-dummy.m */, 186 | EE31829035ECFE0B06D6DCBF6EBE03EE /* Pods-FBAnnotationClusteringSwift_Tests-frameworks.sh */, 187 | 26F6A749A8AFE2D4FC17E931D23900EC /* Pods-FBAnnotationClusteringSwift_Tests-resources.sh */, 188 | 7F682CC539C767EFCE0351176316F2FA /* Pods-FBAnnotationClusteringSwift_Tests-umbrella.h */, 189 | 95C62DA6AFBA5D82CC2299C594CD1D81 /* Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig */, 190 | CEE917AC6AFE7835F95A361D1CD6A0DE /* Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig */, 191 | ); 192 | name = "Pods-FBAnnotationClusteringSwift_Tests"; 193 | path = "Target Support Files/Pods-FBAnnotationClusteringSwift_Tests"; 194 | sourceTree = ""; 195 | }; 196 | 7DB346D0F39D3F0E887471402A8071AB = { 197 | isa = PBXGroup; 198 | children = ( 199 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 200 | FDAB7F53BA133EE3462083CABC78C917 /* Development Pods */, 201 | 122DA2E5084A4393C29BE363C764795C /* Frameworks */, 202 | 32438D28BCEAB6860B85627483035CBC /* Products */, 203 | 3EF0B2D50A65CABF8D33EA18F34437B1 /* Targets Support Files */, 204 | ); 205 | sourceTree = ""; 206 | }; 207 | 8BE5505E64D6A8DB319880B19AD6B98B /* Pods-FBAnnotationClusteringSwift_Example */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | 3A9DCEB01470C1DABE907E68A7BCBE42 /* Info.plist */, 211 | 7D5029BAF70407B642F88AE9AEB331C8 /* Pods-FBAnnotationClusteringSwift_Example.modulemap */, 212 | B185F54BCF04BF1D17458DF483638CFE /* Pods-FBAnnotationClusteringSwift_Example-acknowledgements.markdown */, 213 | 206423E3BD97F549610A94ECAEA85C01 /* Pods-FBAnnotationClusteringSwift_Example-acknowledgements.plist */, 214 | ECC1095767751431F1038E706115A1FA /* Pods-FBAnnotationClusteringSwift_Example-dummy.m */, 215 | 51F74EB1A2BBCD88914E05E7F5665B9E /* Pods-FBAnnotationClusteringSwift_Example-frameworks.sh */, 216 | DAA82610BC7BE8E261B2B1F04AFB74B2 /* Pods-FBAnnotationClusteringSwift_Example-resources.sh */, 217 | 469B265AB226E786CE6D130DCA20B9D1 /* Pods-FBAnnotationClusteringSwift_Example-umbrella.h */, 218 | 8ADA20BF1C178A75A42DA714B86138CB /* Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig */, 219 | 3B47B7CC2559CB75F0FC36EBCA0383D8 /* Pods-FBAnnotationClusteringSwift_Example.release.xcconfig */, 220 | ); 221 | name = "Pods-FBAnnotationClusteringSwift_Example"; 222 | path = "Target Support Files/Pods-FBAnnotationClusteringSwift_Example"; 223 | sourceTree = ""; 224 | }; 225 | B02A39E5FFE67DC37E1CEEC53C73CB0F /* Support Files */ = { 226 | isa = PBXGroup; 227 | children = ( 228 | 2D7616F5A90D2D5060FCF0E917F16E90 /* FBAnnotationClusteringSwift.modulemap */, 229 | CC1C0C9502BBD47E2C7308412C6179EA /* FBAnnotationClusteringSwift.xcconfig */, 230 | DE7E16724CC1DA18667B9AD4E636CB0F /* FBAnnotationClusteringSwift-dummy.m */, 231 | 27BA81269E8216B2CD3D95218D31ADC4 /* FBAnnotationClusteringSwift-prefix.pch */, 232 | 0AD1A4252101410AD603D1D878818E0D /* FBAnnotationClusteringSwift-umbrella.h */, 233 | 0C1FA18DFBAA1264D30516D28325B255 /* Info.plist */, 234 | ); 235 | name = "Support Files"; 236 | path = "Example/Pods/Target Support Files/FBAnnotationClusteringSwift"; 237 | sourceTree = ""; 238 | }; 239 | D9AE527DB590261E1E441008EB1AFC10 /* FBAnnotationClusteringSwift */ = { 240 | isa = PBXGroup; 241 | children = ( 242 | 9F8FD9E8365BC19E7A0DCCB67FDF3D99 /* FBAnnotation.swift */, 243 | 66D0E5D2AE197673A4765F9165A1FAFC /* FBAnnotationCluster.swift */, 244 | 25861B62473AEFF06BA9B724230E8F57 /* FBAnnotationClusterTemplate.swift */, 245 | 0A8B9DDD78021942FA192B934EFC3188 /* FBAnnotationClusterView.swift */, 246 | 6EB055CA4504868D9E3C140D84EFDC8D /* FBAnnotationClusterViewConfiguration.swift */, 247 | 359A02E4436A63311F677D5FC3FC65A1 /* FBBoundingBox.swift */, 248 | 8F336D50780903BC1F45A6574265B1B0 /* FBBoundingBox+MapKit.swift */, 249 | D6AC69909C64EEEE6E231EC0F77BAEF9 /* FBClusteringManager.swift */, 250 | 98FC017B503C01ED47A4E6600E51232B /* FBQuadTree.swift */, 251 | 9AAB5907832490A95B94F1E5FAD69501 /* FBQuadTreeNode.swift */, 252 | BC25C398556BEA7E44F7D427D5B2AE45 /* FBZoomLevel.swift */, 253 | 2EA84517822B8F089F62EE7F1F81994A /* Pod */, 254 | B02A39E5FFE67DC37E1CEEC53C73CB0F /* Support Files */, 255 | ); 256 | name = FBAnnotationClusteringSwift; 257 | path = ../..; 258 | sourceTree = ""; 259 | }; 260 | FDAB7F53BA133EE3462083CABC78C917 /* Development Pods */ = { 261 | isa = PBXGroup; 262 | children = ( 263 | D9AE527DB590261E1E441008EB1AFC10 /* FBAnnotationClusteringSwift */, 264 | ); 265 | name = "Development Pods"; 266 | sourceTree = ""; 267 | }; 268 | /* End PBXGroup section */ 269 | 270 | /* Begin PBXHeadersBuildPhase section */ 271 | 34D391EEFB3751DBB34B842764344F70 /* Headers */ = { 272 | isa = PBXHeadersBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 691F0636AAAA0E4EBC060F80B96338A0 /* FBAnnotationClusteringSwift-umbrella.h in Headers */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | 6502BBF066602E1F39992D55E7FCA7CF /* Headers */ = { 280 | isa = PBXHeadersBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | A63C80C52C2C7925EA44B55356E2D36B /* Pods-FBAnnotationClusteringSwift_Example-umbrella.h in Headers */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | A45FB424E1187610A6FBD16ADA0529CA /* Headers */ = { 288 | isa = PBXHeadersBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | 371D0AE9680F0CD72A59491669B113AA /* Pods-FBAnnotationClusteringSwift_Tests-umbrella.h in Headers */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | /* End PBXHeadersBuildPhase section */ 296 | 297 | /* Begin PBXNativeTarget section */ 298 | 4148E137A3BFF99EDDD9CF2CE6F08405 /* Pods-FBAnnotationClusteringSwift_Tests */ = { 299 | isa = PBXNativeTarget; 300 | buildConfigurationList = BC2EDB9BEFD9D8DE0B189F615F985A52 /* Build configuration list for PBXNativeTarget "Pods-FBAnnotationClusteringSwift_Tests" */; 301 | buildPhases = ( 302 | A45FB424E1187610A6FBD16ADA0529CA /* Headers */, 303 | 398B3ECC5BD6FC23D94B09C7C8E5C69F /* Sources */, 304 | D6289CDE2CA158FBA07170AB75996F9B /* Frameworks */, 305 | 9490D1454481DB052F8967AF9CBE9182 /* Resources */, 306 | ); 307 | buildRules = ( 308 | ); 309 | dependencies = ( 310 | B97C6FB30F343459DD95B491AACD9D8B /* PBXTargetDependency */, 311 | ); 312 | name = "Pods-FBAnnotationClusteringSwift_Tests"; 313 | productName = "Pods-FBAnnotationClusteringSwift_Tests"; 314 | productReference = A91BE2A4B088AB8262A6AD781BC28133 /* Pods_FBAnnotationClusteringSwift_Tests.framework */; 315 | productType = "com.apple.product-type.framework"; 316 | }; 317 | D22311FCAF2B23B7199239B484398704 /* FBAnnotationClusteringSwift */ = { 318 | isa = PBXNativeTarget; 319 | buildConfigurationList = F65F624219B2F33EC3D0FBF4042A1A54 /* Build configuration list for PBXNativeTarget "FBAnnotationClusteringSwift" */; 320 | buildPhases = ( 321 | 34D391EEFB3751DBB34B842764344F70 /* Headers */, 322 | 78DE7B18CBB7244E313D135EBB563BED /* Sources */, 323 | E3FAB552D6C3C40146DB0C69438555E7 /* Frameworks */, 324 | BC646BE2B3EDB5D135747FDE65D55DE8 /* Resources */, 325 | ); 326 | buildRules = ( 327 | ); 328 | dependencies = ( 329 | ); 330 | name = FBAnnotationClusteringSwift; 331 | productName = FBAnnotationClusteringSwift; 332 | productReference = 3A254A4FEF8706D59426424FEBE91098 /* FBAnnotationClusteringSwift.framework */; 333 | productType = "com.apple.product-type.framework"; 334 | }; 335 | F351F308F331921DA49735CCCD578D75 /* Pods-FBAnnotationClusteringSwift_Example */ = { 336 | isa = PBXNativeTarget; 337 | buildConfigurationList = B350050419D3D4349F6195559F73C782 /* Build configuration list for PBXNativeTarget "Pods-FBAnnotationClusteringSwift_Example" */; 338 | buildPhases = ( 339 | 6502BBF066602E1F39992D55E7FCA7CF /* Headers */, 340 | 8B7B2C8EC6A38B53DA17654B2F20DE83 /* Sources */, 341 | 729A848C274B6C2CE22ED4FCF22246C1 /* Frameworks */, 342 | 81FFC0D8B0D3711EBA5C014C567D3402 /* Resources */, 343 | ); 344 | buildRules = ( 345 | ); 346 | dependencies = ( 347 | 1143F07FAB86E95D2476C35F233A76BD /* PBXTargetDependency */, 348 | ); 349 | name = "Pods-FBAnnotationClusteringSwift_Example"; 350 | productName = "Pods-FBAnnotationClusteringSwift_Example"; 351 | productReference = 899562EDEF23D9B229659171DCD95CEA /* Pods_FBAnnotationClusteringSwift_Example.framework */; 352 | productType = "com.apple.product-type.framework"; 353 | }; 354 | /* End PBXNativeTarget section */ 355 | 356 | /* Begin PBXProject section */ 357 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 358 | isa = PBXProject; 359 | attributes = { 360 | LastSwiftUpdateCheck = 0930; 361 | LastUpgradeCheck = 0930; 362 | }; 363 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 364 | compatibilityVersion = "Xcode 3.2"; 365 | developmentRegion = English; 366 | hasScannedForEncodings = 0; 367 | knownRegions = ( 368 | en, 369 | ); 370 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 371 | productRefGroup = 32438D28BCEAB6860B85627483035CBC /* Products */; 372 | projectDirPath = ""; 373 | projectRoot = ""; 374 | targets = ( 375 | D22311FCAF2B23B7199239B484398704 /* FBAnnotationClusteringSwift */, 376 | F351F308F331921DA49735CCCD578D75 /* Pods-FBAnnotationClusteringSwift_Example */, 377 | 4148E137A3BFF99EDDD9CF2CE6F08405 /* Pods-FBAnnotationClusteringSwift_Tests */, 378 | ); 379 | }; 380 | /* End PBXProject section */ 381 | 382 | /* Begin PBXResourcesBuildPhase section */ 383 | 81FFC0D8B0D3711EBA5C014C567D3402 /* Resources */ = { 384 | isa = PBXResourcesBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | ); 388 | runOnlyForDeploymentPostprocessing = 0; 389 | }; 390 | 9490D1454481DB052F8967AF9CBE9182 /* Resources */ = { 391 | isa = PBXResourcesBuildPhase; 392 | buildActionMask = 2147483647; 393 | files = ( 394 | ); 395 | runOnlyForDeploymentPostprocessing = 0; 396 | }; 397 | BC646BE2B3EDB5D135747FDE65D55DE8 /* Resources */ = { 398 | isa = PBXResourcesBuildPhase; 399 | buildActionMask = 2147483647; 400 | files = ( 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | }; 404 | /* End PBXResourcesBuildPhase section */ 405 | 406 | /* Begin PBXSourcesBuildPhase section */ 407 | 398B3ECC5BD6FC23D94B09C7C8E5C69F /* Sources */ = { 408 | isa = PBXSourcesBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | 1527310342D444FFFBC907E7CBA1C456 /* Pods-FBAnnotationClusteringSwift_Tests-dummy.m in Sources */, 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | }; 415 | 78DE7B18CBB7244E313D135EBB563BED /* Sources */ = { 416 | isa = PBXSourcesBuildPhase; 417 | buildActionMask = 2147483647; 418 | files = ( 419 | 2C0598EFF9268D54A07C423E53F14F6D /* FBAnnotation.swift in Sources */, 420 | 18F3D9197BDDA4B9E02BF25DA44A120F /* FBAnnotationCluster.swift in Sources */, 421 | 1CB559A88413F15CDEA0E98768539C84 /* FBAnnotationClusteringSwift-dummy.m in Sources */, 422 | 8530017628D10ED0E1018DFD44048941 /* FBAnnotationClusterTemplate.swift in Sources */, 423 | 27D0058D053C6AF46C8885754DE7D541 /* FBAnnotationClusterView.swift in Sources */, 424 | F46577252AE013F4C5881CD5CD5DF56A /* FBAnnotationClusterViewConfiguration.swift in Sources */, 425 | B181D423E4755A7281674805DC0A827F /* FBBoundingBox+MapKit.swift in Sources */, 426 | CC27DC66B7C95F8B3D90DEDE6B4402C8 /* FBBoundingBox.swift in Sources */, 427 | 3591B012DC546860AFDCEDDA77689F21 /* FBClusteringManager.swift in Sources */, 428 | 14AA3934F7889A7EB499405862DB83F2 /* FBQuadTree.swift in Sources */, 429 | D9C299D8CCBD2EC5B9443F4357DADCD3 /* FBQuadTreeNode.swift in Sources */, 430 | E079FC41CA6CE89D932902BD0E03DE90 /* FBZoomLevel.swift in Sources */, 431 | ); 432 | runOnlyForDeploymentPostprocessing = 0; 433 | }; 434 | 8B7B2C8EC6A38B53DA17654B2F20DE83 /* Sources */ = { 435 | isa = PBXSourcesBuildPhase; 436 | buildActionMask = 2147483647; 437 | files = ( 438 | D4E53A7C40EE962B91243B7EB9F7C51F /* Pods-FBAnnotationClusteringSwift_Example-dummy.m in Sources */, 439 | ); 440 | runOnlyForDeploymentPostprocessing = 0; 441 | }; 442 | /* End PBXSourcesBuildPhase section */ 443 | 444 | /* Begin PBXTargetDependency section */ 445 | 1143F07FAB86E95D2476C35F233A76BD /* PBXTargetDependency */ = { 446 | isa = PBXTargetDependency; 447 | name = FBAnnotationClusteringSwift; 448 | target = D22311FCAF2B23B7199239B484398704 /* FBAnnotationClusteringSwift */; 449 | targetProxy = 9A00CFF15EBD102973B8A9B55E305381 /* PBXContainerItemProxy */; 450 | }; 451 | B97C6FB30F343459DD95B491AACD9D8B /* PBXTargetDependency */ = { 452 | isa = PBXTargetDependency; 453 | name = FBAnnotationClusteringSwift; 454 | target = D22311FCAF2B23B7199239B484398704 /* FBAnnotationClusteringSwift */; 455 | targetProxy = 8917994CCE52BD66389F6D22E99FADE7 /* PBXContainerItemProxy */; 456 | }; 457 | /* End PBXTargetDependency section */ 458 | 459 | /* Begin XCBuildConfiguration section */ 460 | 10C4AE6D843B49A4F2C1056B2D3859D0 /* Release */ = { 461 | isa = XCBuildConfiguration; 462 | baseConfigurationReference = CEE917AC6AFE7835F95A361D1CD6A0DE /* Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig */; 463 | buildSettings = { 464 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 465 | CODE_SIGN_IDENTITY = ""; 466 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 467 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 468 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 469 | CURRENT_PROJECT_VERSION = 1; 470 | DEFINES_MODULE = YES; 471 | DYLIB_COMPATIBILITY_VERSION = 1; 472 | DYLIB_CURRENT_VERSION = 1; 473 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 474 | INFOPLIST_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Info.plist"; 475 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 476 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 477 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 478 | MACH_O_TYPE = staticlib; 479 | MODULEMAP_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests.modulemap"; 480 | OTHER_LDFLAGS = ""; 481 | OTHER_LIBTOOLFLAGS = ""; 482 | PODS_ROOT = "$(SRCROOT)"; 483 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 484 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 485 | SDKROOT = iphoneos; 486 | SKIP_INSTALL = YES; 487 | TARGETED_DEVICE_FAMILY = "1,2"; 488 | VALIDATE_PRODUCT = YES; 489 | VERSIONING_SYSTEM = "apple-generic"; 490 | VERSION_INFO_PREFIX = ""; 491 | }; 492 | name = Release; 493 | }; 494 | 233FDF9272F56E0FD62A3BEBA7F46480 /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = 3B47B7CC2559CB75F0FC36EBCA0383D8 /* Pods-FBAnnotationClusteringSwift_Example.release.xcconfig */; 497 | buildSettings = { 498 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 499 | CODE_SIGN_IDENTITY = ""; 500 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 501 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 502 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 503 | CURRENT_PROJECT_VERSION = 1; 504 | DEFINES_MODULE = YES; 505 | DYLIB_COMPATIBILITY_VERSION = 1; 506 | DYLIB_CURRENT_VERSION = 1; 507 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 508 | INFOPLIST_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Info.plist"; 509 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 510 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 511 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 512 | MACH_O_TYPE = staticlib; 513 | MODULEMAP_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example.modulemap"; 514 | OTHER_LDFLAGS = ""; 515 | OTHER_LIBTOOLFLAGS = ""; 516 | PODS_ROOT = "$(SRCROOT)"; 517 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 518 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 519 | SDKROOT = iphoneos; 520 | SKIP_INSTALL = YES; 521 | TARGETED_DEVICE_FAMILY = "1,2"; 522 | VALIDATE_PRODUCT = YES; 523 | VERSIONING_SYSTEM = "apple-generic"; 524 | VERSION_INFO_PREFIX = ""; 525 | }; 526 | name = Release; 527 | }; 528 | 5F6C271F9BA3EEBC1A991A18BC855CF1 /* Debug */ = { 529 | isa = XCBuildConfiguration; 530 | baseConfigurationReference = 95C62DA6AFBA5D82CC2299C594CD1D81 /* Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig */; 531 | buildSettings = { 532 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 533 | CODE_SIGN_IDENTITY = ""; 534 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 535 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 536 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 537 | CURRENT_PROJECT_VERSION = 1; 538 | DEFINES_MODULE = YES; 539 | DYLIB_COMPATIBILITY_VERSION = 1; 540 | DYLIB_CURRENT_VERSION = 1; 541 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 542 | INFOPLIST_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Info.plist"; 543 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 544 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 546 | MACH_O_TYPE = staticlib; 547 | MODULEMAP_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests.modulemap"; 548 | OTHER_LDFLAGS = ""; 549 | OTHER_LIBTOOLFLAGS = ""; 550 | PODS_ROOT = "$(SRCROOT)"; 551 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 552 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 553 | SDKROOT = iphoneos; 554 | SKIP_INSTALL = YES; 555 | TARGETED_DEVICE_FAMILY = "1,2"; 556 | VERSIONING_SYSTEM = "apple-generic"; 557 | VERSION_INFO_PREFIX = ""; 558 | }; 559 | name = Debug; 560 | }; 561 | 85B95B1234E227C814CCC2C7902D0916 /* Release */ = { 562 | isa = XCBuildConfiguration; 563 | buildSettings = { 564 | ALWAYS_SEARCH_USER_PATHS = NO; 565 | CLANG_ANALYZER_NONNULL = YES; 566 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 567 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 568 | CLANG_CXX_LIBRARY = "libc++"; 569 | CLANG_ENABLE_MODULES = YES; 570 | CLANG_ENABLE_OBJC_ARC = YES; 571 | CLANG_ENABLE_OBJC_WEAK = YES; 572 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 573 | CLANG_WARN_BOOL_CONVERSION = YES; 574 | CLANG_WARN_COMMA = YES; 575 | CLANG_WARN_CONSTANT_CONVERSION = YES; 576 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 577 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 578 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 579 | CLANG_WARN_EMPTY_BODY = YES; 580 | CLANG_WARN_ENUM_CONVERSION = YES; 581 | CLANG_WARN_INFINITE_RECURSION = YES; 582 | CLANG_WARN_INT_CONVERSION = YES; 583 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 584 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 585 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 586 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 587 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 588 | CLANG_WARN_STRICT_PROTOTYPES = YES; 589 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 590 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 591 | CLANG_WARN_UNREACHABLE_CODE = YES; 592 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 593 | CODE_SIGNING_ALLOWED = NO; 594 | CODE_SIGNING_REQUIRED = NO; 595 | COPY_PHASE_STRIP = NO; 596 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 597 | ENABLE_NS_ASSERTIONS = NO; 598 | ENABLE_STRICT_OBJC_MSGSEND = YES; 599 | GCC_C_LANGUAGE_STANDARD = gnu11; 600 | GCC_NO_COMMON_BLOCKS = YES; 601 | GCC_PREPROCESSOR_DEFINITIONS = ( 602 | "POD_CONFIGURATION_RELEASE=1", 603 | "$(inherited)", 604 | ); 605 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 606 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 607 | GCC_WARN_UNDECLARED_SELECTOR = YES; 608 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 609 | GCC_WARN_UNUSED_FUNCTION = YES; 610 | GCC_WARN_UNUSED_VARIABLE = YES; 611 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 612 | MTL_ENABLE_DEBUG_INFO = NO; 613 | MTL_FAST_MATH = YES; 614 | PRODUCT_NAME = "$(TARGET_NAME)"; 615 | STRIP_INSTALLED_PRODUCT = NO; 616 | SWIFT_COMPILATION_MODE = wholemodule; 617 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 618 | SWIFT_VERSION = 4.2; 619 | SYMROOT = "${SRCROOT}/../build"; 620 | }; 621 | name = Release; 622 | }; 623 | 9DCB8FC04185B903F0B0E647A57049C7 /* Release */ = { 624 | isa = XCBuildConfiguration; 625 | baseConfigurationReference = CC1C0C9502BBD47E2C7308412C6179EA /* FBAnnotationClusteringSwift.xcconfig */; 626 | buildSettings = { 627 | CODE_SIGN_IDENTITY = ""; 628 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 629 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 630 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 631 | CURRENT_PROJECT_VERSION = 1; 632 | DEFINES_MODULE = YES; 633 | DYLIB_COMPATIBILITY_VERSION = 1; 634 | DYLIB_CURRENT_VERSION = 1; 635 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 636 | GCC_PREFIX_HEADER = "Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift-prefix.pch"; 637 | INFOPLIST_FILE = "Target Support Files/FBAnnotationClusteringSwift/Info.plist"; 638 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 639 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 640 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 641 | MODULEMAP_FILE = "Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.modulemap"; 642 | PRODUCT_MODULE_NAME = FBAnnotationClusteringSwift; 643 | PRODUCT_NAME = FBAnnotationClusteringSwift; 644 | SDKROOT = iphoneos; 645 | SKIP_INSTALL = YES; 646 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 647 | SWIFT_VERSION = 4.2; 648 | TARGETED_DEVICE_FAMILY = "1,2"; 649 | VALIDATE_PRODUCT = YES; 650 | VERSIONING_SYSTEM = "apple-generic"; 651 | VERSION_INFO_PREFIX = ""; 652 | }; 653 | name = Release; 654 | }; 655 | A73625DEBD810B78234FA1958C191C8C /* Debug */ = { 656 | isa = XCBuildConfiguration; 657 | buildSettings = { 658 | ALWAYS_SEARCH_USER_PATHS = NO; 659 | CLANG_ANALYZER_NONNULL = YES; 660 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 661 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 662 | CLANG_CXX_LIBRARY = "libc++"; 663 | CLANG_ENABLE_MODULES = YES; 664 | CLANG_ENABLE_OBJC_ARC = YES; 665 | CLANG_ENABLE_OBJC_WEAK = YES; 666 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 667 | CLANG_WARN_BOOL_CONVERSION = YES; 668 | CLANG_WARN_COMMA = YES; 669 | CLANG_WARN_CONSTANT_CONVERSION = YES; 670 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 671 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 672 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 673 | CLANG_WARN_EMPTY_BODY = YES; 674 | CLANG_WARN_ENUM_CONVERSION = YES; 675 | CLANG_WARN_INFINITE_RECURSION = YES; 676 | CLANG_WARN_INT_CONVERSION = YES; 677 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 678 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 679 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 680 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 681 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 682 | CLANG_WARN_STRICT_PROTOTYPES = YES; 683 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 684 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 685 | CLANG_WARN_UNREACHABLE_CODE = YES; 686 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 687 | CODE_SIGNING_ALLOWED = NO; 688 | CODE_SIGNING_REQUIRED = NO; 689 | COPY_PHASE_STRIP = NO; 690 | DEBUG_INFORMATION_FORMAT = dwarf; 691 | ENABLE_STRICT_OBJC_MSGSEND = YES; 692 | ENABLE_TESTABILITY = YES; 693 | GCC_C_LANGUAGE_STANDARD = gnu11; 694 | GCC_DYNAMIC_NO_PIC = NO; 695 | GCC_NO_COMMON_BLOCKS = YES; 696 | GCC_OPTIMIZATION_LEVEL = 0; 697 | GCC_PREPROCESSOR_DEFINITIONS = ( 698 | "POD_CONFIGURATION_DEBUG=1", 699 | "DEBUG=1", 700 | "$(inherited)", 701 | ); 702 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 703 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 704 | GCC_WARN_UNDECLARED_SELECTOR = YES; 705 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 706 | GCC_WARN_UNUSED_FUNCTION = YES; 707 | GCC_WARN_UNUSED_VARIABLE = YES; 708 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 709 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 710 | MTL_FAST_MATH = YES; 711 | ONLY_ACTIVE_ARCH = YES; 712 | PRODUCT_NAME = "$(TARGET_NAME)"; 713 | STRIP_INSTALLED_PRODUCT = NO; 714 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 715 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 716 | SWIFT_VERSION = 4.2; 717 | SYMROOT = "${SRCROOT}/../build"; 718 | }; 719 | name = Debug; 720 | }; 721 | C0FD015266278FCD48D388B4B66EDC76 /* Debug */ = { 722 | isa = XCBuildConfiguration; 723 | baseConfigurationReference = CC1C0C9502BBD47E2C7308412C6179EA /* FBAnnotationClusteringSwift.xcconfig */; 724 | buildSettings = { 725 | CODE_SIGN_IDENTITY = ""; 726 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 727 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 728 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 729 | CURRENT_PROJECT_VERSION = 1; 730 | DEFINES_MODULE = YES; 731 | DYLIB_COMPATIBILITY_VERSION = 1; 732 | DYLIB_CURRENT_VERSION = 1; 733 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 734 | GCC_PREFIX_HEADER = "Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift-prefix.pch"; 735 | INFOPLIST_FILE = "Target Support Files/FBAnnotationClusteringSwift/Info.plist"; 736 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 737 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 738 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 739 | MODULEMAP_FILE = "Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.modulemap"; 740 | PRODUCT_MODULE_NAME = FBAnnotationClusteringSwift; 741 | PRODUCT_NAME = FBAnnotationClusteringSwift; 742 | SDKROOT = iphoneos; 743 | SKIP_INSTALL = YES; 744 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 745 | SWIFT_VERSION = 4.2; 746 | TARGETED_DEVICE_FAMILY = "1,2"; 747 | VERSIONING_SYSTEM = "apple-generic"; 748 | VERSION_INFO_PREFIX = ""; 749 | }; 750 | name = Debug; 751 | }; 752 | E30CCB4DF9FA54FC839F76A8AEAF92DE /* Debug */ = { 753 | isa = XCBuildConfiguration; 754 | baseConfigurationReference = 8ADA20BF1C178A75A42DA714B86138CB /* Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig */; 755 | buildSettings = { 756 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 757 | CODE_SIGN_IDENTITY = ""; 758 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 759 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 760 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 761 | CURRENT_PROJECT_VERSION = 1; 762 | DEFINES_MODULE = YES; 763 | DYLIB_COMPATIBILITY_VERSION = 1; 764 | DYLIB_CURRENT_VERSION = 1; 765 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 766 | INFOPLIST_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Info.plist"; 767 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 768 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 769 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 770 | MACH_O_TYPE = staticlib; 771 | MODULEMAP_FILE = "Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example.modulemap"; 772 | OTHER_LDFLAGS = ""; 773 | OTHER_LIBTOOLFLAGS = ""; 774 | PODS_ROOT = "$(SRCROOT)"; 775 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 776 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 777 | SDKROOT = iphoneos; 778 | SKIP_INSTALL = YES; 779 | TARGETED_DEVICE_FAMILY = "1,2"; 780 | VERSIONING_SYSTEM = "apple-generic"; 781 | VERSION_INFO_PREFIX = ""; 782 | }; 783 | name = Debug; 784 | }; 785 | /* End XCBuildConfiguration section */ 786 | 787 | /* Begin XCConfigurationList section */ 788 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 789 | isa = XCConfigurationList; 790 | buildConfigurations = ( 791 | A73625DEBD810B78234FA1958C191C8C /* Debug */, 792 | 85B95B1234E227C814CCC2C7902D0916 /* Release */, 793 | ); 794 | defaultConfigurationIsVisible = 0; 795 | defaultConfigurationName = Release; 796 | }; 797 | B350050419D3D4349F6195559F73C782 /* Build configuration list for PBXNativeTarget "Pods-FBAnnotationClusteringSwift_Example" */ = { 798 | isa = XCConfigurationList; 799 | buildConfigurations = ( 800 | E30CCB4DF9FA54FC839F76A8AEAF92DE /* Debug */, 801 | 233FDF9272F56E0FD62A3BEBA7F46480 /* Release */, 802 | ); 803 | defaultConfigurationIsVisible = 0; 804 | defaultConfigurationName = Release; 805 | }; 806 | BC2EDB9BEFD9D8DE0B189F615F985A52 /* Build configuration list for PBXNativeTarget "Pods-FBAnnotationClusteringSwift_Tests" */ = { 807 | isa = XCConfigurationList; 808 | buildConfigurations = ( 809 | 5F6C271F9BA3EEBC1A991A18BC855CF1 /* Debug */, 810 | 10C4AE6D843B49A4F2C1056B2D3859D0 /* Release */, 811 | ); 812 | defaultConfigurationIsVisible = 0; 813 | defaultConfigurationName = Release; 814 | }; 815 | F65F624219B2F33EC3D0FBF4042A1A54 /* Build configuration list for PBXNativeTarget "FBAnnotationClusteringSwift" */ = { 816 | isa = XCConfigurationList; 817 | buildConfigurations = ( 818 | C0FD015266278FCD48D388B4B66EDC76 /* Debug */, 819 | 9DCB8FC04185B903F0B0E647A57049C7 /* Release */, 820 | ); 821 | defaultConfigurationIsVisible = 0; 822 | defaultConfigurationName = Release; 823 | }; 824 | /* End XCConfigurationList section */ 825 | }; 826 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 827 | } 828 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_FBAnnotationClusteringSwift : NSObject 3 | @end 4 | @implementation PodsDummy_FBAnnotationClusteringSwift 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift-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/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift-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 FBAnnotationClusteringSwiftVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char FBAnnotationClusteringSwiftVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.modulemap: -------------------------------------------------------------------------------- 1 | framework module FBAnnotationClusteringSwift { 2 | umbrella header "FBAnnotationClusteringSwift-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "MapKit" -framework "UIKit" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FBAnnotationClusteringSwift/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 | 2.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_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-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## FBAnnotationClusteringSwift 5 | 6 | Copyright (c) 2015 Ribl LLC 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-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_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) 2015 Ribl LLC 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 | FBAnnotationClusteringSwift 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-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_FBAnnotationClusteringSwift_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_FBAnnotationClusteringSwift_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | 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}\"" 80 | 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}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # 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. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_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_FBAnnotationClusteringSwift_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_FBAnnotationClusteringSwift_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "FBAnnotationClusteringSwift" 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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_FBAnnotationClusteringSwift_Example { 2 | umbrella header "Pods-FBAnnotationClusteringSwift_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Example/Pods-FBAnnotationClusteringSwift_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "FBAnnotationClusteringSwift" 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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_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-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## FBAnnotationClusteringSwift 5 | 6 | Copyright (c) 2015 Ribl LLC 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-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_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 | Copyright (c) 2015 Ribl LLC 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 | FBAnnotationClusteringSwift 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-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_FBAnnotationClusteringSwift_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_FBAnnotationClusteringSwift_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | 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}\"" 80 | 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}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # 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. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_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_FBAnnotationClusteringSwift_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_FBAnnotationClusteringSwift_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "FBAnnotationClusteringSwift" 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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_FBAnnotationClusteringSwift_Tests { 2 | umbrella header "Pods-FBAnnotationClusteringSwift_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FBAnnotationClusteringSwift_Tests/Pods-FBAnnotationClusteringSwift_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FBAnnotationClusteringSwift/FBAnnotationClusteringSwift.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "FBAnnotationClusteringSwift" 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 | -------------------------------------------------------------------------------- /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 UIKit 2 | import XCTest 3 | @testable import FBAnnotationClustering 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /FBAnnotationClusteringSwift.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint FBAnnotationClusteringSwift.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 http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = "FBAnnotationClusteringSwift" 11 | s.version = "2.0" 12 | s.summary = "This is a Swift translation of FBAnnotationClustering. Aggregates map pins into a single numbered cluster." 13 | 14 | s.description = <<-DESC 15 | Swift translation of FB Annotation Clustering, which clusters pins on the map for iOS. http://ribl.co/blog/2015/05/28/map-clustering-with-swift-how-we-implemented-it-into-the-ribl-ios-app/ 16 | DESC 17 | 18 | s.homepage = "https://github.com/freemiumdev/FBAnnotationClusteringSwift" 19 | s.license = 'MIT' 20 | s.author = { "Giuseppe Russo" => "freemiumdev@outlook.it" } 21 | s.source = { :git => "https://github.com/freemiumdev/FBAnnotationClusteringSwift.git", :tag => s.version} 22 | 23 | s.platform = :ios, '8.0' 24 | s.requires_arc = true 25 | s.swift_version = '4.2' 26 | 27 | s.source_files = 'Pod/Classes/**/*' 28 | s.framework = 'MapKit' 29 | s.ios.framework = 'UIKit' 30 | end 31 | -------------------------------------------------------------------------------- /GitHubImages/simulatorShot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ribl/FBAnnotationClusteringSwift/61e3ae64db17bdb849295308ed961cf43b7ed7fd/GitHubImages/simulatorShot.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Ribl LLC 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 | -------------------------------------------------------------------------------- /Pod/Classes/FBAnnotation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBAnnotation.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import CoreLocation 11 | import MapKit 12 | 13 | open class FBAnnotation: NSObject { 14 | 15 | open var coordinate = CLLocationCoordinate2D() 16 | open var title: String? 17 | } 18 | 19 | extension FBAnnotation : MKAnnotation { } 20 | -------------------------------------------------------------------------------- /Pod/Classes/FBAnnotationCluster.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBAnnotationCluster.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import MapKit 11 | 12 | open class FBAnnotationCluster: NSObject { 13 | 14 | open var coordinate = CLLocationCoordinate2D() 15 | open var title: String? 16 | open var subtitle: String? 17 | 18 | open var annotations: [MKAnnotation] = [] 19 | } 20 | 21 | extension FBAnnotationCluster : MKAnnotation { } 22 | -------------------------------------------------------------------------------- /Pod/Classes/FBAnnotationClusterTemplate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBAnnotationClusterTemplate.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Antoine Lamy on 23/9/2016. 6 | // Copyright (c) 2016 Antoine Lamy. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public enum FBAnnotationClusterDisplayMode { 12 | case SolidColor(sideLength: CGFloat, color: UIColor) 13 | case Image(imageName: String) 14 | } 15 | 16 | public struct FBAnnotationClusterTemplate { 17 | 18 | let range: Range? 19 | let displayMode: FBAnnotationClusterDisplayMode 20 | 21 | public var borderWidth: CGFloat = 0 22 | 23 | public var fontSize: CGFloat = 15 24 | public var fontName: String? 25 | 26 | public var font: UIFont? { 27 | if let fontName = fontName { 28 | return UIFont(name: fontName, size: fontSize) 29 | } else { 30 | return UIFont.boldSystemFont(ofSize: fontSize) 31 | } 32 | } 33 | 34 | public init(range: Range?, displayMode: FBAnnotationClusterDisplayMode) { 35 | self.range = range 36 | self.displayMode = displayMode 37 | } 38 | 39 | public init (range: Range?, sideLength: CGFloat) { 40 | self.init(range: range, displayMode: .SolidColor(sideLength: sideLength, 41 | color: UIColor(red:0.11, green:0.70, blue:0.42, alpha:1.00))) 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Pod/Classes/FBAnnotationClusterView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBAnnotationClusterView.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import MapKit 11 | 12 | public class FBAnnotationClusterView : MKAnnotationView { 13 | 14 | private var configuration: FBAnnotationClusterViewConfiguration 15 | 16 | private let countLabel: UILabel = { 17 | let label = UILabel() 18 | label.autoresizingMask = [.flexibleWidth, .flexibleHeight] 19 | label.textAlignment = .center 20 | label.backgroundColor = UIColor.clear 21 | label.textColor = UIColor.white 22 | label.adjustsFontSizeToFitWidth = true 23 | label.minimumScaleFactor = 2 24 | label.numberOfLines = 1 25 | label.baselineAdjustment = .alignCenters 26 | return label 27 | }() 28 | 29 | public override var annotation: MKAnnotation? { 30 | didSet { 31 | updateClusterSize() 32 | } 33 | } 34 | 35 | public convenience init(annotation: MKAnnotation?, reuseIdentifier: String?, configuration: FBAnnotationClusterViewConfiguration){ 36 | self.init(annotation: annotation, reuseIdentifier: reuseIdentifier) 37 | self.configuration = configuration 38 | self.setupView() 39 | } 40 | 41 | public override init(annotation: MKAnnotation?, reuseIdentifier: String?) { 42 | self.configuration = FBAnnotationClusterViewConfiguration.default() 43 | super.init(annotation: annotation, reuseIdentifier: reuseIdentifier) 44 | self.setupView() 45 | } 46 | 47 | required public init?(coder aDecoder: NSCoder) { 48 | self.configuration = FBAnnotationClusterViewConfiguration.default() 49 | super.init(coder: aDecoder) 50 | self.setupView() 51 | } 52 | 53 | private func setupView() { 54 | backgroundColor = UIColor.clear 55 | layer.borderColor = UIColor.white.cgColor 56 | addSubview(countLabel) 57 | } 58 | 59 | private func updateClusterSize() { 60 | if let cluster = annotation as? FBAnnotationCluster { 61 | 62 | let count = cluster.annotations.count 63 | let template = configuration.templateForCount(count: count) 64 | 65 | switch template.displayMode { 66 | case .Image(let imageName): 67 | image = UIImage(named: imageName) 68 | break 69 | case .SolidColor(let sideLength, let color): 70 | backgroundColor = color 71 | frame = CGRect(origin: frame.origin, size: CGSize(width: sideLength, height: sideLength)) 72 | break 73 | } 74 | 75 | layer.borderWidth = template.borderWidth 76 | countLabel.font = template.font 77 | countLabel.text = "\(count)" 78 | 79 | setNeedsLayout() 80 | } 81 | } 82 | 83 | override public func layoutSubviews() { 84 | super.layoutSubviews() 85 | countLabel.frame = bounds 86 | layer.cornerRadius = image == nil ? bounds.size.width / 2 : 0 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Pod/Classes/FBAnnotationClusterViewConfiguration.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBAnnotationClusterViewConfiguration.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Antoine Lamy on 23/9/2016. 6 | // Copyright (c) 2016 Antoine Lamy. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct FBAnnotationClusterViewConfiguration { 12 | 13 | let templates: [FBAnnotationClusterTemplate] 14 | let defaultTemplate: FBAnnotationClusterTemplate 15 | 16 | public init (templates: [FBAnnotationClusterTemplate], defaultTemplate: FBAnnotationClusterTemplate) { 17 | self.templates = templates 18 | self.defaultTemplate = defaultTemplate 19 | } 20 | 21 | public static func `default`() -> FBAnnotationClusterViewConfiguration { 22 | var smallTemplate = FBAnnotationClusterTemplate(range: Range(uncheckedBounds: (lower: 0, upper: 6)), sideLength: 30) 23 | smallTemplate.borderWidth = 3 24 | smallTemplate.fontSize = 13 25 | 26 | var mediumTemplate = FBAnnotationClusterTemplate(range: Range(uncheckedBounds: (lower: 6, upper: 15)), sideLength: 40) 27 | mediumTemplate.borderWidth = 4 28 | mediumTemplate.fontSize = 14 29 | 30 | var largeTemplate = FBAnnotationClusterTemplate(range: nil, sideLength: 50) 31 | largeTemplate.borderWidth = 5 32 | largeTemplate.fontSize = 15 33 | 34 | return FBAnnotationClusterViewConfiguration(templates: [smallTemplate, mediumTemplate], defaultTemplate: largeTemplate) 35 | } 36 | 37 | public func templateForCount(count: Int) -> FBAnnotationClusterTemplate { 38 | for template in templates { 39 | if template.range?.contains(count) ?? false { 40 | return template 41 | } 42 | } 43 | return self.defaultTemplate 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Pod/Classes/FBBoundingBox+MapKit.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBBoundingBox+MapKit.swift 3 | // Pods 4 | // 5 | // Created by Antoine Lamy on 23/9/2016. 6 | // 7 | // 8 | 9 | import Foundation 10 | import MapKit 11 | 12 | extension FBBoundingBox { 13 | 14 | init(mapRect: MKMapRect) { 15 | let topLeft = mapRect.origin.coordinate 16 | let bottomRight = MKMapPoint(x: mapRect.maxX, y: mapRect.maxY).coordinate 17 | 18 | let minLat = bottomRight.latitude 19 | let maxLat = topLeft.latitude 20 | 21 | let minLon = topLeft.longitude 22 | let maxLon = bottomRight.longitude 23 | 24 | self.init(x0: CGFloat(minLat), y0: CGFloat(minLon), xf: CGFloat(maxLat), yf: CGFloat(maxLon)) 25 | } 26 | 27 | func contains(coordinate: CLLocationCoordinate2D) -> Bool { 28 | let containsX = (x0 <= CGFloat(coordinate.latitude)) && (CGFloat(coordinate.latitude) <= xf) 29 | let containsY = (y0 <= CGFloat(coordinate.longitude)) && (CGFloat(coordinate.longitude) <= yf) 30 | return (containsX && containsY) 31 | } 32 | 33 | func mapRect() -> MKMapRect { 34 | let topLeft = MKMapPoint(CLLocationCoordinate2DMake(CLLocationDegrees(x0), CLLocationDegrees(y0))) 35 | let botRight = MKMapPoint(CLLocationCoordinate2DMake(CLLocationDegrees(xf), CLLocationDegrees(yf))) 36 | return MKMapRect(x: topLeft.x, y: botRight.y, width: fabs(botRight.x - topLeft.x), height: fabs(botRight.y - topLeft.y)) 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Pod/Classes/FBBoundingBox.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBBoundingBox.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct FBBoundingBox { 12 | 13 | let x0, y0, xf, yf: CGFloat 14 | } 15 | 16 | extension FBBoundingBox { 17 | 18 | var xMid: CGFloat { 19 | return (xf + x0) / 2.0 20 | } 21 | 22 | var yMid: CGFloat { 23 | return (yf + y0) / 2.0 24 | } 25 | 26 | func intersects(box2: FBBoundingBox) -> Bool { 27 | return (x0 <= box2.xf && xf >= box2.x0 && y0 <= box2.yf && yf >= box2.y0) 28 | } 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /Pod/Classes/FBClusteringManager.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBClusteringManager.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import MapKit 11 | 12 | public protocol FBClusteringManagerDelegate: NSObjectProtocol { 13 | func cellSizeFactor(forCoordinator coordinator: FBClusteringManager) -> CGFloat 14 | } 15 | 16 | public class FBClusteringManager { 17 | 18 | public weak var delegate: FBClusteringManagerDelegate? = nil 19 | 20 | private var backingTree: FBQuadTree? 21 | private var tree: FBQuadTree? { 22 | set { 23 | backingTree = newValue 24 | } 25 | get { 26 | if backingTree == nil { 27 | backingTree = FBQuadTree() 28 | } 29 | return backingTree 30 | } 31 | } 32 | private let lock = NSRecursiveLock() 33 | 34 | public init() { } 35 | 36 | public init(annotations: [MKAnnotation]) { 37 | add(annotations: annotations) 38 | } 39 | 40 | public func add(annotations:[MKAnnotation]){ 41 | lock.lock() 42 | for annotation in annotations { 43 | _ = tree?.insert(annotation: annotation) 44 | } 45 | lock.unlock() 46 | } 47 | 48 | public func removeAll() { 49 | tree = nil 50 | } 51 | 52 | public func replace(annotations:[MKAnnotation]){ 53 | removeAll() 54 | add(annotations: annotations) 55 | } 56 | 57 | public func allAnnotations() -> [MKAnnotation] { 58 | var annotations = [MKAnnotation]() 59 | lock.lock() 60 | tree?.enumerateAnnotationsUsingBlock(){ obj in 61 | annotations.append(obj) 62 | } 63 | lock.unlock() 64 | return annotations 65 | } 66 | 67 | public func clusteredAnnotations(withinMapRect rect:MKMapRect, zoomScale: Double) -> [MKAnnotation] { 68 | guard !zoomScale.isInfinite else { return [] } 69 | 70 | var cellSize = ZoomLevel(MKZoomScale(zoomScale)).cellSize() 71 | 72 | if let delegate = delegate { 73 | cellSize *= delegate.cellSizeFactor(forCoordinator: self) 74 | } 75 | 76 | let scaleFactor = zoomScale / Double(cellSize) 77 | 78 | let minX = Int(floor(rect.minX * scaleFactor)) 79 | let maxX = Int(floor(rect.maxX * scaleFactor)) 80 | let minY = Int(floor(rect.minY * scaleFactor)) 81 | let maxY = Int(floor(rect.maxY * scaleFactor)) 82 | 83 | var clusteredAnnotations = [MKAnnotation]() 84 | 85 | lock.lock() 86 | 87 | for i in minX...maxX { 88 | for j in minY...maxY { 89 | 90 | let mapPoint = MKMapPoint(x: Double(i) / scaleFactor, y: Double(j) / scaleFactor) 91 | let mapSize = MKMapSize(width: 1.0 / scaleFactor, height: 1.0 / scaleFactor) 92 | let mapRect = MKMapRect(origin: mapPoint, size: mapSize) 93 | let mapBox = FBBoundingBox(mapRect: mapRect) 94 | 95 | var totalLatitude: Double = 0 96 | var totalLongitude: Double = 0 97 | 98 | var annotations = [MKAnnotation]() 99 | 100 | tree?.enumerateAnnotations(inBox: mapBox) { obj in 101 | totalLatitude += obj.coordinate.latitude 102 | totalLongitude += obj.coordinate.longitude 103 | annotations.append(obj) 104 | } 105 | 106 | let count = annotations.count 107 | 108 | switch count { 109 | case 0: break 110 | case 1: 111 | clusteredAnnotations += annotations 112 | default: 113 | let coordinate = CLLocationCoordinate2D( 114 | latitude: CLLocationDegrees(totalLatitude)/CLLocationDegrees(count), 115 | longitude: CLLocationDegrees(totalLongitude)/CLLocationDegrees(count) 116 | ) 117 | let cluster = FBAnnotationCluster() 118 | cluster.coordinate = coordinate 119 | cluster.annotations = annotations 120 | clusteredAnnotations.append(cluster) 121 | } 122 | } 123 | } 124 | 125 | lock.unlock() 126 | 127 | return clusteredAnnotations 128 | } 129 | 130 | public func display(annotations: [MKAnnotation], onMapView mapView:MKMapView){ 131 | let before = NSMutableSet(array: mapView.annotations) 132 | before.remove(mapView.userLocation) 133 | 134 | let after = NSSet(array: annotations) 135 | 136 | let toKeep = NSMutableSet(set: before) 137 | toKeep.intersect(after as Set) 138 | 139 | let toAdd = NSMutableSet(set: after) 140 | toAdd.minus(toKeep as Set) 141 | 142 | let toRemove = NSMutableSet(set: before) 143 | toRemove.minus(after as Set) 144 | 145 | if let toAddAnnotations = toAdd.allObjects as? [MKAnnotation] { 146 | mapView.addAnnotations(toAddAnnotations) 147 | } 148 | 149 | if let removeAnnotations = toRemove.allObjects as? [MKAnnotation] { 150 | mapView.removeAnnotations(removeAnnotations) 151 | } 152 | } 153 | } 154 | -------------------------------------------------------------------------------- /Pod/Classes/FBQuadTree.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBQuadTree.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import MapKit 11 | 12 | open class FBQuadTree { 13 | 14 | let rootNode = FBQuadTreeNode(boundingBox: FBBoundingBox(mapRect: MKMapRect.world)) 15 | 16 | // MARK: Internal functions 17 | 18 | func insert(annotation: MKAnnotation) -> Bool { 19 | return insert(annotation: annotation, toNode:rootNode) 20 | } 21 | 22 | func enumerateAnnotations(inBox box: FBBoundingBox, callback: (MKAnnotation) -> Void) { 23 | enumerateAnnotations(inBox: box, withNode:rootNode, callback: callback) 24 | } 25 | 26 | func enumerateAnnotationsUsingBlock(_ callback: (MKAnnotation) -> Void) { 27 | enumerateAnnotations(inBox: FBBoundingBox(mapRect: MKMapRect.world), withNode:rootNode, callback:callback) 28 | } 29 | 30 | // MARK: Private functions 31 | 32 | private func insert(annotation: MKAnnotation, toNode node: FBQuadTreeNode) -> Bool { 33 | if !node.boundingBox.contains(coordinate: annotation.coordinate) { 34 | return false 35 | } 36 | 37 | if node.canAppendAnnotation() { 38 | return node.append(annotation: annotation) 39 | } 40 | 41 | let siblings = node.siblings() ?? node.createSiblings() 42 | 43 | if insert(annotation: annotation, toNode:siblings.northEast) { 44 | return true 45 | } 46 | 47 | if insert(annotation: annotation, toNode:siblings.northWest) { 48 | return true 49 | } 50 | 51 | if insert(annotation: annotation, toNode:siblings.southEast) { 52 | return true 53 | } 54 | 55 | if insert(annotation: annotation, toNode:siblings.southWest) { 56 | return true 57 | } 58 | 59 | return false 60 | } 61 | 62 | private func enumerateAnnotations(inBox box: FBBoundingBox, withNode node: FBQuadTreeNode, callback: (MKAnnotation) -> Void) { 63 | if !node.boundingBox.intersects(box2: box) { 64 | return 65 | } 66 | 67 | for annotation in node.annotations { 68 | if box.contains(coordinate: annotation.coordinate) { 69 | callback(annotation) 70 | } 71 | } 72 | 73 | if node.isLeaf() { 74 | return 75 | } 76 | 77 | if let northEast = node.northEast { 78 | enumerateAnnotations(inBox: box, withNode: northEast, callback: callback) 79 | } 80 | 81 | if let northWest = node.northWest { 82 | enumerateAnnotations(inBox: box, withNode: northWest, callback: callback) 83 | } 84 | 85 | if let southEast = node.southEast { 86 | enumerateAnnotations(inBox: box, withNode: southEast, callback: callback) 87 | } 88 | 89 | if let southWest = node.southWest { 90 | enumerateAnnotations(inBox: box, withNode: southWest, callback: callback) 91 | } 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /Pod/Classes/FBQuadTreeNode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBQuadTreeNode.swift 3 | // FBAnnotationClusteringSwift 4 | // 5 | // Created by Robert Chen on 4/2/15. 6 | // Copyright (c) 2015 Robert Chen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import MapKit 11 | 12 | open class FBQuadTreeNode { 13 | 14 | static let NodeCapacity = 8 15 | 16 | let boundingBox: FBBoundingBox 17 | private(set) var annotations: [MKAnnotation] = [] 18 | 19 | private(set) var northEast: FBQuadTreeNode? 20 | private(set) var northWest: FBQuadTreeNode? 21 | private(set) var southEast: FBQuadTreeNode? 22 | private(set) var southWest: FBQuadTreeNode? 23 | 24 | // MARK: - Initializers 25 | 26 | init(boundingBox box: FBBoundingBox) { 27 | boundingBox = box 28 | } 29 | 30 | // MARK: - Instance functions 31 | 32 | func canAppendAnnotation() -> Bool { 33 | return annotations.count < FBQuadTreeNode.NodeCapacity 34 | } 35 | 36 | func append(annotation: MKAnnotation) -> Bool { 37 | if canAppendAnnotation() { 38 | annotations.append(annotation) 39 | return true 40 | } 41 | return false 42 | } 43 | 44 | func isLeaf() -> Bool { 45 | return (northEast == nil) ? true : false 46 | } 47 | 48 | func siblings() -> (northEast: FBQuadTreeNode, northWest: FBQuadTreeNode, southEast: FBQuadTreeNode, southWest: FBQuadTreeNode)? { 49 | if let northEast = northEast, 50 | let northWest = northWest, 51 | let southEast = southEast, 52 | let southWest = southWest { 53 | return (northEast, northWest, southEast, southWest) 54 | } else { 55 | return nil 56 | } 57 | } 58 | 59 | func createSiblings() -> (northEast: FBQuadTreeNode, northWest: FBQuadTreeNode, southEast: FBQuadTreeNode, southWest: FBQuadTreeNode) { 60 | let box = boundingBox 61 | northEast = FBQuadTreeNode(boundingBox: FBBoundingBox(x0: box.xMid, y0: box.y0, xf: box.xf, yf: box.yMid)) 62 | northWest = FBQuadTreeNode(boundingBox: FBBoundingBox(x0: box.x0, y0: box.y0, xf: box.xMid, yf: box.yMid)) 63 | southEast = FBQuadTreeNode(boundingBox: FBBoundingBox(x0: box.xMid, y0: box.yMid, xf: box.xf, yf: box.yf)) 64 | southWest = FBQuadTreeNode(boundingBox: FBBoundingBox(x0: box.x0, y0: box.yMid, xf: box.xMid, yf: box.yf)) 65 | 66 | return (northEast!, northWest!, southEast!, southWest!) 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /Pod/Classes/FBZoomLevel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FBZoomLevel.swift 3 | // Pods 4 | // 5 | // Created by Antoine Lamy on 25/9/2016. 6 | // 7 | // 8 | 9 | import Foundation 10 | import MapKit 11 | 12 | typealias ZoomLevel = Int 13 | extension ZoomLevel { 14 | 15 | init(scale: MKZoomScale) { 16 | let totalTilesAtMaxZoom = MKMapSize.world.width / 256.0 17 | let zoomLevelAtMaxZoom = Int(log2(totalTilesAtMaxZoom)) 18 | let floorLog2ScaleFloat = floor(log2f(Float(scale))) + 0.5 19 | 20 | if !floorLog2ScaleFloat.isInfinite { 21 | let sum = zoomLevelAtMaxZoom + Int(floorLog2ScaleFloat) 22 | let zoomLevel = altmax(0, sum) 23 | self = zoomLevel 24 | } else { 25 | self = floorLog2ScaleFloat.sign == .plus ? 0 : 19 26 | } 27 | } 28 | 29 | func cellSize() -> CGFloat { 30 | switch (self) { 31 | case 13...15: 32 | return 64 33 | case 16...18: 34 | return 32 35 | case 18 ..< Int.max: 36 | return 16 37 | default: 38 | return 88 // Less than 13 39 | } 40 | } 41 | } 42 | 43 | // Required due to conflict with Int static variable 'max' 44 | public func altmax(_ x: T, _ y: T) -> T { 45 | return max(x, y) 46 | } 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FBAnnotationClusteringSwift 2 | 3 | This is a Swift translation of [FBAnnotationClustering](https://github.com/infinum/FBAnnotationClustering). Aggregates map pins into a single numbered cluster. 4 | 5 | Map clustering is a common enough map feature in modern apps. When I couldn't find a Swift library, I ended up translating one from Objective-C. The library of choice was FBAnnotationClustering (FB stands for Filip Bec, not Facebook). I wanted something that was fast (QuadTree), with a light code base in case I had to figure out and troubleshoot an edge case down the road. 6 | 7 | ![Simulator Image](https://github.com/ribl/FBAnnotationClusteringSwift/blob/master/GitHubImages/simulatorShot.png) 8 | 9 | (left: sample project with a lot of pins in the DC area. right: ribl screenshot using clusters) 10 | 11 | ## Installation 12 | 13 | #### CocoaPods 14 | ```console 15 | pod 'FBAnnotationClusteringSwift' 16 | ``` 17 | and in class where do you need add this 18 | 19 | ```console 20 | import FBAnnotationClusteringSwift 21 | ``` 22 | 23 | 24 | 25 | #### Manually 26 | 27 | Copy the following Swift files to your project: 28 | 29 | * FBClusteringManager.swift 30 | * FBAnnotation.swift 31 | * FBAnnotationCluster.swift 32 | * FBAnnotationClusterTemplate.swift 33 | * FBAnnotationClusterView.swift 34 | * FBAnnotationClusterViewConfiguration.swift 35 | * FBAnnotation.swift 36 | * FBQuadTree.swift 37 | * FBQuadTreeNode.swift 38 | * FBBoundingBox.swift 39 | * FBBoundingBox+MapKit.swift 40 | 41 | ## Usage 42 | 43 | Use FBViewController.swift as a guide. For demonstration purposes, it drops 1000 random pins near Ghana. 44 | 45 | Follow instructions below for a barely-working implementation. 46 | 47 | ### Step 1: Get a handle to the clustering manager 48 | 49 | ```swift 50 | let clusteringManager = FBClusteringManager() 51 | ``` 52 | 53 | ### Step 2: Feed pins into the clustering manager 54 | 55 | ```swift 56 | var array:[FBAnnotation] = [] 57 | 58 | // drop two arbitrary pins somewhere near Louisville, Kentucky 59 | let pinOne = FBAnnotation() 60 | pinOne.coordinate = CLLocationCoordinate2D(latitude: 38.188805, longitude: -85.6767705) 61 | 62 | let pinTwo = FBAnnotation() 63 | pinTwo.coordinate = CLLocationCoordinate2D(latitude: 38.188806, longitude: -85.6767707) 64 | 65 | array.append(pinOne) 66 | array.append(pinTwo) 67 | 68 | clusteringManager.add(annotations: array) 69 | ``` 70 | 71 | ### Step 3: Wire up your map 72 | 73 | Add this to the top of your ViewController: 74 | 75 | ```swift 76 | import MapKit 77 | ``` 78 | 79 | Add a MapKit View in the Storyboard, and set the delegate. 80 | 81 | ### Step 4: Return either a cluster or a pin in the MKMapViewDelegate 82 | 83 | Drop in these MKMapViewDelegate methods: 84 | 85 | ```swift 86 | extension ViewController: MKMapViewDelegate { 87 | 88 | func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) { 89 | DispatchQueue.global(qos: .userInitiated).async { 90 | let mapBoundsWidth = Double(self.mapView.bounds.size.width) 91 | let mapRectWidth = self.mapView.visibleMapRect.size.width 92 | let scale = mapBoundsWidth / mapRectWidth 93 | 94 | let annotationArray = self.clusteringManager.clusteredAnnotations(withinMapRect: self.mapView.visibleMapRect, zoomScale:scale) 95 | 96 | DispatchQueue.main.async { 97 | self.clusteringManager.display(annotations: annotationArray, onMapView:self.mapView) 98 | } 99 | } 100 | } 101 | 102 | func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? { 103 | var reuseId = "" 104 | if annotation is FBAnnotationCluster { 105 | reuseId = "Cluster" 106 | var clusterView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) 107 | if clusterView == nil { 108 | clusterView = FBAnnotationClusterView(annotation: annotation, reuseIdentifier: reuseId, configuration: FBAnnotationClusterViewConfiguration.default()) 109 | } else { 110 | clusterView?.annotation = annotation 111 | } 112 | return clusterView 113 | } else { 114 | reuseId = "Pin" 115 | var pinView = mapView.dequeueReusableAnnotationView(withIdentifier: reuseId) as? MKPinAnnotationView 116 | if pinView == nil { 117 | pinView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: reuseId) 118 | pinView?.pinTintColor = UIColor.green 119 | } else { 120 | pinView?.annotation = annotation 121 | } 122 | return pinView 123 | } 124 | } 125 | 126 | } 127 | ``` 128 | 129 | ## Run Example 130 | If you want run example, before to open Xcode the first time, open Terminal in Example folder and run the command: 131 | 132 | ```console 133 | pod install 134 | ``` 135 | 136 | After than open the .xworkspace file generated. 137 | 138 | ### Customizing cluster appearance 139 | Cluster's range and appearance are fully customizable via the FBAnnotationClusterViewConfiguration class. Each range have his own template (FBAnnotationClusterTemplate) allowing each segment to look different. You can create as many templates you like as long the ranges don't overlap each others. Each template can be either displayed as a circle with a solid color and a stroke or as an image. 140 | 141 | #### Custom Solid Color Template 142 | Just take a look at FBAnnotationClusterViewConfiguration.default() function. 143 | 144 | #### Custom Image Template 145 | TODO 146 | 147 | ### Migration from 1.0 148 | TODO 149 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------