├── .gitignore ├── .travis.yml ├── Examples ├── Examples.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── Examples.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Examples │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Pods │ ├── Local Podspecs │ ├── MessageViewController.podspec.json │ └── Squawk.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Target Support Files │ ├── Pods-Examples │ ├── Info.plist │ ├── Pods-Examples-acknowledgements.markdown │ ├── Pods-Examples-acknowledgements.plist │ ├── Pods-Examples-dummy.m │ ├── Pods-Examples-frameworks.sh │ ├── Pods-Examples-resources.sh │ ├── Pods-Examples-umbrella.h │ ├── Pods-Examples.debug.xcconfig │ ├── Pods-Examples.modulemap │ └── Pods-Examples.release.xcconfig │ └── Squawk │ ├── Info.plist │ ├── Squawk-dummy.m │ ├── Squawk-prefix.pch │ ├── Squawk-umbrella.h │ ├── Squawk.modulemap │ └── Squawk.xcconfig ├── LICENSE ├── README.md ├── Source ├── Anchor.swift ├── Info.plist ├── RubberBandDistance.swift ├── Squawk+Configuration.swift ├── Squawk.h ├── Squawk.swift ├── SquawkItem.swift ├── SquawkView.swift ├── SquawkViewDelegate.swift └── UIViewController+SearchChildren.swift ├── Squawk.podspec ├── Squawk.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── Tests ├── Info.plist └── Tests.swift └── readme.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## OSX 6 | .DS_Store 7 | 8 | ## Build generated 9 | build/ 10 | DerivedData/ 11 | 12 | ## Various settings 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata/ 22 | 23 | ## Other 24 | *.moved-aside 25 | *.xccheckout 26 | *.xcscmblueprint 27 | 28 | ## Obj-C/Swift specific 29 | *.hmap 30 | *.ipa 31 | *.dSYM.zip 32 | *.dSYM 33 | 34 | ## Playgrounds 35 | timeline.xctimeline 36 | playground.xcworkspace 37 | 38 | # Swift Package Manager 39 | # 40 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 41 | # Packages/ 42 | # Package.pins 43 | .build/ 44 | 45 | # CocoaPods 46 | # 47 | # We recommend against adding the Pods directory to your .gitignore. However 48 | # you should judge for yourself, the pros and cons are mentioned at: 49 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 50 | # 51 | # Pods/ 52 | 53 | # Carthage 54 | # 55 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 56 | # Carthage/Checkouts 57 | 58 | Carthage/Build 59 | 60 | # fastlane 61 | # 62 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 63 | # screenshots whenever they are needed. 64 | # For more information about the recommended setup visit: 65 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 66 | 67 | fastlane/report.xml 68 | fastlane/Preview.html 69 | fastlane/screenshots 70 | fastlane/test_output 71 | node_modules 72 | 73 | # Jekyll 74 | _site/ 75 | .sass-cache/ 76 | .jekyll-metadata 77 | 78 | # secrets 79 | Resources/*.xcconfig 80 | *Secrets.swift* 81 | 82 | 83 | # FBSnapshotTestCase Failure Diffs 84 | FailureDiffs/ 85 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: swift 2 | osx_image: xcode9 3 | script: 4 | - xcodebuild clean -project Examples/Examples.xcodeproj -scheme Examples -destination "platform=iOS Simulator,name=iPhone X,OS=latest" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -quiet -------------------------------------------------------------------------------- /Examples/Examples.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 29B9821A201E738F0002DA39 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29B98219201E738F0002DA39 /* AppDelegate.swift */; }; 11 | 29B9821C201E738F0002DA39 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29B9821B201E738F0002DA39 /* ViewController.swift */; }; 12 | 29B9821F201E738F0002DA39 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29B9821D201E738F0002DA39 /* Main.storyboard */; }; 13 | 29B98221201E738F0002DA39 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29B98220201E738F0002DA39 /* Assets.xcassets */; }; 14 | 29B98224201E738F0002DA39 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29B98222201E738F0002DA39 /* LaunchScreen.storyboard */; }; 15 | F1853F7DA8154EE0445635E8 /* Pods_Examples.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED52AE6262621EC068E03175 /* Pods_Examples.framework */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 29B98216201E738F0002DA39 /* Examples.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Examples.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 29B98219201E738F0002DA39 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 21 | 29B9821B201E738F0002DA39 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 22 | 29B9821E201E738F0002DA39 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 23 | 29B98220201E738F0002DA39 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 24 | 29B98223201E738F0002DA39 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 25 | 29B98225201E738F0002DA39 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 26 | 4E79D4C5EBE348AD119C48B8 /* Pods-Examples.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Examples.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Examples/Pods-Examples.debug.xcconfig"; sourceTree = ""; }; 27 | DD56F9EEABCCBEED1876F732 /* Pods-Examples.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Examples.release.xcconfig"; path = "Pods/Target Support Files/Pods-Examples/Pods-Examples.release.xcconfig"; sourceTree = ""; }; 28 | ED52AE6262621EC068E03175 /* Pods_Examples.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Examples.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 29B98213201E738F0002DA39 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | F1853F7DA8154EE0445635E8 /* Pods_Examples.framework in Frameworks */, 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 29B9820D201E738F0002DA39 = { 44 | isa = PBXGroup; 45 | children = ( 46 | 29B98218201E738F0002DA39 /* Examples */, 47 | 29B98217201E738F0002DA39 /* Products */, 48 | 6E0EF88941CDDCF8FF8D4174 /* Pods */, 49 | 7D416EB3D3EF3FC7EB60266C /* Frameworks */, 50 | ); 51 | sourceTree = ""; 52 | }; 53 | 29B98217201E738F0002DA39 /* Products */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 29B98216201E738F0002DA39 /* Examples.app */, 57 | ); 58 | name = Products; 59 | sourceTree = ""; 60 | }; 61 | 29B98218201E738F0002DA39 /* Examples */ = { 62 | isa = PBXGroup; 63 | children = ( 64 | 29B98219201E738F0002DA39 /* AppDelegate.swift */, 65 | 29B9821B201E738F0002DA39 /* ViewController.swift */, 66 | 29B9821D201E738F0002DA39 /* Main.storyboard */, 67 | 29B98220201E738F0002DA39 /* Assets.xcassets */, 68 | 29B98222201E738F0002DA39 /* LaunchScreen.storyboard */, 69 | 29B98225201E738F0002DA39 /* Info.plist */, 70 | ); 71 | path = Examples; 72 | sourceTree = ""; 73 | }; 74 | 6E0EF88941CDDCF8FF8D4174 /* Pods */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 4E79D4C5EBE348AD119C48B8 /* Pods-Examples.debug.xcconfig */, 78 | DD56F9EEABCCBEED1876F732 /* Pods-Examples.release.xcconfig */, 79 | ); 80 | name = Pods; 81 | sourceTree = ""; 82 | }; 83 | 7D416EB3D3EF3FC7EB60266C /* Frameworks */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | ED52AE6262621EC068E03175 /* Pods_Examples.framework */, 87 | ); 88 | name = Frameworks; 89 | sourceTree = ""; 90 | }; 91 | /* End PBXGroup section */ 92 | 93 | /* Begin PBXNativeTarget section */ 94 | 29B98215201E738F0002DA39 /* Examples */ = { 95 | isa = PBXNativeTarget; 96 | buildConfigurationList = 29B98228201E738F0002DA39 /* Build configuration list for PBXNativeTarget "Examples" */; 97 | buildPhases = ( 98 | A7118C61A3240F5484A5E4C8 /* [CP] Check Pods Manifest.lock */, 99 | 29B98212201E738F0002DA39 /* Sources */, 100 | 29B98213201E738F0002DA39 /* Frameworks */, 101 | 29B98214201E738F0002DA39 /* Resources */, 102 | 8D226DA12211905BC93F2571 /* [CP] Embed Pods Frameworks */, 103 | ); 104 | buildRules = ( 105 | ); 106 | dependencies = ( 107 | ); 108 | name = Examples; 109 | productName = Examples; 110 | productReference = 29B98216201E738F0002DA39 /* Examples.app */; 111 | productType = "com.apple.product-type.application"; 112 | }; 113 | /* End PBXNativeTarget section */ 114 | 115 | /* Begin PBXProject section */ 116 | 29B9820E201E738F0002DA39 /* Project object */ = { 117 | isa = PBXProject; 118 | attributes = { 119 | LastSwiftUpdateCheck = 0920; 120 | LastUpgradeCheck = 0920; 121 | ORGANIZATIONNAME = "Ryan Nystrom"; 122 | TargetAttributes = { 123 | 29B98215201E738F0002DA39 = { 124 | CreatedOnToolsVersion = 9.2; 125 | ProvisioningStyle = Automatic; 126 | }; 127 | }; 128 | }; 129 | buildConfigurationList = 29B98211201E738F0002DA39 /* Build configuration list for PBXProject "Examples" */; 130 | compatibilityVersion = "Xcode 8.0"; 131 | developmentRegion = en; 132 | hasScannedForEncodings = 0; 133 | knownRegions = ( 134 | en, 135 | Base, 136 | ); 137 | mainGroup = 29B9820D201E738F0002DA39; 138 | productRefGroup = 29B98217201E738F0002DA39 /* Products */; 139 | projectDirPath = ""; 140 | projectRoot = ""; 141 | targets = ( 142 | 29B98215201E738F0002DA39 /* Examples */, 143 | ); 144 | }; 145 | /* End PBXProject section */ 146 | 147 | /* Begin PBXResourcesBuildPhase section */ 148 | 29B98214201E738F0002DA39 /* Resources */ = { 149 | isa = PBXResourcesBuildPhase; 150 | buildActionMask = 2147483647; 151 | files = ( 152 | 29B98224201E738F0002DA39 /* LaunchScreen.storyboard in Resources */, 153 | 29B98221201E738F0002DA39 /* Assets.xcassets in Resources */, 154 | 29B9821F201E738F0002DA39 /* Main.storyboard in Resources */, 155 | ); 156 | runOnlyForDeploymentPostprocessing = 0; 157 | }; 158 | /* End PBXResourcesBuildPhase section */ 159 | 160 | /* Begin PBXShellScriptBuildPhase section */ 161 | 8D226DA12211905BC93F2571 /* [CP] Embed Pods Frameworks */ = { 162 | isa = PBXShellScriptBuildPhase; 163 | buildActionMask = 2147483647; 164 | files = ( 165 | ); 166 | inputPaths = ( 167 | "${SRCROOT}/Pods/Target Support Files/Pods-Examples/Pods-Examples-frameworks.sh", 168 | "${BUILT_PRODUCTS_DIR}/Squawk/Squawk.framework", 169 | ); 170 | name = "[CP] Embed Pods Frameworks"; 171 | outputPaths = ( 172 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Squawk.framework", 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | shellPath = /bin/sh; 176 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Examples/Pods-Examples-frameworks.sh\"\n"; 177 | showEnvVarsInLog = 0; 178 | }; 179 | A7118C61A3240F5484A5E4C8 /* [CP] Check Pods Manifest.lock */ = { 180 | isa = PBXShellScriptBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | ); 184 | inputPaths = ( 185 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 186 | "${PODS_ROOT}/Manifest.lock", 187 | ); 188 | name = "[CP] Check Pods Manifest.lock"; 189 | outputPaths = ( 190 | "$(DERIVED_FILE_DIR)/Pods-Examples-checkManifestLockResult.txt", 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | shellPath = /bin/sh; 194 | 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"; 195 | showEnvVarsInLog = 0; 196 | }; 197 | /* End PBXShellScriptBuildPhase section */ 198 | 199 | /* Begin PBXSourcesBuildPhase section */ 200 | 29B98212201E738F0002DA39 /* Sources */ = { 201 | isa = PBXSourcesBuildPhase; 202 | buildActionMask = 2147483647; 203 | files = ( 204 | 29B9821C201E738F0002DA39 /* ViewController.swift in Sources */, 205 | 29B9821A201E738F0002DA39 /* AppDelegate.swift in Sources */, 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | }; 209 | /* End PBXSourcesBuildPhase section */ 210 | 211 | /* Begin PBXVariantGroup section */ 212 | 29B9821D201E738F0002DA39 /* Main.storyboard */ = { 213 | isa = PBXVariantGroup; 214 | children = ( 215 | 29B9821E201E738F0002DA39 /* Base */, 216 | ); 217 | name = Main.storyboard; 218 | sourceTree = ""; 219 | }; 220 | 29B98222201E738F0002DA39 /* LaunchScreen.storyboard */ = { 221 | isa = PBXVariantGroup; 222 | children = ( 223 | 29B98223201E738F0002DA39 /* Base */, 224 | ); 225 | name = LaunchScreen.storyboard; 226 | sourceTree = ""; 227 | }; 228 | /* End PBXVariantGroup section */ 229 | 230 | /* Begin XCBuildConfiguration section */ 231 | 29B98226201E738F0002DA39 /* Debug */ = { 232 | isa = XCBuildConfiguration; 233 | buildSettings = { 234 | ALWAYS_SEARCH_USER_PATHS = NO; 235 | CLANG_ANALYZER_NONNULL = YES; 236 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 237 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 238 | CLANG_CXX_LIBRARY = "libc++"; 239 | CLANG_ENABLE_MODULES = YES; 240 | CLANG_ENABLE_OBJC_ARC = YES; 241 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 242 | CLANG_WARN_BOOL_CONVERSION = YES; 243 | CLANG_WARN_COMMA = YES; 244 | CLANG_WARN_CONSTANT_CONVERSION = YES; 245 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 246 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 247 | CLANG_WARN_EMPTY_BODY = YES; 248 | CLANG_WARN_ENUM_CONVERSION = YES; 249 | CLANG_WARN_INFINITE_RECURSION = YES; 250 | CLANG_WARN_INT_CONVERSION = YES; 251 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 252 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 253 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 254 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 255 | CLANG_WARN_STRICT_PROTOTYPES = YES; 256 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 257 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 258 | CLANG_WARN_UNREACHABLE_CODE = YES; 259 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 260 | CODE_SIGN_IDENTITY = "iPhone Developer"; 261 | COPY_PHASE_STRIP = NO; 262 | DEBUG_INFORMATION_FORMAT = dwarf; 263 | ENABLE_STRICT_OBJC_MSGSEND = YES; 264 | ENABLE_TESTABILITY = YES; 265 | GCC_C_LANGUAGE_STANDARD = gnu11; 266 | GCC_DYNAMIC_NO_PIC = NO; 267 | GCC_NO_COMMON_BLOCKS = YES; 268 | GCC_OPTIMIZATION_LEVEL = 0; 269 | GCC_PREPROCESSOR_DEFINITIONS = ( 270 | "DEBUG=1", 271 | "$(inherited)", 272 | ); 273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 275 | GCC_WARN_UNDECLARED_SELECTOR = YES; 276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 277 | GCC_WARN_UNUSED_FUNCTION = YES; 278 | GCC_WARN_UNUSED_VARIABLE = YES; 279 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 280 | MTL_ENABLE_DEBUG_INFO = YES; 281 | ONLY_ACTIVE_ARCH = YES; 282 | SDKROOT = iphoneos; 283 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 284 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 285 | }; 286 | name = Debug; 287 | }; 288 | 29B98227201E738F0002DA39 /* Release */ = { 289 | isa = XCBuildConfiguration; 290 | buildSettings = { 291 | ALWAYS_SEARCH_USER_PATHS = NO; 292 | CLANG_ANALYZER_NONNULL = YES; 293 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 294 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 295 | CLANG_CXX_LIBRARY = "libc++"; 296 | CLANG_ENABLE_MODULES = YES; 297 | CLANG_ENABLE_OBJC_ARC = YES; 298 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 299 | CLANG_WARN_BOOL_CONVERSION = YES; 300 | CLANG_WARN_COMMA = YES; 301 | CLANG_WARN_CONSTANT_CONVERSION = YES; 302 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 303 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 304 | CLANG_WARN_EMPTY_BODY = YES; 305 | CLANG_WARN_ENUM_CONVERSION = YES; 306 | CLANG_WARN_INFINITE_RECURSION = YES; 307 | CLANG_WARN_INT_CONVERSION = YES; 308 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 309 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 310 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 311 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 312 | CLANG_WARN_STRICT_PROTOTYPES = YES; 313 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 314 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 315 | CLANG_WARN_UNREACHABLE_CODE = YES; 316 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 317 | CODE_SIGN_IDENTITY = "iPhone Developer"; 318 | COPY_PHASE_STRIP = NO; 319 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 320 | ENABLE_NS_ASSERTIONS = NO; 321 | ENABLE_STRICT_OBJC_MSGSEND = YES; 322 | GCC_C_LANGUAGE_STANDARD = gnu11; 323 | GCC_NO_COMMON_BLOCKS = YES; 324 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 325 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 326 | GCC_WARN_UNDECLARED_SELECTOR = YES; 327 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 328 | GCC_WARN_UNUSED_FUNCTION = YES; 329 | GCC_WARN_UNUSED_VARIABLE = YES; 330 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 331 | MTL_ENABLE_DEBUG_INFO = NO; 332 | SDKROOT = iphoneos; 333 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 334 | VALIDATE_PRODUCT = YES; 335 | }; 336 | name = Release; 337 | }; 338 | 29B98229201E738F0002DA39 /* Debug */ = { 339 | isa = XCBuildConfiguration; 340 | baseConfigurationReference = 4E79D4C5EBE348AD119C48B8 /* Pods-Examples.debug.xcconfig */; 341 | buildSettings = { 342 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 343 | CODE_SIGN_STYLE = Automatic; 344 | DEVELOPMENT_TEAM = 523C4DWBTH; 345 | INFOPLIST_FILE = Examples/Info.plist; 346 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 347 | PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.Examples; 348 | PRODUCT_NAME = "$(TARGET_NAME)"; 349 | SWIFT_VERSION = 4.0; 350 | TARGETED_DEVICE_FAMILY = "1,2"; 351 | }; 352 | name = Debug; 353 | }; 354 | 29B9822A201E738F0002DA39 /* Release */ = { 355 | isa = XCBuildConfiguration; 356 | baseConfigurationReference = DD56F9EEABCCBEED1876F732 /* Pods-Examples.release.xcconfig */; 357 | buildSettings = { 358 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 359 | CODE_SIGN_STYLE = Automatic; 360 | DEVELOPMENT_TEAM = 523C4DWBTH; 361 | INFOPLIST_FILE = Examples/Info.plist; 362 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 363 | PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.Examples; 364 | PRODUCT_NAME = "$(TARGET_NAME)"; 365 | SWIFT_VERSION = 4.0; 366 | TARGETED_DEVICE_FAMILY = "1,2"; 367 | }; 368 | name = Release; 369 | }; 370 | /* End XCBuildConfiguration section */ 371 | 372 | /* Begin XCConfigurationList section */ 373 | 29B98211201E738F0002DA39 /* Build configuration list for PBXProject "Examples" */ = { 374 | isa = XCConfigurationList; 375 | buildConfigurations = ( 376 | 29B98226201E738F0002DA39 /* Debug */, 377 | 29B98227201E738F0002DA39 /* Release */, 378 | ); 379 | defaultConfigurationIsVisible = 0; 380 | defaultConfigurationName = Release; 381 | }; 382 | 29B98228201E738F0002DA39 /* Build configuration list for PBXNativeTarget "Examples" */ = { 383 | isa = XCConfigurationList; 384 | buildConfigurations = ( 385 | 29B98229201E738F0002DA39 /* Debug */, 386 | 29B9822A201E738F0002DA39 /* Release */, 387 | ); 388 | defaultConfigurationIsVisible = 0; 389 | defaultConfigurationName = Release; 390 | }; 391 | /* End XCConfigurationList section */ 392 | }; 393 | rootObject = 29B9820E201E738F0002DA39 /* Project object */; 394 | } 395 | -------------------------------------------------------------------------------- /Examples/Examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Examples.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Examples/Examples.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Examples/Examples/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Examples 4 | // 5 | // Created by Ryan Nystrom on 1/28/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Examples/Examples/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /Examples/Examples/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Examples/Examples/Base.lproj/LaunchScreen.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 | -------------------------------------------------------------------------------- /Examples/Examples/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 73 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /Examples/Examples/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Examples/Examples/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Examples 4 | // 5 | // Created by Ryan Nystrom on 1/28/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Squawk 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBAction func onInfo(_ sender: Any) { 15 | Squawk.shared.show(config: Squawk.Configuration( 16 | text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." 17 | )) 18 | } 19 | 20 | @IBAction func onText(_ sender: Any) { 21 | Squawk.shared.show(config: Squawk.Configuration( 22 | text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 23 | buttonVisible: true, 24 | buttonTapHandler: { 25 | print("did tap info button") 26 | })) 27 | } 28 | 29 | } 30 | 31 | -------------------------------------------------------------------------------- /Examples/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | platform :ios, '11.0' 3 | 4 | target 'Examples' do 5 | pod 'Squawk', :path => '../Squawk.podspec' 6 | end 7 | -------------------------------------------------------------------------------- /Examples/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Squawk (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Squawk (from `../Squawk.podspec`) 6 | 7 | EXTERNAL SOURCES: 8 | Squawk: 9 | :path: "../Squawk.podspec" 10 | 11 | SPEC CHECKSUMS: 12 | Squawk: ced86daf8ad0465a67b1f3f40dc655323fc89d8a 13 | 14 | PODFILE CHECKSUM: 5dc59d90da9b2a2290f6f9a5fe6a6f7caaf8a4d0 15 | 16 | COCOAPODS: 1.5.2 17 | -------------------------------------------------------------------------------- /Examples/Pods/Local Podspecs/MessageViewController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MessageViewController", 3 | "version": "0.2.1", 4 | "license": { 5 | "type": "MIT" 6 | }, 7 | "homepage": "https://github.com/GitHawkApp/MessageViewController", 8 | "authors": { 9 | "Ryan Nystrom": "rnystrom@whoisryannystrom.com" 10 | }, 11 | "summary": "Replacement for SlackTextViewController.", 12 | "source": { 13 | "git": "https://github.com/GitHawkApp/MessageViewController.git", 14 | "tag": "0.2.1" 15 | }, 16 | "source_files": "MessageViewController/*.swift", 17 | "platforms": { 18 | "ios": "9.0" 19 | }, 20 | "swift_version": "4.0" 21 | } 22 | -------------------------------------------------------------------------------- /Examples/Pods/Local Podspecs/Squawk.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Squawk", 3 | "version": "0.1.0", 4 | "license": { 5 | "type": "MIT" 6 | }, 7 | "homepage": "https://github.com/GitHawkApp/Squawk", 8 | "authors": { 9 | "Ryan Nystrom": "rnystrom@whoisryannystrom.com" 10 | }, 11 | "summary": "Quick & interactive alerts.", 12 | "source": { 13 | "git": "https://github.com/GitHawkApp/Squawk.git", 14 | "tag": "0.1.0" 15 | }, 16 | "source_files": "Source/*.swift", 17 | "platforms": { 18 | "ios": "11.0" 19 | }, 20 | "swift_version": "4.0" 21 | } 22 | -------------------------------------------------------------------------------- /Examples/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Squawk (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Squawk (from `../Squawk.podspec`) 6 | 7 | EXTERNAL SOURCES: 8 | Squawk: 9 | :path: "../Squawk.podspec" 10 | 11 | SPEC CHECKSUMS: 12 | Squawk: ced86daf8ad0465a67b1f3f40dc655323fc89d8a 13 | 14 | PODFILE CHECKSUM: 5dc59d90da9b2a2290f6f9a5fe6a6f7caaf8a4d0 15 | 16 | COCOAPODS: 1.5.2 17 | -------------------------------------------------------------------------------- /Examples/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0BE6ED0850A6609B563986FBC29D061A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 11 | 1E2C56A3C338C073E420E964A8B24206 /* SquawkViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031CA243A93B1B7E09DA1DC7D5932805 /* SquawkViewDelegate.swift */; }; 12 | 1ECC49EA8C528B2F65008EA0D35786C8 /* RubberBandDistance.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB0AEE61C4838723C1B1F39463CDFAF5 /* RubberBandDistance.swift */; }; 13 | 5057016260DBCF878D924B09C3C78003 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 14 | 574F47E4B296341C803AB76B7974A160 /* Pods-Examples-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 088CE4DEBD5AFD36D1D4293911018293 /* Pods-Examples-dummy.m */; }; 15 | 7BE119CC992A4A047B5314C9A0FBD033 /* Squawk.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2BE1343651DF65D93FCE00E074CAEF1F /* Squawk.swift */; }; 16 | 84549F9CE8AEE84C512749969241F743 /* SquawkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A016A06C91453AC38504A32C0DD4E741 /* SquawkView.swift */; }; 17 | 883D155741524A57B41C88DB23EA7DEF /* Pods-Examples-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 708CE1D611334D20D20054A47B165A45 /* Pods-Examples-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 96D5A028D56D042A616F1115202424A0 /* UIViewController+SearchChildren.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6F35036694E0F56D248E497CB22D0D6 /* UIViewController+SearchChildren.swift */; }; 19 | B806222F831E2DE4C8C7CFAE70A57336 /* Anchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 602B0C20712E9AD7E0ADAA1F043B63D5 /* Anchor.swift */; }; 20 | CBCB36E9AA74C721DA2B4FC646F22EA2 /* Squawk-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AA39A859B6FF6C02633A9EF9196D86E /* Squawk-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | D94C8EAF577A1A04C23D54B3F2F7ED11 /* Squawk+Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFE116F7D437E77AC722EF150A5E70BE /* Squawk+Configuration.swift */; }; 22 | F51D5D795723A9E6C866BA86C19E66F0 /* SquawkItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85A62EB7420AEFE5BF047346D00AA188 /* SquawkItem.swift */; }; 23 | FC11C3BE95599F659162EAF769662C16 /* Squawk-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B0C7FFA8CACF8E49BD5938A6BCD72DF /* Squawk-dummy.m */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | FE238E80998D43D7C5C844719CD71182 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = B320C2A7D48CBEE840AA78C6BE3D7700; 32 | remoteInfo = Squawk; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | 02D0B8606ADA074400395F65AAB41CE7 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 38 | 031CA243A93B1B7E09DA1DC7D5932805 /* SquawkViewDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SquawkViewDelegate.swift; path = Source/SquawkViewDelegate.swift; sourceTree = ""; }; 39 | 088CE4DEBD5AFD36D1D4293911018293 /* Pods-Examples-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Examples-dummy.m"; sourceTree = ""; }; 40 | 0E85C4F4BE728F6D81B641C896B26881 /* Pods-Examples-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Examples-acknowledgements.markdown"; sourceTree = ""; }; 41 | 13EB50F2F2777D6407B5E4B6F5E4D837 /* Squawk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Squawk.framework; path = Squawk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 23DDC2117ADBDBEA3983436B4D327BF7 /* Pods-Examples.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Examples.modulemap"; sourceTree = ""; }; 43 | 25D24A4923125F0787F9AC31237C307D /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 2BE1343651DF65D93FCE00E074CAEF1F /* Squawk.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Squawk.swift; path = Source/Squawk.swift; sourceTree = ""; }; 45 | 2E7F9ABC3E4E9FF68777A13FA8F510ED /* Squawk-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Squawk-prefix.pch"; sourceTree = ""; }; 46 | 39C378211399DE8D28F6F815900B58CF /* Squawk.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Squawk.xcconfig; sourceTree = ""; }; 47 | 46F8A3D3F0984D3DA8E7A4D3DED400CC /* Pods-Examples.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Examples.debug.xcconfig"; sourceTree = ""; }; 48 | 526C87AAE61AF7D56D0A31C47144DFD0 /* Pods-Examples-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Examples-frameworks.sh"; sourceTree = ""; }; 49 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | 5AA39A859B6FF6C02633A9EF9196D86E /* Squawk-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Squawk-umbrella.h"; sourceTree = ""; }; 51 | 602B0C20712E9AD7E0ADAA1F043B63D5 /* Anchor.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Anchor.swift; path = Source/Anchor.swift; sourceTree = ""; }; 52 | 708CE1D611334D20D20054A47B165A45 /* Pods-Examples-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Examples-umbrella.h"; sourceTree = ""; }; 53 | 85A62EB7420AEFE5BF047346D00AA188 /* SquawkItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SquawkItem.swift; path = Source/SquawkItem.swift; sourceTree = ""; }; 54 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 55 | 9B0C7FFA8CACF8E49BD5938A6BCD72DF /* Squawk-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Squawk-dummy.m"; sourceTree = ""; }; 56 | A016A06C91453AC38504A32C0DD4E741 /* SquawkView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SquawkView.swift; path = Source/SquawkView.swift; sourceTree = ""; }; 57 | A36F5FF3D079577A1176776A64050361 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | AD4AB4C86691FD41B03B6EBFC3684BA1 /* Squawk.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = Squawk.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 59 | B1FB8612BC577D3F77B698722906DE03 /* Pods-Examples-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Examples-acknowledgements.plist"; sourceTree = ""; }; 60 | B6F35036694E0F56D248E497CB22D0D6 /* UIViewController+SearchChildren.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIViewController+SearchChildren.swift"; path = "Source/UIViewController+SearchChildren.swift"; sourceTree = ""; }; 61 | CFE116F7D437E77AC722EF150A5E70BE /* Squawk+Configuration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Squawk+Configuration.swift"; path = "Source/Squawk+Configuration.swift"; sourceTree = ""; }; 62 | DB0AEE61C4838723C1B1F39463CDFAF5 /* RubberBandDistance.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RubberBandDistance.swift; path = Source/RubberBandDistance.swift; sourceTree = ""; }; 63 | DD4D1E3AFD802BF8F7580C35AF94D1BB /* Pods-Examples.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Examples.release.xcconfig"; sourceTree = ""; }; 64 | EC461691A22FF7DB4A1FB4F7A7487EA4 /* Pods-Examples-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Examples-resources.sh"; sourceTree = ""; }; 65 | EC6BEE183BD916090C9F85565D0A4612 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 66 | F6D056EDE75224A549BFD1C6B7B397E7 /* Squawk.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Squawk.modulemap; sourceTree = ""; }; 67 | FA2566DAE3B7661F974DF773E3B5172E /* Pods_Examples.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Examples.framework; path = "Pods-Examples.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 3354E963B603A35D15A73AA4D3700D28 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 0BE6ED0850A6609B563986FBC29D061A /* Foundation.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | EA57F17F2A9365A469E47DB2A912BF40 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | 5057016260DBCF878D924B09C3C78003 /* Foundation.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | /* End PBXFrameworksBuildPhase section */ 88 | 89 | /* Begin PBXGroup section */ 90 | 105C03F097C8FAD254A84FBED3A2A9EA /* Squawk */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 602B0C20712E9AD7E0ADAA1F043B63D5 /* Anchor.swift */, 94 | DB0AEE61C4838723C1B1F39463CDFAF5 /* RubberBandDistance.swift */, 95 | 2BE1343651DF65D93FCE00E074CAEF1F /* Squawk.swift */, 96 | CFE116F7D437E77AC722EF150A5E70BE /* Squawk+Configuration.swift */, 97 | 85A62EB7420AEFE5BF047346D00AA188 /* SquawkItem.swift */, 98 | A016A06C91453AC38504A32C0DD4E741 /* SquawkView.swift */, 99 | 031CA243A93B1B7E09DA1DC7D5932805 /* SquawkViewDelegate.swift */, 100 | B6F35036694E0F56D248E497CB22D0D6 /* UIViewController+SearchChildren.swift */, 101 | CC4BCE493A9A80749E12EBFF106EEF5E /* Pod */, 102 | 8D5A38C7CA437A0DC066548DB5C12F57 /* Support Files */, 103 | ); 104 | name = Squawk; 105 | path = ../..; 106 | sourceTree = ""; 107 | }; 108 | 2BE154C4D0BF4B1F8648C7B5D87586AF /* Pods-Examples */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 25D24A4923125F0787F9AC31237C307D /* Info.plist */, 112 | 23DDC2117ADBDBEA3983436B4D327BF7 /* Pods-Examples.modulemap */, 113 | 0E85C4F4BE728F6D81B641C896B26881 /* Pods-Examples-acknowledgements.markdown */, 114 | B1FB8612BC577D3F77B698722906DE03 /* Pods-Examples-acknowledgements.plist */, 115 | 088CE4DEBD5AFD36D1D4293911018293 /* Pods-Examples-dummy.m */, 116 | 526C87AAE61AF7D56D0A31C47144DFD0 /* Pods-Examples-frameworks.sh */, 117 | EC461691A22FF7DB4A1FB4F7A7487EA4 /* Pods-Examples-resources.sh */, 118 | 708CE1D611334D20D20054A47B165A45 /* Pods-Examples-umbrella.h */, 119 | 46F8A3D3F0984D3DA8E7A4D3DED400CC /* Pods-Examples.debug.xcconfig */, 120 | DD4D1E3AFD802BF8F7580C35AF94D1BB /* Pods-Examples.release.xcconfig */, 121 | ); 122 | name = "Pods-Examples"; 123 | path = "Target Support Files/Pods-Examples"; 124 | sourceTree = ""; 125 | }; 126 | 5E0D919E635D23B70123790B8308F8EF /* iOS */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */, 130 | ); 131 | name = iOS; 132 | sourceTree = ""; 133 | }; 134 | 7DB346D0F39D3F0E887471402A8071AB = { 135 | isa = PBXGroup; 136 | children = ( 137 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 138 | 82ED960CDEF75BA8BC004614CC9D6467 /* Development Pods */, 139 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 140 | D860C9E2AEA5C8AC38AEF046EC7FDD0B /* Products */, 141 | F872D0250D61C30260F42D978EB4C3C0 /* Targets Support Files */, 142 | ); 143 | sourceTree = ""; 144 | }; 145 | 82ED960CDEF75BA8BC004614CC9D6467 /* Development Pods */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 105C03F097C8FAD254A84FBED3A2A9EA /* Squawk */, 149 | ); 150 | name = "Development Pods"; 151 | sourceTree = ""; 152 | }; 153 | 8D5A38C7CA437A0DC066548DB5C12F57 /* Support Files */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | A36F5FF3D079577A1176776A64050361 /* Info.plist */, 157 | F6D056EDE75224A549BFD1C6B7B397E7 /* Squawk.modulemap */, 158 | 39C378211399DE8D28F6F815900B58CF /* Squawk.xcconfig */, 159 | 9B0C7FFA8CACF8E49BD5938A6BCD72DF /* Squawk-dummy.m */, 160 | 2E7F9ABC3E4E9FF68777A13FA8F510ED /* Squawk-prefix.pch */, 161 | 5AA39A859B6FF6C02633A9EF9196D86E /* Squawk-umbrella.h */, 162 | ); 163 | name = "Support Files"; 164 | path = "Examples/Pods/Target Support Files/Squawk"; 165 | sourceTree = ""; 166 | }; 167 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 5E0D919E635D23B70123790B8308F8EF /* iOS */, 171 | ); 172 | name = Frameworks; 173 | sourceTree = ""; 174 | }; 175 | CC4BCE493A9A80749E12EBFF106EEF5E /* Pod */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | EC6BEE183BD916090C9F85565D0A4612 /* LICENSE */, 179 | 02D0B8606ADA074400395F65AAB41CE7 /* README.md */, 180 | AD4AB4C86691FD41B03B6EBFC3684BA1 /* Squawk.podspec */, 181 | ); 182 | name = Pod; 183 | sourceTree = ""; 184 | }; 185 | D860C9E2AEA5C8AC38AEF046EC7FDD0B /* Products */ = { 186 | isa = PBXGroup; 187 | children = ( 188 | FA2566DAE3B7661F974DF773E3B5172E /* Pods_Examples.framework */, 189 | 13EB50F2F2777D6407B5E4B6F5E4D837 /* Squawk.framework */, 190 | ); 191 | name = Products; 192 | sourceTree = ""; 193 | }; 194 | F872D0250D61C30260F42D978EB4C3C0 /* Targets Support Files */ = { 195 | isa = PBXGroup; 196 | children = ( 197 | 2BE154C4D0BF4B1F8648C7B5D87586AF /* Pods-Examples */, 198 | ); 199 | name = "Targets Support Files"; 200 | sourceTree = ""; 201 | }; 202 | /* End PBXGroup section */ 203 | 204 | /* Begin PBXHeadersBuildPhase section */ 205 | CF3ED33F09C459A00D725CCB32B06A6C /* Headers */ = { 206 | isa = PBXHeadersBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | CBCB36E9AA74C721DA2B4FC646F22EA2 /* Squawk-umbrella.h in Headers */, 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | }; 213 | E70E07A0D17D13FED6E1320B2DEA32F3 /* Headers */ = { 214 | isa = PBXHeadersBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | 883D155741524A57B41C88DB23EA7DEF /* Pods-Examples-umbrella.h in Headers */, 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | }; 221 | /* End PBXHeadersBuildPhase section */ 222 | 223 | /* Begin PBXNativeTarget section */ 224 | 5F792BF49593062227BFB2FA050172C3 /* Pods-Examples */ = { 225 | isa = PBXNativeTarget; 226 | buildConfigurationList = 7944956D5F209FA05238CEDE0919F64C /* Build configuration list for PBXNativeTarget "Pods-Examples" */; 227 | buildPhases = ( 228 | 0DFF35BA76155C6C3CE7D823CBD3E33C /* Sources */, 229 | EA57F17F2A9365A469E47DB2A912BF40 /* Frameworks */, 230 | E70E07A0D17D13FED6E1320B2DEA32F3 /* Headers */, 231 | ); 232 | buildRules = ( 233 | ); 234 | dependencies = ( 235 | 3CF0A7D448EEBE3A160EE837CAA23F32 /* PBXTargetDependency */, 236 | ); 237 | name = "Pods-Examples"; 238 | productName = "Pods-Examples"; 239 | productReference = FA2566DAE3B7661F974DF773E3B5172E /* Pods_Examples.framework */; 240 | productType = "com.apple.product-type.framework"; 241 | }; 242 | B320C2A7D48CBEE840AA78C6BE3D7700 /* Squawk */ = { 243 | isa = PBXNativeTarget; 244 | buildConfigurationList = 2A6D047971A219A4B09A56E3A4D44094 /* Build configuration list for PBXNativeTarget "Squawk" */; 245 | buildPhases = ( 246 | 68F648EF5C083201897D123BB6CC31BF /* Sources */, 247 | 3354E963B603A35D15A73AA4D3700D28 /* Frameworks */, 248 | CF3ED33F09C459A00D725CCB32B06A6C /* Headers */, 249 | ); 250 | buildRules = ( 251 | ); 252 | dependencies = ( 253 | ); 254 | name = Squawk; 255 | productName = Squawk; 256 | productReference = 13EB50F2F2777D6407B5E4B6F5E4D837 /* Squawk.framework */; 257 | productType = "com.apple.product-type.framework"; 258 | }; 259 | /* End PBXNativeTarget section */ 260 | 261 | /* Begin PBXProject section */ 262 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 263 | isa = PBXProject; 264 | attributes = { 265 | LastSwiftUpdateCheck = 0930; 266 | LastUpgradeCheck = 0930; 267 | }; 268 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 269 | compatibilityVersion = "Xcode 3.2"; 270 | developmentRegion = English; 271 | hasScannedForEncodings = 0; 272 | knownRegions = ( 273 | en, 274 | ); 275 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 276 | productRefGroup = D860C9E2AEA5C8AC38AEF046EC7FDD0B /* Products */; 277 | projectDirPath = ""; 278 | projectRoot = ""; 279 | targets = ( 280 | 5F792BF49593062227BFB2FA050172C3 /* Pods-Examples */, 281 | B320C2A7D48CBEE840AA78C6BE3D7700 /* Squawk */, 282 | ); 283 | }; 284 | /* End PBXProject section */ 285 | 286 | /* Begin PBXSourcesBuildPhase section */ 287 | 0DFF35BA76155C6C3CE7D823CBD3E33C /* Sources */ = { 288 | isa = PBXSourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | 574F47E4B296341C803AB76B7974A160 /* Pods-Examples-dummy.m in Sources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | 68F648EF5C083201897D123BB6CC31BF /* Sources */ = { 296 | isa = PBXSourcesBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | B806222F831E2DE4C8C7CFAE70A57336 /* Anchor.swift in Sources */, 300 | 1ECC49EA8C528B2F65008EA0D35786C8 /* RubberBandDistance.swift in Sources */, 301 | D94C8EAF577A1A04C23D54B3F2F7ED11 /* Squawk+Configuration.swift in Sources */, 302 | FC11C3BE95599F659162EAF769662C16 /* Squawk-dummy.m in Sources */, 303 | 7BE119CC992A4A047B5314C9A0FBD033 /* Squawk.swift in Sources */, 304 | F51D5D795723A9E6C866BA86C19E66F0 /* SquawkItem.swift in Sources */, 305 | 84549F9CE8AEE84C512749969241F743 /* SquawkView.swift in Sources */, 306 | 1E2C56A3C338C073E420E964A8B24206 /* SquawkViewDelegate.swift in Sources */, 307 | 96D5A028D56D042A616F1115202424A0 /* UIViewController+SearchChildren.swift in Sources */, 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | /* End PBXSourcesBuildPhase section */ 312 | 313 | /* Begin PBXTargetDependency section */ 314 | 3CF0A7D448EEBE3A160EE837CAA23F32 /* PBXTargetDependency */ = { 315 | isa = PBXTargetDependency; 316 | name = Squawk; 317 | target = B320C2A7D48CBEE840AA78C6BE3D7700 /* Squawk */; 318 | targetProxy = FE238E80998D43D7C5C844719CD71182 /* PBXContainerItemProxy */; 319 | }; 320 | /* End PBXTargetDependency section */ 321 | 322 | /* Begin XCBuildConfiguration section */ 323 | 08638A96A528B1EC32DE62F8A728389D /* Release */ = { 324 | isa = XCBuildConfiguration; 325 | buildSettings = { 326 | ALWAYS_SEARCH_USER_PATHS = NO; 327 | CLANG_ANALYZER_NONNULL = YES; 328 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 329 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 330 | CLANG_CXX_LIBRARY = "libc++"; 331 | CLANG_ENABLE_MODULES = YES; 332 | CLANG_ENABLE_OBJC_ARC = YES; 333 | CLANG_ENABLE_OBJC_WEAK = YES; 334 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 335 | CLANG_WARN_BOOL_CONVERSION = YES; 336 | CLANG_WARN_COMMA = YES; 337 | CLANG_WARN_CONSTANT_CONVERSION = YES; 338 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 339 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 340 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 341 | CLANG_WARN_EMPTY_BODY = YES; 342 | CLANG_WARN_ENUM_CONVERSION = YES; 343 | CLANG_WARN_INFINITE_RECURSION = YES; 344 | CLANG_WARN_INT_CONVERSION = YES; 345 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 346 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 347 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 348 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 349 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 350 | CLANG_WARN_STRICT_PROTOTYPES = YES; 351 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 352 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 353 | CLANG_WARN_UNREACHABLE_CODE = YES; 354 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 355 | CODE_SIGNING_ALLOWED = NO; 356 | CODE_SIGNING_REQUIRED = NO; 357 | COPY_PHASE_STRIP = NO; 358 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 359 | ENABLE_NS_ASSERTIONS = NO; 360 | ENABLE_STRICT_OBJC_MSGSEND = YES; 361 | GCC_C_LANGUAGE_STANDARD = gnu11; 362 | GCC_NO_COMMON_BLOCKS = YES; 363 | GCC_PREPROCESSOR_DEFINITIONS = ( 364 | "POD_CONFIGURATION_RELEASE=1", 365 | "$(inherited)", 366 | ); 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 374 | MTL_ENABLE_DEBUG_INFO = NO; 375 | PRODUCT_NAME = "$(TARGET_NAME)"; 376 | STRIP_INSTALLED_PRODUCT = NO; 377 | SYMROOT = "${SRCROOT}/../build"; 378 | }; 379 | name = Release; 380 | }; 381 | 63418EB130A151F9B4B62C8DD8D86730 /* Release */ = { 382 | isa = XCBuildConfiguration; 383 | baseConfigurationReference = 39C378211399DE8D28F6F815900B58CF /* Squawk.xcconfig */; 384 | buildSettings = { 385 | CLANG_ENABLE_OBJC_WEAK = NO; 386 | CODE_SIGN_IDENTITY = ""; 387 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 389 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 390 | CURRENT_PROJECT_VERSION = 1; 391 | DEFINES_MODULE = YES; 392 | DYLIB_COMPATIBILITY_VERSION = 1; 393 | DYLIB_CURRENT_VERSION = 1; 394 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 395 | GCC_PREFIX_HEADER = "Target Support Files/Squawk/Squawk-prefix.pch"; 396 | INFOPLIST_FILE = "Target Support Files/Squawk/Info.plist"; 397 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 398 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 399 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 400 | MODULEMAP_FILE = "Target Support Files/Squawk/Squawk.modulemap"; 401 | PRODUCT_MODULE_NAME = Squawk; 402 | PRODUCT_NAME = Squawk; 403 | SDKROOT = iphoneos; 404 | SKIP_INSTALL = YES; 405 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 406 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 407 | SWIFT_VERSION = 4.0; 408 | TARGETED_DEVICE_FAMILY = "1,2"; 409 | VALIDATE_PRODUCT = YES; 410 | VERSIONING_SYSTEM = "apple-generic"; 411 | VERSION_INFO_PREFIX = ""; 412 | }; 413 | name = Release; 414 | }; 415 | 6BC30DE010F2C5030CC1E2105C771281 /* Debug */ = { 416 | isa = XCBuildConfiguration; 417 | baseConfigurationReference = 39C378211399DE8D28F6F815900B58CF /* Squawk.xcconfig */; 418 | buildSettings = { 419 | CLANG_ENABLE_OBJC_WEAK = NO; 420 | CODE_SIGN_IDENTITY = ""; 421 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 423 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 424 | CURRENT_PROJECT_VERSION = 1; 425 | DEFINES_MODULE = YES; 426 | DYLIB_COMPATIBILITY_VERSION = 1; 427 | DYLIB_CURRENT_VERSION = 1; 428 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 429 | GCC_PREFIX_HEADER = "Target Support Files/Squawk/Squawk-prefix.pch"; 430 | INFOPLIST_FILE = "Target Support Files/Squawk/Info.plist"; 431 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 432 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 433 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 434 | MODULEMAP_FILE = "Target Support Files/Squawk/Squawk.modulemap"; 435 | PRODUCT_MODULE_NAME = Squawk; 436 | PRODUCT_NAME = Squawk; 437 | SDKROOT = iphoneos; 438 | SKIP_INSTALL = YES; 439 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 440 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 441 | SWIFT_VERSION = 4.0; 442 | TARGETED_DEVICE_FAMILY = "1,2"; 443 | VERSIONING_SYSTEM = "apple-generic"; 444 | VERSION_INFO_PREFIX = ""; 445 | }; 446 | name = Debug; 447 | }; 448 | 804C223211B5BAFD2A9A12B1017A8852 /* Release */ = { 449 | isa = XCBuildConfiguration; 450 | baseConfigurationReference = DD4D1E3AFD802BF8F7580C35AF94D1BB /* Pods-Examples.release.xcconfig */; 451 | buildSettings = { 452 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 453 | CLANG_ENABLE_OBJC_WEAK = NO; 454 | CODE_SIGN_IDENTITY = ""; 455 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 457 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 458 | CURRENT_PROJECT_VERSION = 1; 459 | DEFINES_MODULE = YES; 460 | DYLIB_COMPATIBILITY_VERSION = 1; 461 | DYLIB_CURRENT_VERSION = 1; 462 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 463 | INFOPLIST_FILE = "Target Support Files/Pods-Examples/Info.plist"; 464 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 465 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 466 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 467 | MACH_O_TYPE = staticlib; 468 | MODULEMAP_FILE = "Target Support Files/Pods-Examples/Pods-Examples.modulemap"; 469 | OTHER_LDFLAGS = ""; 470 | OTHER_LIBTOOLFLAGS = ""; 471 | PODS_ROOT = "$(SRCROOT)"; 472 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 473 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 474 | SDKROOT = iphoneos; 475 | SKIP_INSTALL = YES; 476 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 477 | TARGETED_DEVICE_FAMILY = "1,2"; 478 | VALIDATE_PRODUCT = YES; 479 | VERSIONING_SYSTEM = "apple-generic"; 480 | VERSION_INFO_PREFIX = ""; 481 | }; 482 | name = Release; 483 | }; 484 | 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */ = { 485 | isa = XCBuildConfiguration; 486 | buildSettings = { 487 | ALWAYS_SEARCH_USER_PATHS = NO; 488 | CLANG_ANALYZER_NONNULL = YES; 489 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 490 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 491 | CLANG_CXX_LIBRARY = "libc++"; 492 | CLANG_ENABLE_MODULES = YES; 493 | CLANG_ENABLE_OBJC_ARC = YES; 494 | CLANG_ENABLE_OBJC_WEAK = YES; 495 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 496 | CLANG_WARN_BOOL_CONVERSION = YES; 497 | CLANG_WARN_COMMA = YES; 498 | CLANG_WARN_CONSTANT_CONVERSION = YES; 499 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 500 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 501 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 502 | CLANG_WARN_EMPTY_BODY = YES; 503 | CLANG_WARN_ENUM_CONVERSION = YES; 504 | CLANG_WARN_INFINITE_RECURSION = YES; 505 | CLANG_WARN_INT_CONVERSION = YES; 506 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 507 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 508 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 509 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 510 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 511 | CLANG_WARN_STRICT_PROTOTYPES = YES; 512 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 513 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 514 | CLANG_WARN_UNREACHABLE_CODE = YES; 515 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 516 | CODE_SIGNING_ALLOWED = NO; 517 | CODE_SIGNING_REQUIRED = NO; 518 | COPY_PHASE_STRIP = NO; 519 | DEBUG_INFORMATION_FORMAT = dwarf; 520 | ENABLE_STRICT_OBJC_MSGSEND = YES; 521 | ENABLE_TESTABILITY = YES; 522 | GCC_C_LANGUAGE_STANDARD = gnu11; 523 | GCC_DYNAMIC_NO_PIC = NO; 524 | GCC_NO_COMMON_BLOCKS = YES; 525 | GCC_OPTIMIZATION_LEVEL = 0; 526 | GCC_PREPROCESSOR_DEFINITIONS = ( 527 | "POD_CONFIGURATION_DEBUG=1", 528 | "DEBUG=1", 529 | "$(inherited)", 530 | ); 531 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 532 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 533 | GCC_WARN_UNDECLARED_SELECTOR = YES; 534 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 535 | GCC_WARN_UNUSED_FUNCTION = YES; 536 | GCC_WARN_UNUSED_VARIABLE = YES; 537 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 538 | MTL_ENABLE_DEBUG_INFO = YES; 539 | ONLY_ACTIVE_ARCH = YES; 540 | PRODUCT_NAME = "$(TARGET_NAME)"; 541 | STRIP_INSTALLED_PRODUCT = NO; 542 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 543 | SYMROOT = "${SRCROOT}/../build"; 544 | }; 545 | name = Debug; 546 | }; 547 | B7CF12E61D4073AA04A28FC1D1F44194 /* Debug */ = { 548 | isa = XCBuildConfiguration; 549 | baseConfigurationReference = 46F8A3D3F0984D3DA8E7A4D3DED400CC /* Pods-Examples.debug.xcconfig */; 550 | buildSettings = { 551 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 552 | CLANG_ENABLE_OBJC_WEAK = NO; 553 | CODE_SIGN_IDENTITY = ""; 554 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 555 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 556 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 557 | CURRENT_PROJECT_VERSION = 1; 558 | DEFINES_MODULE = YES; 559 | DYLIB_COMPATIBILITY_VERSION = 1; 560 | DYLIB_CURRENT_VERSION = 1; 561 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 562 | INFOPLIST_FILE = "Target Support Files/Pods-Examples/Info.plist"; 563 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 564 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 565 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 566 | MACH_O_TYPE = staticlib; 567 | MODULEMAP_FILE = "Target Support Files/Pods-Examples/Pods-Examples.modulemap"; 568 | OTHER_LDFLAGS = ""; 569 | OTHER_LIBTOOLFLAGS = ""; 570 | PODS_ROOT = "$(SRCROOT)"; 571 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 572 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 573 | SDKROOT = iphoneos; 574 | SKIP_INSTALL = YES; 575 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 576 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 577 | TARGETED_DEVICE_FAMILY = "1,2"; 578 | VERSIONING_SYSTEM = "apple-generic"; 579 | VERSION_INFO_PREFIX = ""; 580 | }; 581 | name = Debug; 582 | }; 583 | /* End XCBuildConfiguration section */ 584 | 585 | /* Begin XCConfigurationList section */ 586 | 2A6D047971A219A4B09A56E3A4D44094 /* Build configuration list for PBXNativeTarget "Squawk" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | 6BC30DE010F2C5030CC1E2105C771281 /* Debug */, 590 | 63418EB130A151F9B4B62C8DD8D86730 /* Release */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 596 | isa = XCConfigurationList; 597 | buildConfigurations = ( 598 | 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */, 599 | 08638A96A528B1EC32DE62F8A728389D /* Release */, 600 | ); 601 | defaultConfigurationIsVisible = 0; 602 | defaultConfigurationName = Release; 603 | }; 604 | 7944956D5F209FA05238CEDE0919F64C /* Build configuration list for PBXNativeTarget "Pods-Examples" */ = { 605 | isa = XCConfigurationList; 606 | buildConfigurations = ( 607 | B7CF12E61D4073AA04A28FC1D1F44194 /* Debug */, 608 | 804C223211B5BAFD2A9A12B1017A8852 /* Release */, 609 | ); 610 | defaultConfigurationIsVisible = 0; 611 | defaultConfigurationName = Release; 612 | }; 613 | /* End XCConfigurationList section */ 614 | }; 615 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 616 | } 617 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/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 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Squawk 5 | 6 | The MIT License 7 | 8 | Copyright (c) 2017 Ryan Nystrom http://whoisryannystrom.com/ 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in 18 | all copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 26 | THE SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples-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 | The MIT License 18 | 19 | Copyright (c) 2017 Ryan Nystrom http://whoisryannystrom.com/ 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in 29 | all copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 37 | THE SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | Squawk 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Examples : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Examples 5 | @end 6 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples-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}/Squawk/Squawk.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/Squawk/Squawk.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples-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 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples-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_ExamplesVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ExamplesVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Squawk" 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}/Squawk/Squawk.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Squawk" 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 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Examples { 2 | umbrella header "Pods-Examples-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Pods-Examples/Pods-Examples.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Squawk" 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}/Squawk/Squawk.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Squawk" 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 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Squawk/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Squawk/Squawk-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Squawk : NSObject 3 | @end 4 | @implementation PodsDummy_Squawk 5 | @end 6 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Squawk/Squawk-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 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Squawk/Squawk-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 SquawkVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char SquawkVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Squawk/Squawk.modulemap: -------------------------------------------------------------------------------- 1 | framework module Squawk { 2 | umbrella header "Squawk-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Examples/Pods/Target Support Files/Squawk/Squawk.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Squawk 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2017 Ryan Nystrom http://whoisryannystrom.com/ 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Squawk 2 | 3 | Show important alerts from the bottom of the screen with full customization control. 4 | 5 | ![Example](readme.png) 6 | 7 | ## Installation 8 | 9 | Just add `Squawk` to your Podfile and pod install. Done! 10 | 11 | ``` 12 | pod 'Squawk' 13 | ``` 14 | 15 | ## Usage 16 | 17 | After installing `Squawk`, you can start displaying alerts immediately: 18 | 19 | ```swift 20 | import Squawk 21 | 22 | func onError() { 23 | Squawk.shared.show(config: Squawk.Configuration( 24 | text: "Something went wrong!" 25 | )) 26 | } 27 | ``` 28 | 29 | Use the `view` param if you want to show the alert within a specific view. 30 | 31 | ```swift 32 | func viewDidAppear() { 33 | super.viewDidAppear() 34 | Squawk.shared.show( 35 | in: view, 36 | config: Squawk.Configuration( 37 | text: "Peek-a-boo" 38 | ) 39 | ) 40 | } 41 | ``` 42 | 43 | ### Configuration 44 | 45 | `Squawk.Configuration` comes with _loads_ of options: 46 | 47 | - `text` - The text in the alert 48 | - `textColor` - The color of the text 🙄 49 | - `backgroundColor` - Background color of the view (note: will be blurred) 50 | - `insets` - Inset the text and button within the alert view 51 | - `maxWidth` - The max width of the alert view 52 | - `hintMargin` - Margin between the "hint" (top pill) and text 53 | - `hintSize` - The size of the hint pill 54 | - `cornerRadius` - Corner radius of the alert view 55 | - `bottomPadding` - Extra padding to add to subtract from the final `y` of the alert view 56 | - `borderColor` - Border color of the alert view 57 | - `dismissDuration` - How long, in seconds, to wait before automatically dismissing 58 | - `buttonVisible` - Set to `true` to show the "info" button 59 | - `buttonLeftMargin` - The margin between the button and text 60 | - `buttonTapHandler` - A closure to execute when the "info" button is tapped 61 | 62 | ## Acknowledgements 63 | 64 | - Created with ❤️ by [Ryan Nystrom](https://twitter.com/_ryannystrom) 65 | -------------------------------------------------------------------------------- /Source/Anchor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Anchor.swift 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 7/14/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | private func snap(value: CGFloat, scale: CGFloat) -> CGFloat { 12 | return (value * scale).rounded() / scale 13 | } 14 | 15 | internal func anchor( 16 | view: UIView, 17 | referenceView: UIView, 18 | configuration: Squawk.Configuration 19 | ) -> CGPoint { 20 | let safeBottom: CGFloat = referenceView.safeAreaInsets.bottom 21 | let bounds = referenceView.bounds 22 | let scale = UIScreen.main.scale 23 | return CGPoint( 24 | x: snap(value: bounds.width / 2, scale: scale), 25 | y: snap(value: bounds.height - safeBottom - configuration.bottomPadding - view.bounds.height / 2, scale: scale) 26 | ) 27 | } 28 | -------------------------------------------------------------------------------- /Source/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Source/RubberBandDistance.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RubberBandDistance.swift 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 7/14/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | internal func rubberBandDistance(offset: CGFloat, dimension: CGFloat) -> CGFloat { 12 | let constant: CGFloat = 0.55 13 | let absOffset = abs(offset) 14 | let result = (constant * absOffset * dimension) / (dimension + constant * absOffset) 15 | return offset < 0 ? -result : result 16 | } 17 | -------------------------------------------------------------------------------- /Source/Squawk+Configuration.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Squawk+Configuration.swift 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 7/14/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public extension Squawk { 12 | 13 | public struct Configuration { 14 | 15 | let text: String 16 | let textColor: UIColor 17 | let backgroundColor: UIColor 18 | let insets: UIEdgeInsets 19 | let maxWidth: CGFloat 20 | let hintMargin: CGFloat 21 | let hintSize: CGSize 22 | let cornerRadius: CGFloat 23 | let bottomPadding: CGFloat 24 | let borderColor: UIColor 25 | let dismissDuration: TimeInterval 26 | let buttonVisible: Bool 27 | let buttonLeftMargin: CGFloat 28 | let buttonTapHandler: (() -> Void)? 29 | 30 | public init( 31 | text: String, 32 | textColor: UIColor = .white, 33 | backgroundColor: UIColor = UIColor(white: 0.2, alpha: 0.7), 34 | insets: UIEdgeInsets = UIEdgeInsets(top: 8, left: 15, bottom: 8, right: 15), 35 | maxWidth: CGFloat = 300, 36 | hintMargin: CGFloat = 4, 37 | hintSize: CGSize = CGSize(width: 40, height: 4), 38 | cornerRadius: CGFloat = 6, 39 | bottomPadding: CGFloat = 15, 40 | borderColor: UIColor = UIColor(white: 0, alpha: 0.4), 41 | dismissDuration: TimeInterval = 4, 42 | buttonVisible: Bool = false, 43 | buttonLeftMargin: CGFloat = 8, 44 | buttonTapHandler: (() -> Void)? = nil 45 | ) { 46 | self.text = text 47 | self.textColor = textColor 48 | self.backgroundColor = backgroundColor 49 | self.insets = insets 50 | self.maxWidth = maxWidth 51 | self.hintMargin = hintMargin 52 | self.hintSize = hintSize 53 | self.cornerRadius = cornerRadius 54 | self.bottomPadding = bottomPadding 55 | self.borderColor = borderColor 56 | self.dismissDuration = dismissDuration 57 | self.buttonVisible = buttonVisible 58 | self.buttonLeftMargin = buttonLeftMargin 59 | self.buttonTapHandler = buttonTapHandler 60 | } 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Source/Squawk.h: -------------------------------------------------------------------------------- 1 | // 2 | // Squawk.h 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 7/14/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Squawk. 12 | FOUNDATION_EXPORT double SquawkVersionNumber; 13 | 14 | //! Project version string for Squawk. 15 | FOUNDATION_EXPORT const unsigned char SquawkVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Source/Squawk.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Squawk.swift 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 10/8/17. 6 | // Copyright © 2017 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class Squawk { 12 | 13 | private var activeItem: SquawkItem? 14 | 15 | init() { 16 | NotificationCenter.default.addObserver( 17 | self, 18 | selector: #selector(Squawk.onOrientation(notification:)), 19 | name: .UIDeviceOrientationDidChange, 20 | object: nil 21 | ) 22 | } 23 | 24 | // MARK: Public API 25 | 26 | public static let shared = Squawk() 27 | 28 | public func show( 29 | in view: UIView? = nil, 30 | config: Squawk.Configuration 31 | ) { 32 | let viewToUse: UIView? 33 | if view == nil, let top = UIApplication.shared.keyWindow?.rootViewController?.topMostChild { 34 | viewToUse = top.view 35 | } else { 36 | viewToUse = view 37 | } 38 | guard let baseView = viewToUse else { return } 39 | 40 | // get rid of any view if currently displaying 41 | activeItem?.dismiss() 42 | 43 | let item = SquawkItem(config: config, in: baseView) 44 | activeItem = item 45 | 46 | item.view.addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(onPan(gesture:)))) 47 | UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, item.configuration.text) 48 | item.startTimer() 49 | } 50 | 51 | public func dismiss(completion: (() -> Void)? = nil) { 52 | activeItem?.dismiss(completion: completion) 53 | activeItem = nil 54 | } 55 | 56 | // MARK: Private API 57 | 58 | @objc func onPan(gesture: UIPanGestureRecognizer) { 59 | guard let activeItem = self.activeItem, 60 | let referenceView = activeItem.animator.referenceView 61 | else { return } 62 | 63 | switch gesture.state { 64 | case .began: 65 | activeItem.invalidateTimer() 66 | activeItem.animator.removeBehavior(activeItem.springBehavior) 67 | case .changed: 68 | let anchor = activeItem.springBehavior.anchorPoint 69 | let translation = gesture.translation(in: referenceView).y 70 | 71 | let y: CGFloat 72 | if translation < 0 { 73 | let unboundedY = anchor.y + translation 74 | y = rubberBandDistance( 75 | offset: unboundedY - anchor.y, 76 | dimension: referenceView.bounds.height - anchor.y 77 | ) 78 | } else { 79 | y = translation 80 | } 81 | activeItem.view.center = CGPoint( 82 | x: anchor.x, 83 | y: y + anchor.y 84 | ) 85 | case .ended, .cancelled, .failed: 86 | let velocity = gesture.velocity(in: referenceView).y 87 | 88 | // if the final destination is beyond the ref view height after 0.3 seconds... 89 | let duration: TimeInterval = 0.3 90 | let finalY = velocity * CGFloat(duration) + activeItem.view.center.y 91 | if finalY - activeItem.view.bounds.height / 2 > referenceView.bounds.height { 92 | UIView.animate(withDuration: duration, animations: { 93 | var center = activeItem.view.center 94 | center.y = finalY 95 | activeItem.view.center = center 96 | }) { _ in 97 | activeItem.view.removeFromSuperview() 98 | } 99 | } else { 100 | activeItem.startTimer() 101 | activeItem.animator.addBehavior(activeItem.springBehavior) 102 | } 103 | default: break 104 | } 105 | } 106 | 107 | @objc func onOrientation(notification: NSNotification) { 108 | activeItem?.recenter() 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /Source/SquawkItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SquawkItem.swift 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 7/14/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | internal final class SquawkItem: SquawkViewDelegate { 12 | 13 | let view: SquawkView 14 | let animator: UIDynamicAnimator 15 | let springBehavior: UIAttachmentBehavior 16 | let configuration: Squawk.Configuration 17 | 18 | private var timer: Timer? 19 | 20 | init(config: Squawk.Configuration, in baseView: UIView) { 21 | configuration = config 22 | 23 | view = SquawkView(configuration: config) 24 | view.frame = CGRect(origin: .zero, size: view.contentSize()) 25 | baseView.addSubview(view) 26 | 27 | animator = UIDynamicAnimator(referenceView: baseView) 28 | 29 | let initAnchor = anchor(view: view, referenceView: baseView, configuration: configuration) 30 | 31 | // position off screen so it snaps in. must happen before setting up spring 32 | view.center = initAnchor.applying(CGAffineTransform( 33 | translationX: 0, 34 | y: baseView.bounds.height - initAnchor.y 35 | )) 36 | 37 | springBehavior = UIAttachmentBehavior(item: view, attachedToAnchor: initAnchor) 38 | springBehavior.length = 0 39 | springBehavior.damping = 0.9 40 | springBehavior.frequency = 2 41 | 42 | // use UIView animations to avoid annoying oscillation from behavior 43 | UIView.animate( 44 | withDuration: 0.5, 45 | delay: 0, 46 | usingSpringWithDamping: 0.7, 47 | initialSpringVelocity: 0.1, 48 | options: [], 49 | animations: { 50 | self.view.center = initAnchor 51 | }) { _ in 52 | guard self.view.superview != nil else { return } 53 | self.animator.addBehavior(self.springBehavior) 54 | } 55 | 56 | view.delegate = self 57 | } 58 | 59 | // MARK: Public API 60 | 61 | func invalidateTimer() { 62 | timer?.invalidate() 63 | timer = nil 64 | } 65 | 66 | func startTimer() { 67 | timer?.invalidate() 68 | timer = Timer.scheduledTimer( 69 | withTimeInterval: configuration.dismissDuration, 70 | repeats: false, 71 | block: { [weak self] (_) in 72 | self?.dismiss() 73 | }) 74 | } 75 | 76 | func dismiss(completion: (() -> Void)? = nil) { 77 | invalidateTimer() 78 | animator.removeBehavior(springBehavior) 79 | 80 | UIView.animate(withDuration: 0.5, delay: 0, options: [.curveEaseInOut], animations: { 81 | self.view.alpha = 0 82 | self.view.center = self.dismissAnchor 83 | }, completion: { _ in 84 | self.view.removeFromSuperview() 85 | completion?() 86 | }) 87 | } 88 | 89 | func recenter() { 90 | // UIDynamics will throw if adding the behavior back when the view has already been removed 91 | guard view.superview != nil, 92 | let referenceView = animator.referenceView 93 | else { return } 94 | 95 | // hack to work around UI bug where behavior will permanently oscillate 96 | animator.removeBehavior(springBehavior) 97 | springBehavior.anchorPoint = anchor(view: view, referenceView: referenceView, configuration: configuration) 98 | animator.addBehavior(springBehavior) 99 | } 100 | 101 | // MARK: Private API 102 | 103 | private var dismissAnchor: CGPoint { 104 | guard let referenceView = animator.referenceView else { return .zero } 105 | return CGPoint( 106 | x: referenceView.bounds.width / 2, 107 | y: referenceView.bounds.height + view.bounds.height / 2 + 100 108 | ) 109 | } 110 | 111 | // MARK: SquawkViewDelegate 112 | 113 | func didTapInfo(for view: SquawkView) { 114 | configuration.buttonTapHandler?() 115 | } 116 | 117 | } 118 | -------------------------------------------------------------------------------- /Source/SquawkView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SquawkView.swift 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 7/14/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | internal final class SquawkView: UIView { 12 | 13 | weak var delegate: SquawkViewDelegate? 14 | 15 | let backgroundView = UIVisualEffectView(effect: UIBlurEffect(style: .light)) 16 | let label = UILabel() 17 | let button = UIButton(type: .infoLight) 18 | let hintView = UIView() 19 | 20 | // MARK: Public API 21 | 22 | init(configuration: Squawk.Configuration) { 23 | super.init(frame: .zero) 24 | 25 | backgroundView.translatesAutoresizingMaskIntoConstraints = false 26 | addSubview(backgroundView) 27 | 28 | backgroundView.backgroundColor = configuration.backgroundColor 29 | backgroundView.layer.cornerRadius = configuration.cornerRadius 30 | backgroundView.layer.borderColor = configuration.borderColor.cgColor 31 | backgroundView.layer.borderWidth = 1.0 / UIScreen.main.nativeScale 32 | backgroundView.clipsToBounds = true 33 | 34 | let contentView = backgroundView.contentView 35 | contentView.translatesAutoresizingMaskIntoConstraints = false 36 | 37 | label.numberOfLines = 0 38 | label.textColor = configuration.textColor 39 | label.text = configuration.text 40 | label.translatesAutoresizingMaskIntoConstraints = false 41 | label.backgroundColor = .clear 42 | contentView.addSubview(label) 43 | 44 | if configuration.buttonVisible { 45 | button.tintColor = configuration.textColor 46 | button.addTarget(self, action: #selector(SquawkView.onButton), for: .touchUpInside) 47 | button.translatesAutoresizingMaskIntoConstraints = false 48 | contentView.addSubview(button) 49 | 50 | addConstraint(NSLayoutConstraint( 51 | item: button, 52 | attribute: .centerY, 53 | relatedBy: .equal, 54 | toItem: label, 55 | attribute: .centerY, 56 | multiplier: 1, 57 | constant: 0 58 | )) 59 | } 60 | 61 | hintView.backgroundColor = UIColor(white: 1, alpha: 0.3) 62 | hintView.layer.cornerRadius = configuration.hintSize.height / 2 63 | hintView.translatesAutoresizingMaskIntoConstraints = false 64 | contentView.addSubview(hintView) 65 | 66 | // center the hint beneath the label 67 | addConstraint(NSLayoutConstraint( 68 | item: hintView, 69 | attribute: .width, 70 | relatedBy: .equal, 71 | toItem: nil, 72 | attribute: .notAnAttribute, 73 | multiplier: 1, 74 | constant: configuration.hintSize.width 75 | )) 76 | addConstraint(NSLayoutConstraint( 77 | item: hintView, 78 | attribute: .centerX, 79 | relatedBy: .equal, 80 | toItem: contentView, 81 | attribute: .centerX, 82 | multiplier: 1, 83 | constant: 0 84 | )) 85 | 86 | let subviews: [String: UIView] = [ 87 | "button": button, 88 | "label": label, 89 | "hintView": hintView, 90 | "contentView": contentView 91 | ] 92 | 93 | if configuration.buttonVisible { 94 | let labelWidth = configuration.maxWidth - configuration.buttonLeftMargin - configuration.insets.left - configuration.insets.right 95 | addConstraints(NSLayoutConstraint.constraints( 96 | withVisualFormat: "H:|-\(configuration.insets.left)-[label(<=\(labelWidth))]-\(configuration.buttonLeftMargin)-[button]-\(configuration.insets.right)-|", 97 | metrics: nil, 98 | views: subviews 99 | )) 100 | } else { 101 | let labelWidth = configuration.maxWidth - configuration.insets.left - configuration.insets.right 102 | addConstraints(NSLayoutConstraint.constraints( 103 | withVisualFormat: "H:|-\(configuration.insets.left)-[label(<=\(labelWidth))]-\(configuration.insets.right)-|", 104 | metrics: nil, 105 | views: subviews 106 | )) 107 | } 108 | 109 | addConstraints(NSLayoutConstraint.constraints( 110 | withVisualFormat: "V:|-\(configuration.insets.top)-[hintView(\(configuration.hintSize.height))]-\(configuration.hintMargin)-[label]-\(configuration.insets.bottom)-|", 111 | metrics: nil, 112 | views: subviews 113 | )) 114 | addConstraints(NSLayoutConstraint.constraints( 115 | withVisualFormat: "H:|[contentView]|", 116 | metrics: nil, 117 | views: subviews 118 | )) 119 | addConstraints(NSLayoutConstraint.constraints( 120 | withVisualFormat: "V:|[contentView]|", 121 | metrics: nil, 122 | views: subviews 123 | )) 124 | } 125 | 126 | override func layoutSubviews() { 127 | super.layoutSubviews() 128 | backgroundView.frame = bounds 129 | } 130 | 131 | func contentSize() -> CGSize { 132 | backgroundView.updateConstraintsIfNeeded() 133 | backgroundView.layoutIfNeeded() 134 | return backgroundView.contentView.bounds.size 135 | } 136 | 137 | required init?(coder aDecoder: NSCoder) { 138 | fatalError("init(coder:) has not been implemented") 139 | } 140 | 141 | // MARK: Private API 142 | 143 | @objc func onButton() { 144 | delegate?.didTapInfo(for: self) 145 | } 146 | 147 | } 148 | -------------------------------------------------------------------------------- /Source/SquawkViewDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SquawkViewDelegate.swift 3 | // Squawk 4 | // 5 | // Created by Ryan Nystrom on 7/14/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | internal protocol SquawkViewDelegate: class { 12 | func didTapInfo(for view: SquawkView) 13 | } 14 | -------------------------------------------------------------------------------- /Source/UIViewController+SearchChildren.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+SearchChildren.swift 3 | // Pods-Examples 4 | // 5 | // Created by Ryan Nystrom on 7/15/18. 6 | // 7 | 8 | import UIKit 9 | 10 | extension UIViewController { 11 | 12 | var topMostChild: UIViewController? { 13 | if let tab = self as? UITabBarController { 14 | return tab.selectedViewController?.topMostChild 15 | } else if let nav = self as? UINavigationController { 16 | return nav.topViewController?.topMostChild 17 | } else if let split = self as? UISplitViewController { 18 | return split.viewControllers.last?.topMostChild 19 | } else if let presented = presentedViewController { 20 | return presented.topMostChild 21 | } 22 | return self 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Squawk.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |spec| 2 | spec.name = 'Squawk' 3 | spec.version = '0.1.0' 4 | spec.license = { :type => 'MIT' } 5 | spec.homepage = 'https://github.com/GitHawkApp/Squawk' 6 | spec.authors = { 'Ryan Nystrom' => 'rnystrom@whoisryannystrom.com' } 7 | spec.summary = 'Quick & interactive alerts.' 8 | spec.source = { :git => 'https://github.com/GitHawkApp/Squawk.git', :tag => spec.version.to_s } 9 | spec.source_files = 'Source/*.swift' 10 | spec.platform = :ios, '11.0' 11 | spec.swift_version = '4.0' 12 | end 13 | -------------------------------------------------------------------------------- /Squawk.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 292D2F0420FA53D100099342 /* Squawk.h in Headers */ = {isa = PBXBuildFile; fileRef = 292D2F0220FA53D100099342 /* Squawk.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 292D2F0720FA53E900099342 /* Squawk.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292D2F0620FA53E900099342 /* Squawk.swift */; }; 12 | 292D2F0920FA549000099342 /* SquawkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292D2F0820FA549000099342 /* SquawkView.swift */; }; 13 | 292D2F0D20FA550700099342 /* SquawkItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292D2F0C20FA550700099342 /* SquawkItem.swift */; }; 14 | 292D2F0F20FA552800099342 /* Squawk+Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292D2F0E20FA552800099342 /* Squawk+Configuration.swift */; }; 15 | 292D2F1120FA554C00099342 /* RubberBandDistance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292D2F1020FA554C00099342 /* RubberBandDistance.swift */; }; 16 | 292D2F1320FA556200099342 /* Anchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292D2F1220FA556200099342 /* Anchor.swift */; }; 17 | 292D2F1520FA560A00099342 /* SquawkViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 292D2F1420FA560A00099342 /* SquawkViewDelegate.swift */; }; 18 | 2973E80220FBC7F00050233F /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2973E80120FBC7F00050233F /* Tests.swift */; }; 19 | 2973E80420FBC7F00050233F /* Squawk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 292D2EF620FA53A500099342 /* Squawk.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 2973E80520FBC7F00050233F /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 292D2EED20FA53A500099342 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 292D2EF520FA53A500099342; 28 | remoteInfo = Squawk; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 292D2EF620FA53A500099342 /* Squawk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Squawk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 292D2F0220FA53D100099342 /* Squawk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Squawk.h; sourceTree = ""; }; 35 | 292D2F0320FA53D100099342 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 292D2F0620FA53E900099342 /* Squawk.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Squawk.swift; sourceTree = ""; }; 37 | 292D2F0820FA549000099342 /* SquawkView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SquawkView.swift; sourceTree = ""; }; 38 | 292D2F0C20FA550700099342 /* SquawkItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SquawkItem.swift; sourceTree = ""; }; 39 | 292D2F0E20FA552800099342 /* Squawk+Configuration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Squawk+Configuration.swift"; sourceTree = ""; }; 40 | 292D2F1020FA554C00099342 /* RubberBandDistance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RubberBandDistance.swift; sourceTree = ""; }; 41 | 292D2F1220FA556200099342 /* Anchor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Anchor.swift; sourceTree = ""; }; 42 | 292D2F1420FA560A00099342 /* SquawkViewDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SquawkViewDelegate.swift; sourceTree = ""; }; 43 | 2973E7FF20FBC7F00050233F /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 2973E80120FBC7F00050233F /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 2973E80320FBC7F00050233F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | /* End PBXFileReference section */ 47 | 48 | /* Begin PBXFrameworksBuildPhase section */ 49 | 292D2EF220FA53A500099342 /* Frameworks */ = { 50 | isa = PBXFrameworksBuildPhase; 51 | buildActionMask = 2147483647; 52 | files = ( 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | 2973E7FC20FBC7F00050233F /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 2973E80420FBC7F00050233F /* Squawk.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 292D2EEC20FA53A500099342 = { 68 | isa = PBXGroup; 69 | children = ( 70 | 292D2F0120FA53D100099342 /* Source */, 71 | 2973E80020FBC7F00050233F /* Tests */, 72 | 292D2EF720FA53A500099342 /* Products */, 73 | ); 74 | sourceTree = ""; 75 | }; 76 | 292D2EF720FA53A500099342 /* Products */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 292D2EF620FA53A500099342 /* Squawk.framework */, 80 | 2973E7FF20FBC7F00050233F /* Tests.xctest */, 81 | ); 82 | name = Products; 83 | sourceTree = ""; 84 | }; 85 | 292D2F0120FA53D100099342 /* Source */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 292D2F1220FA556200099342 /* Anchor.swift */, 89 | 292D2F0320FA53D100099342 /* Info.plist */, 90 | 292D2F1020FA554C00099342 /* RubberBandDistance.swift */, 91 | 292D2F0220FA53D100099342 /* Squawk.h */, 92 | 292D2F0620FA53E900099342 /* Squawk.swift */, 93 | 292D2F0E20FA552800099342 /* Squawk+Configuration.swift */, 94 | 292D2F0C20FA550700099342 /* SquawkItem.swift */, 95 | 292D2F0820FA549000099342 /* SquawkView.swift */, 96 | 292D2F1420FA560A00099342 /* SquawkViewDelegate.swift */, 97 | ); 98 | path = Source; 99 | sourceTree = ""; 100 | }; 101 | 2973E80020FBC7F00050233F /* Tests */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 2973E80120FBC7F00050233F /* Tests.swift */, 105 | 2973E80320FBC7F00050233F /* Info.plist */, 106 | ); 107 | path = Tests; 108 | sourceTree = ""; 109 | }; 110 | /* End PBXGroup section */ 111 | 112 | /* Begin PBXHeadersBuildPhase section */ 113 | 292D2EF320FA53A500099342 /* Headers */ = { 114 | isa = PBXHeadersBuildPhase; 115 | buildActionMask = 2147483647; 116 | files = ( 117 | 292D2F0420FA53D100099342 /* Squawk.h in Headers */, 118 | ); 119 | runOnlyForDeploymentPostprocessing = 0; 120 | }; 121 | /* End PBXHeadersBuildPhase section */ 122 | 123 | /* Begin PBXNativeTarget section */ 124 | 292D2EF520FA53A500099342 /* Squawk */ = { 125 | isa = PBXNativeTarget; 126 | buildConfigurationList = 292D2EFE20FA53A500099342 /* Build configuration list for PBXNativeTarget "Squawk" */; 127 | buildPhases = ( 128 | 292D2EF120FA53A500099342 /* Sources */, 129 | 292D2EF220FA53A500099342 /* Frameworks */, 130 | 292D2EF320FA53A500099342 /* Headers */, 131 | 292D2EF420FA53A500099342 /* Resources */, 132 | ); 133 | buildRules = ( 134 | ); 135 | dependencies = ( 136 | ); 137 | name = Squawk; 138 | productName = Squawk; 139 | productReference = 292D2EF620FA53A500099342 /* Squawk.framework */; 140 | productType = "com.apple.product-type.framework"; 141 | }; 142 | 2973E7FE20FBC7F00050233F /* Tests */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 2973E80920FBC7F00050233F /* Build configuration list for PBXNativeTarget "Tests" */; 145 | buildPhases = ( 146 | 2973E7FB20FBC7F00050233F /* Sources */, 147 | 2973E7FC20FBC7F00050233F /* Frameworks */, 148 | 2973E7FD20FBC7F00050233F /* Resources */, 149 | ); 150 | buildRules = ( 151 | ); 152 | dependencies = ( 153 | 2973E80620FBC7F00050233F /* PBXTargetDependency */, 154 | ); 155 | name = Tests; 156 | productName = Tests; 157 | productReference = 2973E7FF20FBC7F00050233F /* Tests.xctest */; 158 | productType = "com.apple.product-type.bundle.unit-test"; 159 | }; 160 | /* End PBXNativeTarget section */ 161 | 162 | /* Begin PBXProject section */ 163 | 292D2EED20FA53A500099342 /* Project object */ = { 164 | isa = PBXProject; 165 | attributes = { 166 | LastSwiftUpdateCheck = 0940; 167 | LastUpgradeCheck = 0940; 168 | ORGANIZATIONNAME = "Ryan Nystrom"; 169 | TargetAttributes = { 170 | 292D2EF520FA53A500099342 = { 171 | CreatedOnToolsVersion = 9.4.1; 172 | LastSwiftMigration = 0940; 173 | }; 174 | 2973E7FE20FBC7F00050233F = { 175 | CreatedOnToolsVersion = 9.4.1; 176 | }; 177 | }; 178 | }; 179 | buildConfigurationList = 292D2EF020FA53A500099342 /* Build configuration list for PBXProject "Squawk" */; 180 | compatibilityVersion = "Xcode 9.3"; 181 | developmentRegion = en; 182 | hasScannedForEncodings = 0; 183 | knownRegions = ( 184 | en, 185 | ); 186 | mainGroup = 292D2EEC20FA53A500099342; 187 | productRefGroup = 292D2EF720FA53A500099342 /* Products */; 188 | projectDirPath = ""; 189 | projectRoot = ""; 190 | targets = ( 191 | 292D2EF520FA53A500099342 /* Squawk */, 192 | 2973E7FE20FBC7F00050233F /* Tests */, 193 | ); 194 | }; 195 | /* End PBXProject section */ 196 | 197 | /* Begin PBXResourcesBuildPhase section */ 198 | 292D2EF420FA53A500099342 /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | 2973E7FD20FBC7F00050233F /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXResourcesBuildPhase section */ 213 | 214 | /* Begin PBXSourcesBuildPhase section */ 215 | 292D2EF120FA53A500099342 /* Sources */ = { 216 | isa = PBXSourcesBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | 292D2F0F20FA552800099342 /* Squawk+Configuration.swift in Sources */, 220 | 292D2F1320FA556200099342 /* Anchor.swift in Sources */, 221 | 292D2F1120FA554C00099342 /* RubberBandDistance.swift in Sources */, 222 | 292D2F0920FA549000099342 /* SquawkView.swift in Sources */, 223 | 292D2F0D20FA550700099342 /* SquawkItem.swift in Sources */, 224 | 292D2F1520FA560A00099342 /* SquawkViewDelegate.swift in Sources */, 225 | 292D2F0720FA53E900099342 /* Squawk.swift in Sources */, 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | }; 229 | 2973E7FB20FBC7F00050233F /* Sources */ = { 230 | isa = PBXSourcesBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 2973E80220FBC7F00050233F /* Tests.swift in Sources */, 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | }; 237 | /* End PBXSourcesBuildPhase section */ 238 | 239 | /* Begin PBXTargetDependency section */ 240 | 2973E80620FBC7F00050233F /* PBXTargetDependency */ = { 241 | isa = PBXTargetDependency; 242 | target = 292D2EF520FA53A500099342 /* Squawk */; 243 | targetProxy = 2973E80520FBC7F00050233F /* PBXContainerItemProxy */; 244 | }; 245 | /* End PBXTargetDependency section */ 246 | 247 | /* Begin XCBuildConfiguration section */ 248 | 292D2EFC20FA53A500099342 /* Debug */ = { 249 | isa = XCBuildConfiguration; 250 | buildSettings = { 251 | ALWAYS_SEARCH_USER_PATHS = NO; 252 | CLANG_ANALYZER_NONNULL = YES; 253 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 254 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 255 | CLANG_CXX_LIBRARY = "libc++"; 256 | CLANG_ENABLE_MODULES = YES; 257 | CLANG_ENABLE_OBJC_ARC = YES; 258 | CLANG_ENABLE_OBJC_WEAK = YES; 259 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 260 | CLANG_WARN_BOOL_CONVERSION = YES; 261 | CLANG_WARN_COMMA = YES; 262 | CLANG_WARN_CONSTANT_CONVERSION = YES; 263 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 264 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 265 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 266 | CLANG_WARN_EMPTY_BODY = YES; 267 | CLANG_WARN_ENUM_CONVERSION = YES; 268 | CLANG_WARN_INFINITE_RECURSION = YES; 269 | CLANG_WARN_INT_CONVERSION = YES; 270 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 271 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 272 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 273 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 274 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 275 | CLANG_WARN_STRICT_PROTOTYPES = YES; 276 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 277 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 278 | CLANG_WARN_UNREACHABLE_CODE = YES; 279 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 280 | CODE_SIGN_IDENTITY = "iPhone Developer"; 281 | COPY_PHASE_STRIP = NO; 282 | CURRENT_PROJECT_VERSION = 1; 283 | DEBUG_INFORMATION_FORMAT = dwarf; 284 | ENABLE_STRICT_OBJC_MSGSEND = YES; 285 | ENABLE_TESTABILITY = YES; 286 | GCC_C_LANGUAGE_STANDARD = gnu11; 287 | GCC_DYNAMIC_NO_PIC = NO; 288 | GCC_NO_COMMON_BLOCKS = YES; 289 | GCC_OPTIMIZATION_LEVEL = 0; 290 | GCC_PREPROCESSOR_DEFINITIONS = ( 291 | "DEBUG=1", 292 | "$(inherited)", 293 | ); 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 301 | MTL_ENABLE_DEBUG_INFO = YES; 302 | ONLY_ACTIVE_ARCH = YES; 303 | SDKROOT = iphoneos; 304 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 305 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | VERSION_INFO_PREFIX = ""; 308 | }; 309 | name = Debug; 310 | }; 311 | 292D2EFD20FA53A500099342 /* Release */ = { 312 | isa = XCBuildConfiguration; 313 | buildSettings = { 314 | ALWAYS_SEARCH_USER_PATHS = NO; 315 | CLANG_ANALYZER_NONNULL = YES; 316 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 317 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 318 | CLANG_CXX_LIBRARY = "libc++"; 319 | CLANG_ENABLE_MODULES = YES; 320 | CLANG_ENABLE_OBJC_ARC = YES; 321 | CLANG_ENABLE_OBJC_WEAK = YES; 322 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 323 | CLANG_WARN_BOOL_CONVERSION = YES; 324 | CLANG_WARN_COMMA = YES; 325 | CLANG_WARN_CONSTANT_CONVERSION = YES; 326 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 327 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 328 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 329 | CLANG_WARN_EMPTY_BODY = YES; 330 | CLANG_WARN_ENUM_CONVERSION = YES; 331 | CLANG_WARN_INFINITE_RECURSION = YES; 332 | CLANG_WARN_INT_CONVERSION = YES; 333 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 334 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 335 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 336 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 337 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 338 | CLANG_WARN_STRICT_PROTOTYPES = YES; 339 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 340 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 341 | CLANG_WARN_UNREACHABLE_CODE = YES; 342 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 343 | CODE_SIGN_IDENTITY = "iPhone Developer"; 344 | COPY_PHASE_STRIP = NO; 345 | CURRENT_PROJECT_VERSION = 1; 346 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 347 | ENABLE_NS_ASSERTIONS = NO; 348 | ENABLE_STRICT_OBJC_MSGSEND = YES; 349 | GCC_C_LANGUAGE_STANDARD = gnu11; 350 | GCC_NO_COMMON_BLOCKS = YES; 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 358 | MTL_ENABLE_DEBUG_INFO = NO; 359 | SDKROOT = iphoneos; 360 | SWIFT_COMPILATION_MODE = wholemodule; 361 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 362 | VALIDATE_PRODUCT = YES; 363 | VERSIONING_SYSTEM = "apple-generic"; 364 | VERSION_INFO_PREFIX = ""; 365 | }; 366 | name = Release; 367 | }; 368 | 292D2EFF20FA53A500099342 /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | CLANG_ENABLE_MODULES = YES; 372 | CODE_SIGN_IDENTITY = ""; 373 | CODE_SIGN_STYLE = Automatic; 374 | DEFINES_MODULE = YES; 375 | DEVELOPMENT_TEAM = 523C4DWBTH; 376 | DYLIB_COMPATIBILITY_VERSION = 1; 377 | DYLIB_CURRENT_VERSION = 1; 378 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 379 | INFOPLIST_FILE = Source/Info.plist; 380 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 381 | LD_RUNPATH_SEARCH_PATHS = ( 382 | "$(inherited)", 383 | "@executable_path/Frameworks", 384 | "@loader_path/Frameworks", 385 | ); 386 | PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.Squawk; 387 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 388 | SKIP_INSTALL = YES; 389 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 390 | SWIFT_VERSION = 4.0; 391 | TARGETED_DEVICE_FAMILY = "1,2"; 392 | }; 393 | name = Debug; 394 | }; 395 | 292D2F0020FA53A500099342 /* Release */ = { 396 | isa = XCBuildConfiguration; 397 | buildSettings = { 398 | CLANG_ENABLE_MODULES = YES; 399 | CODE_SIGN_IDENTITY = ""; 400 | CODE_SIGN_STYLE = Automatic; 401 | DEFINES_MODULE = YES; 402 | DEVELOPMENT_TEAM = 523C4DWBTH; 403 | DYLIB_COMPATIBILITY_VERSION = 1; 404 | DYLIB_CURRENT_VERSION = 1; 405 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 406 | INFOPLIST_FILE = Source/Info.plist; 407 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 408 | LD_RUNPATH_SEARCH_PATHS = ( 409 | "$(inherited)", 410 | "@executable_path/Frameworks", 411 | "@loader_path/Frameworks", 412 | ); 413 | PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.Squawk; 414 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 415 | SKIP_INSTALL = YES; 416 | SWIFT_VERSION = 4.0; 417 | TARGETED_DEVICE_FAMILY = "1,2"; 418 | }; 419 | name = Release; 420 | }; 421 | 2973E80720FBC7F00050233F /* Debug */ = { 422 | isa = XCBuildConfiguration; 423 | buildSettings = { 424 | CODE_SIGN_STYLE = Automatic; 425 | DEVELOPMENT_TEAM = 523C4DWBTH; 426 | INFOPLIST_FILE = Tests/Info.plist; 427 | LD_RUNPATH_SEARCH_PATHS = ( 428 | "$(inherited)", 429 | "@executable_path/Frameworks", 430 | "@loader_path/Frameworks", 431 | ); 432 | PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.Tests; 433 | PRODUCT_NAME = "$(TARGET_NAME)"; 434 | SWIFT_VERSION = 4.0; 435 | TARGETED_DEVICE_FAMILY = "1,2"; 436 | }; 437 | name = Debug; 438 | }; 439 | 2973E80820FBC7F00050233F /* Release */ = { 440 | isa = XCBuildConfiguration; 441 | buildSettings = { 442 | CODE_SIGN_STYLE = Automatic; 443 | DEVELOPMENT_TEAM = 523C4DWBTH; 444 | INFOPLIST_FILE = Tests/Info.plist; 445 | LD_RUNPATH_SEARCH_PATHS = ( 446 | "$(inherited)", 447 | "@executable_path/Frameworks", 448 | "@loader_path/Frameworks", 449 | ); 450 | PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.Tests; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | SWIFT_VERSION = 4.0; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | }; 455 | name = Release; 456 | }; 457 | /* End XCBuildConfiguration section */ 458 | 459 | /* Begin XCConfigurationList section */ 460 | 292D2EF020FA53A500099342 /* Build configuration list for PBXProject "Squawk" */ = { 461 | isa = XCConfigurationList; 462 | buildConfigurations = ( 463 | 292D2EFC20FA53A500099342 /* Debug */, 464 | 292D2EFD20FA53A500099342 /* Release */, 465 | ); 466 | defaultConfigurationIsVisible = 0; 467 | defaultConfigurationName = Release; 468 | }; 469 | 292D2EFE20FA53A500099342 /* Build configuration list for PBXNativeTarget "Squawk" */ = { 470 | isa = XCConfigurationList; 471 | buildConfigurations = ( 472 | 292D2EFF20FA53A500099342 /* Debug */, 473 | 292D2F0020FA53A500099342 /* Release */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | 2973E80920FBC7F00050233F /* Build configuration list for PBXNativeTarget "Tests" */ = { 479 | isa = XCConfigurationList; 480 | buildConfigurations = ( 481 | 2973E80720FBC7F00050233F /* Debug */, 482 | 2973E80820FBC7F00050233F /* Release */, 483 | ); 484 | defaultConfigurationIsVisible = 0; 485 | defaultConfigurationName = Release; 486 | }; 487 | /* End XCConfigurationList section */ 488 | }; 489 | rootObject = 292D2EED20FA53A500099342 /* Project object */; 490 | } 491 | -------------------------------------------------------------------------------- /Squawk.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Squawk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Tests.swift 3 | // Tests 4 | // 5 | // Created by Ryan Nystrom on 7/15/18. 6 | // Copyright © 2018 Ryan Nystrom. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class Tests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | super.tearDown() 21 | } 22 | 23 | func testExample() { 24 | // This is an example of a functional test case. 25 | // Use XCTAssert and related functions to verify your tests produce the correct results. 26 | } 27 | 28 | func testPerformanceExample() { 29 | // This is an example of a performance test case. 30 | self.measure { 31 | // Put the code you want to measure the time of here. 32 | } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /readme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GitHawkApp/Squawk/0a48086f54dd575b44091373ad2fe78b0c4e263d/readme.png --------------------------------------------------------------------------------