├── .gitignore ├── .swift-version ├── .travis.yml ├── Example ├── LayoutGuaranteedViewExample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── LayoutGuaranteedViewExample.xcworkspace │ └── contents.xcworkspacedata ├── LayoutGuaranteedViewExample │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Pods │ ├── Local Podspecs │ └── LayoutGuaranteedView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Target Support Files │ ├── LayoutGuaranteedView │ ├── Info.plist │ ├── LayoutGuaranteedView-dummy.m │ ├── LayoutGuaranteedView-prefix.pch │ ├── LayoutGuaranteedView-umbrella.h │ ├── LayoutGuaranteedView.modulemap │ └── LayoutGuaranteedView.xcconfig │ └── Pods-LayoutGuaranteedViewExample │ ├── Info.plist │ ├── Pods-LayoutGuaranteedViewExample-acknowledgements.markdown │ ├── Pods-LayoutGuaranteedViewExample-acknowledgements.plist │ ├── Pods-LayoutGuaranteedViewExample-dummy.m │ ├── Pods-LayoutGuaranteedViewExample-frameworks.sh │ ├── Pods-LayoutGuaranteedViewExample-resources.sh │ ├── Pods-LayoutGuaranteedViewExample-umbrella.h │ ├── Pods-LayoutGuaranteedViewExample.debug.xcconfig │ ├── Pods-LayoutGuaranteedViewExample.modulemap │ └── Pods-LayoutGuaranteedViewExample.release.xcconfig ├── LICENSE ├── LayoutGuaranteedView.podspec ├── LayoutGuaranteedView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ └── LayoutGuaranteedView.xcscheme ├── LayoutGuaranteedView.xcworkspace └── contents.xcworkspacedata ├── LayoutGuaranteedView ├── Info.plist ├── LayoutGuaranteedView.h ├── LayoutGuaranteedView.initializer.swift └── LayoutGuaranteedView.swift ├── LayoutGuaranteedViewTests ├── Info.plist ├── UIActivityIndicatorViewTests.swift ├── UICollectionViewTests.swift ├── UIImageViewTest.swift ├── UIPickerViewTests.swift ├── UIProgressViewTests.swift ├── UIScrollViewTests.swift ├── UIStackViewTests.swift ├── UITableViewTests.swift ├── UIViewTests.swift └── UIWebViewTests.swift └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | .build/ 41 | 42 | # CocoaPods 43 | # 44 | # We recommend against adding the Pods directory to your .gitignore. However 45 | # you should judge for yourself, the pros and cons are mentioned at: 46 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 47 | # 48 | # Pods/ 49 | 50 | # Carthage 51 | # 52 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 53 | # Carthage/Checkouts 54 | 55 | Carthage/Build 56 | 57 | # fastlane 58 | # 59 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 60 | # screenshots whenever they are needed. 61 | # For more information about the recommended setup visit: 62 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 63 | 64 | fastlane/report.xml 65 | fastlane/Preview.html 66 | fastlane/screenshots 67 | fastlane/test_output 68 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.0 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | nguage: objective-c 2 | matrix: 3 | include: 4 | - osx_image: xcode9 5 | env: 6 | global: 7 | - LC_CTYPE=en_US.UTF-8 8 | git: 9 | submodules: false 10 | branches: 11 | only: 12 | - master 13 | script: 14 | - xcodebuild test -workspace LayoutGuaranteedView.xcworkspace -scheme LayoutGuaranteedViewTests -configuration Debug -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 7" 15 | notifications: 16 | email: 17 | on_success: never 18 | on_failure: always 19 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9C387BB436D82A99190F2B03 /* Pods_LayoutGuaranteedViewExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 74DDC868BD038A4C46DADC5B /* Pods_LayoutGuaranteedViewExample.framework */; }; 11 | 9D95414E1FB2D0800083292B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D95414D1FB2D0800083292B /* AppDelegate.swift */; }; 12 | 9D9541501FB2D0800083292B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D95414F1FB2D0800083292B /* ViewController.swift */; }; 13 | 9D9541531FB2D0800083292B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9D9541511FB2D0800083292B /* Main.storyboard */; }; 14 | 9D9541551FB2D0800083292B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9D9541541FB2D0800083292B /* Assets.xcassets */; }; 15 | 9D9541581FB2D0800083292B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9D9541561FB2D0800083292B /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 5A0634F9FB0BE8C7FB963A5B /* Pods-LayoutGuaranteedViewExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LayoutGuaranteedViewExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample.release.xcconfig"; sourceTree = ""; }; 20 | 74DDC868BD038A4C46DADC5B /* Pods_LayoutGuaranteedViewExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LayoutGuaranteedViewExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 9D95414A1FB2D0800083292B /* LayoutGuaranteedViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LayoutGuaranteedViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 9D95414D1FB2D0800083292B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 23 | 9D95414F1FB2D0800083292B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 24 | 9D9541521FB2D0800083292B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 25 | 9D9541541FB2D0800083292B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 26 | 9D9541571FB2D0800083292B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 27 | 9D9541591FB2D0800083292B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | 9F3C2C990A2156F441C415EA /* Pods-LayoutGuaranteedViewExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LayoutGuaranteedViewExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample.debug.xcconfig"; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 9D9541471FB2D0800083292B /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | 9C387BB436D82A99190F2B03 /* Pods_LayoutGuaranteedViewExample.framework in Frameworks */, 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 299E0710522A869FEFCE6AC1 /* Frameworks */ = { 44 | isa = PBXGroup; 45 | children = ( 46 | 74DDC868BD038A4C46DADC5B /* Pods_LayoutGuaranteedViewExample.framework */, 47 | ); 48 | name = Frameworks; 49 | sourceTree = ""; 50 | }; 51 | 6AAEACC7246E5607C5B8B105 /* Pods */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | 9F3C2C990A2156F441C415EA /* Pods-LayoutGuaranteedViewExample.debug.xcconfig */, 55 | 5A0634F9FB0BE8C7FB963A5B /* Pods-LayoutGuaranteedViewExample.release.xcconfig */, 56 | ); 57 | name = Pods; 58 | sourceTree = ""; 59 | }; 60 | 9D9541411FB2D0800083292B = { 61 | isa = PBXGroup; 62 | children = ( 63 | 9D95414C1FB2D0800083292B /* LayoutGuaranteedViewExample */, 64 | 9D95414B1FB2D0800083292B /* Products */, 65 | 6AAEACC7246E5607C5B8B105 /* Pods */, 66 | 299E0710522A869FEFCE6AC1 /* Frameworks */, 67 | ); 68 | sourceTree = ""; 69 | }; 70 | 9D95414B1FB2D0800083292B /* Products */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 9D95414A1FB2D0800083292B /* LayoutGuaranteedViewExample.app */, 74 | ); 75 | name = Products; 76 | sourceTree = ""; 77 | }; 78 | 9D95414C1FB2D0800083292B /* LayoutGuaranteedViewExample */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 9D95414D1FB2D0800083292B /* AppDelegate.swift */, 82 | 9D95414F1FB2D0800083292B /* ViewController.swift */, 83 | 9D9541511FB2D0800083292B /* Main.storyboard */, 84 | 9D9541541FB2D0800083292B /* Assets.xcassets */, 85 | 9D9541561FB2D0800083292B /* LaunchScreen.storyboard */, 86 | 9D9541591FB2D0800083292B /* Info.plist */, 87 | ); 88 | path = LayoutGuaranteedViewExample; 89 | sourceTree = ""; 90 | }; 91 | /* End PBXGroup section */ 92 | 93 | /* Begin PBXNativeTarget section */ 94 | 9D9541491FB2D0800083292B /* LayoutGuaranteedViewExample */ = { 95 | isa = PBXNativeTarget; 96 | buildConfigurationList = 9D95415C1FB2D0800083292B /* Build configuration list for PBXNativeTarget "LayoutGuaranteedViewExample" */; 97 | buildPhases = ( 98 | 37CD108DD7509B4AE7FEA101 /* [CP] Check Pods Manifest.lock */, 99 | 9D9541461FB2D0800083292B /* Sources */, 100 | 9D9541471FB2D0800083292B /* Frameworks */, 101 | 9D9541481FB2D0800083292B /* Resources */, 102 | B028AD466741B2EF7EA34D24 /* [CP] Embed Pods Frameworks */, 103 | 0C8F9E782D6B7A9D5AC87214 /* [CP] Copy Pods Resources */, 104 | ); 105 | buildRules = ( 106 | ); 107 | dependencies = ( 108 | ); 109 | name = LayoutGuaranteedViewExample; 110 | productName = LayoutGuaranteedViewExample; 111 | productReference = 9D95414A1FB2D0800083292B /* LayoutGuaranteedViewExample.app */; 112 | productType = "com.apple.product-type.application"; 113 | }; 114 | /* End PBXNativeTarget section */ 115 | 116 | /* Begin PBXProject section */ 117 | 9D9541421FB2D0800083292B /* Project object */ = { 118 | isa = PBXProject; 119 | attributes = { 120 | LastSwiftUpdateCheck = 0900; 121 | LastUpgradeCheck = 0900; 122 | ORGANIZATIONNAME = "marty-suzuki"; 123 | TargetAttributes = { 124 | 9D9541491FB2D0800083292B = { 125 | CreatedOnToolsVersion = 9.0.1; 126 | ProvisioningStyle = Automatic; 127 | }; 128 | }; 129 | }; 130 | buildConfigurationList = 9D9541451FB2D0800083292B /* Build configuration list for PBXProject "LayoutGuaranteedViewExample" */; 131 | compatibilityVersion = "Xcode 8.0"; 132 | developmentRegion = en; 133 | hasScannedForEncodings = 0; 134 | knownRegions = ( 135 | en, 136 | Base, 137 | ); 138 | mainGroup = 9D9541411FB2D0800083292B; 139 | productRefGroup = 9D95414B1FB2D0800083292B /* Products */; 140 | projectDirPath = ""; 141 | projectRoot = ""; 142 | targets = ( 143 | 9D9541491FB2D0800083292B /* LayoutGuaranteedViewExample */, 144 | ); 145 | }; 146 | /* End PBXProject section */ 147 | 148 | /* Begin PBXResourcesBuildPhase section */ 149 | 9D9541481FB2D0800083292B /* Resources */ = { 150 | isa = PBXResourcesBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | 9D9541581FB2D0800083292B /* LaunchScreen.storyboard in Resources */, 154 | 9D9541551FB2D0800083292B /* Assets.xcassets in Resources */, 155 | 9D9541531FB2D0800083292B /* Main.storyboard in Resources */, 156 | ); 157 | runOnlyForDeploymentPostprocessing = 0; 158 | }; 159 | /* End PBXResourcesBuildPhase section */ 160 | 161 | /* Begin PBXShellScriptBuildPhase section */ 162 | 0C8F9E782D6B7A9D5AC87214 /* [CP] Copy Pods Resources */ = { 163 | isa = PBXShellScriptBuildPhase; 164 | buildActionMask = 2147483647; 165 | files = ( 166 | ); 167 | inputPaths = ( 168 | ); 169 | name = "[CP] Copy Pods Resources"; 170 | outputPaths = ( 171 | ); 172 | runOnlyForDeploymentPostprocessing = 0; 173 | shellPath = /bin/sh; 174 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-resources.sh\"\n"; 175 | showEnvVarsInLog = 0; 176 | }; 177 | 37CD108DD7509B4AE7FEA101 /* [CP] Check Pods Manifest.lock */ = { 178 | isa = PBXShellScriptBuildPhase; 179 | buildActionMask = 2147483647; 180 | files = ( 181 | ); 182 | inputPaths = ( 183 | ); 184 | name = "[CP] Check Pods Manifest.lock"; 185 | outputPaths = ( 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | shellPath = /bin/sh; 189 | 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"; 190 | showEnvVarsInLog = 0; 191 | }; 192 | B028AD466741B2EF7EA34D24 /* [CP] Embed Pods Frameworks */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "[CP] Embed Pods Frameworks"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-frameworks.sh\"\n"; 205 | showEnvVarsInLog = 0; 206 | }; 207 | /* End PBXShellScriptBuildPhase section */ 208 | 209 | /* Begin PBXSourcesBuildPhase section */ 210 | 9D9541461FB2D0800083292B /* Sources */ = { 211 | isa = PBXSourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | 9D9541501FB2D0800083292B /* ViewController.swift in Sources */, 215 | 9D95414E1FB2D0800083292B /* AppDelegate.swift in Sources */, 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | }; 219 | /* End PBXSourcesBuildPhase section */ 220 | 221 | /* Begin PBXVariantGroup section */ 222 | 9D9541511FB2D0800083292B /* Main.storyboard */ = { 223 | isa = PBXVariantGroup; 224 | children = ( 225 | 9D9541521FB2D0800083292B /* Base */, 226 | ); 227 | name = Main.storyboard; 228 | sourceTree = ""; 229 | }; 230 | 9D9541561FB2D0800083292B /* LaunchScreen.storyboard */ = { 231 | isa = PBXVariantGroup; 232 | children = ( 233 | 9D9541571FB2D0800083292B /* Base */, 234 | ); 235 | name = LaunchScreen.storyboard; 236 | sourceTree = ""; 237 | }; 238 | /* End PBXVariantGroup section */ 239 | 240 | /* Begin XCBuildConfiguration section */ 241 | 9D95415A1FB2D0800083292B /* Debug */ = { 242 | isa = XCBuildConfiguration; 243 | buildSettings = { 244 | ALWAYS_SEARCH_USER_PATHS = NO; 245 | CLANG_ANALYZER_NONNULL = YES; 246 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 247 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 248 | CLANG_CXX_LIBRARY = "libc++"; 249 | CLANG_ENABLE_MODULES = YES; 250 | CLANG_ENABLE_OBJC_ARC = YES; 251 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 252 | CLANG_WARN_BOOL_CONVERSION = YES; 253 | CLANG_WARN_COMMA = YES; 254 | CLANG_WARN_CONSTANT_CONVERSION = YES; 255 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 256 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 257 | CLANG_WARN_EMPTY_BODY = YES; 258 | CLANG_WARN_ENUM_CONVERSION = YES; 259 | CLANG_WARN_INFINITE_RECURSION = YES; 260 | CLANG_WARN_INT_CONVERSION = YES; 261 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 262 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 263 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 264 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 265 | CLANG_WARN_STRICT_PROTOTYPES = YES; 266 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 267 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 268 | CLANG_WARN_UNREACHABLE_CODE = YES; 269 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 270 | CODE_SIGN_IDENTITY = "iPhone Developer"; 271 | COPY_PHASE_STRIP = NO; 272 | DEBUG_INFORMATION_FORMAT = dwarf; 273 | ENABLE_STRICT_OBJC_MSGSEND = YES; 274 | ENABLE_TESTABILITY = YES; 275 | GCC_C_LANGUAGE_STANDARD = gnu11; 276 | GCC_DYNAMIC_NO_PIC = NO; 277 | GCC_NO_COMMON_BLOCKS = YES; 278 | GCC_OPTIMIZATION_LEVEL = 0; 279 | GCC_PREPROCESSOR_DEFINITIONS = ( 280 | "DEBUG=1", 281 | "$(inherited)", 282 | ); 283 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 284 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 285 | GCC_WARN_UNDECLARED_SELECTOR = YES; 286 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 287 | GCC_WARN_UNUSED_FUNCTION = YES; 288 | GCC_WARN_UNUSED_VARIABLE = YES; 289 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 290 | MTL_ENABLE_DEBUG_INFO = YES; 291 | ONLY_ACTIVE_ARCH = YES; 292 | SDKROOT = iphoneos; 293 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 294 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 295 | }; 296 | name = Debug; 297 | }; 298 | 9D95415B1FB2D0800083292B /* Release */ = { 299 | isa = XCBuildConfiguration; 300 | buildSettings = { 301 | ALWAYS_SEARCH_USER_PATHS = NO; 302 | CLANG_ANALYZER_NONNULL = YES; 303 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 304 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 305 | CLANG_CXX_LIBRARY = "libc++"; 306 | CLANG_ENABLE_MODULES = YES; 307 | CLANG_ENABLE_OBJC_ARC = YES; 308 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 309 | CLANG_WARN_BOOL_CONVERSION = YES; 310 | CLANG_WARN_COMMA = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 313 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 314 | CLANG_WARN_EMPTY_BODY = YES; 315 | CLANG_WARN_ENUM_CONVERSION = YES; 316 | CLANG_WARN_INFINITE_RECURSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 319 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 320 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 321 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 322 | CLANG_WARN_STRICT_PROTOTYPES = YES; 323 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 324 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 325 | CLANG_WARN_UNREACHABLE_CODE = YES; 326 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 327 | CODE_SIGN_IDENTITY = "iPhone Developer"; 328 | COPY_PHASE_STRIP = NO; 329 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 330 | ENABLE_NS_ASSERTIONS = NO; 331 | ENABLE_STRICT_OBJC_MSGSEND = YES; 332 | GCC_C_LANGUAGE_STANDARD = gnu11; 333 | GCC_NO_COMMON_BLOCKS = YES; 334 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 335 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 336 | GCC_WARN_UNDECLARED_SELECTOR = YES; 337 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 338 | GCC_WARN_UNUSED_FUNCTION = YES; 339 | GCC_WARN_UNUSED_VARIABLE = YES; 340 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 341 | MTL_ENABLE_DEBUG_INFO = NO; 342 | SDKROOT = iphoneos; 343 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 344 | VALIDATE_PRODUCT = YES; 345 | }; 346 | name = Release; 347 | }; 348 | 9D95415D1FB2D0800083292B /* Debug */ = { 349 | isa = XCBuildConfiguration; 350 | baseConfigurationReference = 9F3C2C990A2156F441C415EA /* Pods-LayoutGuaranteedViewExample.debug.xcconfig */; 351 | buildSettings = { 352 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 353 | CODE_SIGN_STYLE = Automatic; 354 | INFOPLIST_FILE = LayoutGuaranteedViewExample/Info.plist; 355 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 356 | PRODUCT_BUNDLE_IDENTIFIER = "marty-suzuki.LayoutGuaranteedViewExample"; 357 | PRODUCT_NAME = "$(TARGET_NAME)"; 358 | SWIFT_VERSION = 4.0; 359 | TARGETED_DEVICE_FAMILY = "1,2"; 360 | }; 361 | name = Debug; 362 | }; 363 | 9D95415E1FB2D0800083292B /* Release */ = { 364 | isa = XCBuildConfiguration; 365 | baseConfigurationReference = 5A0634F9FB0BE8C7FB963A5B /* Pods-LayoutGuaranteedViewExample.release.xcconfig */; 366 | buildSettings = { 367 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 368 | CODE_SIGN_STYLE = Automatic; 369 | INFOPLIST_FILE = LayoutGuaranteedViewExample/Info.plist; 370 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 371 | PRODUCT_BUNDLE_IDENTIFIER = "marty-suzuki.LayoutGuaranteedViewExample"; 372 | PRODUCT_NAME = "$(TARGET_NAME)"; 373 | SWIFT_VERSION = 4.0; 374 | TARGETED_DEVICE_FAMILY = "1,2"; 375 | }; 376 | name = Release; 377 | }; 378 | /* End XCBuildConfiguration section */ 379 | 380 | /* Begin XCConfigurationList section */ 381 | 9D9541451FB2D0800083292B /* Build configuration list for PBXProject "LayoutGuaranteedViewExample" */ = { 382 | isa = XCConfigurationList; 383 | buildConfigurations = ( 384 | 9D95415A1FB2D0800083292B /* Debug */, 385 | 9D95415B1FB2D0800083292B /* Release */, 386 | ); 387 | defaultConfigurationIsVisible = 0; 388 | defaultConfigurationName = Release; 389 | }; 390 | 9D95415C1FB2D0800083292B /* Build configuration list for PBXNativeTarget "LayoutGuaranteedViewExample" */ = { 391 | isa = XCConfigurationList; 392 | buildConfigurations = ( 393 | 9D95415D1FB2D0800083292B /* Debug */, 394 | 9D95415E1FB2D0800083292B /* Release */, 395 | ); 396 | defaultConfigurationIsVisible = 0; 397 | defaultConfigurationName = Release; 398 | }; 399 | /* End XCConfigurationList section */ 400 | }; 401 | rootObject = 9D9541421FB2D0800083292B /* Project object */; 402 | } 403 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // LayoutGuaranteedViewExample 4 | // 5 | // Created by marty-suzuki on 2017/11/08. 6 | // Copyright © 2017年 marty-suzuki. 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 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample/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 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample/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 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample/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 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample/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 | -------------------------------------------------------------------------------- /Example/LayoutGuaranteedViewExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // LayoutGuaranteedViewExample 4 | // 5 | // Created by marty-suzuki on 2017/11/08. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import LayoutGuaranteedView 11 | 12 | class ViewController: UIViewController { 13 | let viewHolder = ViewHolder(frame: .zero, style: .plain) 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | 18 | let tableview = viewHolder.guaranteeLayout(addingTo: view) { tableView in 19 | return [ 20 | tableView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), 21 | tableView.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor), 22 | tableView.rightAnchor.constraint(equalTo: view.safeAreaLayoutGuide.rightAnchor), 23 | tableView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor) 24 | ] 25 | }.view 26 | 27 | tableview.delegate = self 28 | } 29 | } 30 | 31 | extension ViewController: UITableViewDelegate {} 32 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | platform :ios, '9.0' 3 | 4 | target 'LayoutGuaranteedViewExample' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for LayoutGuaranteedViewExample 9 | pod 'LayoutGuaranteedView', :path => '../' 10 | end 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LayoutGuaranteedView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - LayoutGuaranteedView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LayoutGuaranteedView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | LayoutGuaranteedView: 84d91b8d7355247db55bad1e3859dafa064568ee 13 | 14 | PODFILE CHECKSUM: f4ed7816ee040246e257d7699269fb1db3ecf1cc 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/LayoutGuaranteedView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "LayoutGuaranteedView", 3 | "version": "0.1.0", 4 | "summary": "A short description of LayoutGuaranteedView.", 5 | "homepage": "https://github.com/marty-suzuki/LayoutGuaranteedView", 6 | "license": { 7 | "type": "MIT", 8 | "file": "LICENSE" 9 | }, 10 | "authors": { 11 | "marty-suzuki": "s1180183@gmail.com" 12 | }, 13 | "source": { 14 | "git": "https://github.com/marty-suzuki/LayoutGuaranteedView.git", 15 | "tag": "0.1.0" 16 | }, 17 | "social_media_url": "https://twitter.com/", 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "source_files": "LayoutGuaranteedView/*.{swift}" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LayoutGuaranteedView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - LayoutGuaranteedView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LayoutGuaranteedView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | LayoutGuaranteedView: 84d91b8d7355247db55bad1e3859dafa064568ee 13 | 14 | PODFILE CHECKSUM: f4ed7816ee040246e257d7699269fb1db3ecf1cc 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /Example/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 | 12DABF8EDD03D6C8713D55FA82A6043F /* Pods-LayoutGuaranteedViewExample-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7796A82BA15A4A7FD36F2FA35110B081 /* Pods-LayoutGuaranteedViewExample-dummy.m */; }; 11 | 4DC6A8A649ABFEA9E76E28FE91C7FF73 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 12 | 790BB3225599B9DDFE4EADD96D7E7066 /* LayoutGuaranteedView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6AB7FCEF7771BD7D17228AB86E1BF1DC /* LayoutGuaranteedView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 8233AC2640124999B9F01757A6852D1B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 14 | A0BC6266D58BA8127E153DC7C8B03190 /* LayoutGuaranteedView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7400D0AC2A9CB5F48DC66C698496A89C /* LayoutGuaranteedView-dummy.m */; }; 15 | A74F246EB9C0936F4ACF451C180803C1 /* LayoutGuaranteedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E64B41567C0DA33F33E52F6A14FE60E /* LayoutGuaranteedView.swift */; }; 16 | B0FB3FF34117C699742F25EC2E2C115C /* Pods-LayoutGuaranteedViewExample-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 9F1AF6BFC174992FBC98EBC0588BC7B4 /* Pods-LayoutGuaranteedViewExample-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | BE6ED128EA65A48C0E12C90A9811F815 /* LayoutGuaranteedView.initializer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508153CE5D8E550D921CA902858352F5 /* LayoutGuaranteedView.initializer.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 0E3CDD98B16FCEDB26594FF8838C78A5 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = EC9DAF6B6C6BECF1EA55AF3683BEC00D; 26 | remoteInfo = LayoutGuaranteedView; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 3CA290111DF9815AD49CC6F9FF7F0981 /* Pods-LayoutGuaranteedViewExample-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-LayoutGuaranteedViewExample-frameworks.sh"; sourceTree = ""; }; 32 | 413D79661519083B35162517F67DB14D /* LayoutGuaranteedView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "LayoutGuaranteedView-prefix.pch"; sourceTree = ""; }; 33 | 5024DF918E8643C76A4DA1EA081FE0E2 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 508153CE5D8E550D921CA902858352F5 /* LayoutGuaranteedView.initializer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = LayoutGuaranteedView.initializer.swift; sourceTree = ""; }; 35 | 56224C6292E6EB7C9F4C53CDCF877DD2 /* LayoutGuaranteedView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = LayoutGuaranteedView.modulemap; sourceTree = ""; }; 36 | 648D889A14A031E8571CE635D5309764 /* Pods-LayoutGuaranteedViewExample-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-LayoutGuaranteedViewExample-acknowledgements.markdown"; sourceTree = ""; }; 37 | 6537A0B70AF58E8E3B6761C98519C5B4 /* Pods-LayoutGuaranteedViewExample-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-LayoutGuaranteedViewExample-acknowledgements.plist"; sourceTree = ""; }; 38 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 39 | 6AB7FCEF7771BD7D17228AB86E1BF1DC /* LayoutGuaranteedView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "LayoutGuaranteedView-umbrella.h"; sourceTree = ""; }; 40 | 7400D0AC2A9CB5F48DC66C698496A89C /* LayoutGuaranteedView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "LayoutGuaranteedView-dummy.m"; sourceTree = ""; }; 41 | 7796A82BA15A4A7FD36F2FA35110B081 /* Pods-LayoutGuaranteedViewExample-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-LayoutGuaranteedViewExample-dummy.m"; sourceTree = ""; }; 42 | 77FD8DAC3A19B42F23E20B9995CF9E83 /* LayoutGuaranteedView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = LayoutGuaranteedView.xcconfig; sourceTree = ""; }; 43 | 7E64B41567C0DA33F33E52F6A14FE60E /* LayoutGuaranteedView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = LayoutGuaranteedView.swift; sourceTree = ""; }; 44 | 8F622E5C41F0BDD07CF7A3AE51831091 /* Pods-LayoutGuaranteedViewExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-LayoutGuaranteedViewExample.release.xcconfig"; sourceTree = ""; }; 45 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 46 | 97A08B27615CA0F85AFBC37F91773172 /* LayoutGuaranteedView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = LayoutGuaranteedView.framework; path = LayoutGuaranteedView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 9F1AF6BFC174992FBC98EBC0588BC7B4 /* Pods-LayoutGuaranteedViewExample-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-LayoutGuaranteedViewExample-umbrella.h"; sourceTree = ""; }; 48 | A2A13DD808B70BD4913380475C6FF548 /* Pods-LayoutGuaranteedViewExample.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-LayoutGuaranteedViewExample.modulemap"; sourceTree = ""; }; 49 | ADE3C90575AB6623D1DDC6F31C16321A /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | D4ACB81A5DC694F414822B2A8BD22A60 /* Pods-LayoutGuaranteedViewExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-LayoutGuaranteedViewExample.debug.xcconfig"; sourceTree = ""; }; 51 | E73C3E367CF134BA589B82F01E9D6927 /* Pods-LayoutGuaranteedViewExample-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-LayoutGuaranteedViewExample-resources.sh"; sourceTree = ""; }; 52 | E8BFEAC57E0F6BBD0C5F5DB0D1B98FF0 /* Pods_LayoutGuaranteedViewExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_LayoutGuaranteedViewExample.framework; path = "Pods-LayoutGuaranteedViewExample.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | A68DDBF0B4D0381636F83E699C65C866 /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 4DC6A8A649ABFEA9E76E28FE91C7FF73 /* Foundation.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | EE5D94E7D88A282B106D5CA43A3A7916 /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 8233AC2640124999B9F01757A6852D1B /* Foundation.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 0A9749FFDECFEC2C517F0D0C0FDACC93 /* Support Files */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | ADE3C90575AB6623D1DDC6F31C16321A /* Info.plist */, 79 | 56224C6292E6EB7C9F4C53CDCF877DD2 /* LayoutGuaranteedView.modulemap */, 80 | 77FD8DAC3A19B42F23E20B9995CF9E83 /* LayoutGuaranteedView.xcconfig */, 81 | 7400D0AC2A9CB5F48DC66C698496A89C /* LayoutGuaranteedView-dummy.m */, 82 | 413D79661519083B35162517F67DB14D /* LayoutGuaranteedView-prefix.pch */, 83 | 6AB7FCEF7771BD7D17228AB86E1BF1DC /* LayoutGuaranteedView-umbrella.h */, 84 | ); 85 | name = "Support Files"; 86 | path = "Example/Pods/Target Support Files/LayoutGuaranteedView"; 87 | sourceTree = ""; 88 | }; 89 | 478DC9E0359B00778F93DDF67A9E03DB /* Development Pods */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | E63B1EBA48CB77F2EE82390299DE5CBB /* LayoutGuaranteedView */, 93 | ); 94 | name = "Development Pods"; 95 | sourceTree = ""; 96 | }; 97 | 7349174DB08BD2ACCDC850D0CA158226 /* LayoutGuaranteedView */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 7E64B41567C0DA33F33E52F6A14FE60E /* LayoutGuaranteedView.swift */, 101 | 508153CE5D8E550D921CA902858352F5 /* LayoutGuaranteedView.initializer.swift */, 102 | ); 103 | name = LayoutGuaranteedView; 104 | path = LayoutGuaranteedView; 105 | sourceTree = ""; 106 | }; 107 | 7DB346D0F39D3F0E887471402A8071AB = { 108 | isa = PBXGroup; 109 | children = ( 110 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 111 | 478DC9E0359B00778F93DDF67A9E03DB /* Development Pods */, 112 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 113 | B2E69D982DDABBA0DA822115FF54E38E /* Products */, 114 | B6C237BEBC30E8D1AF125027694DC93E /* Targets Support Files */, 115 | ); 116 | sourceTree = ""; 117 | }; 118 | 94B97A79D24E9DF18ED9063217AE430A /* Pods-LayoutGuaranteedViewExample */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 5024DF918E8643C76A4DA1EA081FE0E2 /* Info.plist */, 122 | A2A13DD808B70BD4913380475C6FF548 /* Pods-LayoutGuaranteedViewExample.modulemap */, 123 | 648D889A14A031E8571CE635D5309764 /* Pods-LayoutGuaranteedViewExample-acknowledgements.markdown */, 124 | 6537A0B70AF58E8E3B6761C98519C5B4 /* Pods-LayoutGuaranteedViewExample-acknowledgements.plist */, 125 | 7796A82BA15A4A7FD36F2FA35110B081 /* Pods-LayoutGuaranteedViewExample-dummy.m */, 126 | 3CA290111DF9815AD49CC6F9FF7F0981 /* Pods-LayoutGuaranteedViewExample-frameworks.sh */, 127 | E73C3E367CF134BA589B82F01E9D6927 /* Pods-LayoutGuaranteedViewExample-resources.sh */, 128 | 9F1AF6BFC174992FBC98EBC0588BC7B4 /* Pods-LayoutGuaranteedViewExample-umbrella.h */, 129 | D4ACB81A5DC694F414822B2A8BD22A60 /* Pods-LayoutGuaranteedViewExample.debug.xcconfig */, 130 | 8F622E5C41F0BDD07CF7A3AE51831091 /* Pods-LayoutGuaranteedViewExample.release.xcconfig */, 131 | ); 132 | name = "Pods-LayoutGuaranteedViewExample"; 133 | path = "Target Support Files/Pods-LayoutGuaranteedViewExample"; 134 | sourceTree = ""; 135 | }; 136 | B2E69D982DDABBA0DA822115FF54E38E /* Products */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 97A08B27615CA0F85AFBC37F91773172 /* LayoutGuaranteedView.framework */, 140 | E8BFEAC57E0F6BBD0C5F5DB0D1B98FF0 /* Pods_LayoutGuaranteedViewExample.framework */, 141 | ); 142 | name = Products; 143 | sourceTree = ""; 144 | }; 145 | B6C237BEBC30E8D1AF125027694DC93E /* Targets Support Files */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 94B97A79D24E9DF18ED9063217AE430A /* Pods-LayoutGuaranteedViewExample */, 149 | ); 150 | name = "Targets Support Files"; 151 | sourceTree = ""; 152 | }; 153 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 157 | ); 158 | name = Frameworks; 159 | sourceTree = ""; 160 | }; 161 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 165 | ); 166 | name = iOS; 167 | sourceTree = ""; 168 | }; 169 | E63B1EBA48CB77F2EE82390299DE5CBB /* LayoutGuaranteedView */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 7349174DB08BD2ACCDC850D0CA158226 /* LayoutGuaranteedView */, 173 | 0A9749FFDECFEC2C517F0D0C0FDACC93 /* Support Files */, 174 | ); 175 | name = LayoutGuaranteedView; 176 | path = ../..; 177 | sourceTree = ""; 178 | }; 179 | /* End PBXGroup section */ 180 | 181 | /* Begin PBXHeadersBuildPhase section */ 182 | B4D7DA91C562DE4ACE2136A4D031C4D9 /* Headers */ = { 183 | isa = PBXHeadersBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 790BB3225599B9DDFE4EADD96D7E7066 /* LayoutGuaranteedView-umbrella.h in Headers */, 187 | ); 188 | runOnlyForDeploymentPostprocessing = 0; 189 | }; 190 | CB256F7BD1FEF15A90B8ECFF19240D53 /* Headers */ = { 191 | isa = PBXHeadersBuildPhase; 192 | buildActionMask = 2147483647; 193 | files = ( 194 | B0FB3FF34117C699742F25EC2E2C115C /* Pods-LayoutGuaranteedViewExample-umbrella.h in Headers */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXHeadersBuildPhase section */ 199 | 200 | /* Begin PBXNativeTarget section */ 201 | DF3E2C55F668ADF809DFAE6DD0AAB7F3 /* Pods-LayoutGuaranteedViewExample */ = { 202 | isa = PBXNativeTarget; 203 | buildConfigurationList = D5F1844B55BE82074CCEC29C8458DA6B /* Build configuration list for PBXNativeTarget "Pods-LayoutGuaranteedViewExample" */; 204 | buildPhases = ( 205 | F8139E603C9E480E58DA0AA741D308F0 /* Sources */, 206 | EE5D94E7D88A282B106D5CA43A3A7916 /* Frameworks */, 207 | CB256F7BD1FEF15A90B8ECFF19240D53 /* Headers */, 208 | ); 209 | buildRules = ( 210 | ); 211 | dependencies = ( 212 | 2B6D2666945BB3A0F4E737EF18DDF295 /* PBXTargetDependency */, 213 | ); 214 | name = "Pods-LayoutGuaranteedViewExample"; 215 | productName = "Pods-LayoutGuaranteedViewExample"; 216 | productReference = E8BFEAC57E0F6BBD0C5F5DB0D1B98FF0 /* Pods_LayoutGuaranteedViewExample.framework */; 217 | productType = "com.apple.product-type.framework"; 218 | }; 219 | EC9DAF6B6C6BECF1EA55AF3683BEC00D /* LayoutGuaranteedView */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = EC94AC6453967A404FF704B2432CA480 /* Build configuration list for PBXNativeTarget "LayoutGuaranteedView" */; 222 | buildPhases = ( 223 | 238AA091CA47C72FEE71CCAF02BA84C8 /* Sources */, 224 | A68DDBF0B4D0381636F83E699C65C866 /* Frameworks */, 225 | B4D7DA91C562DE4ACE2136A4D031C4D9 /* Headers */, 226 | ); 227 | buildRules = ( 228 | ); 229 | dependencies = ( 230 | ); 231 | name = LayoutGuaranteedView; 232 | productName = LayoutGuaranteedView; 233 | productReference = 97A08B27615CA0F85AFBC37F91773172 /* LayoutGuaranteedView.framework */; 234 | productType = "com.apple.product-type.framework"; 235 | }; 236 | /* End PBXNativeTarget section */ 237 | 238 | /* Begin PBXProject section */ 239 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 240 | isa = PBXProject; 241 | attributes = { 242 | LastSwiftUpdateCheck = 0830; 243 | LastUpgradeCheck = 0700; 244 | }; 245 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 246 | compatibilityVersion = "Xcode 3.2"; 247 | developmentRegion = English; 248 | hasScannedForEncodings = 0; 249 | knownRegions = ( 250 | en, 251 | ); 252 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 253 | productRefGroup = B2E69D982DDABBA0DA822115FF54E38E /* Products */; 254 | projectDirPath = ""; 255 | projectRoot = ""; 256 | targets = ( 257 | EC9DAF6B6C6BECF1EA55AF3683BEC00D /* LayoutGuaranteedView */, 258 | DF3E2C55F668ADF809DFAE6DD0AAB7F3 /* Pods-LayoutGuaranteedViewExample */, 259 | ); 260 | }; 261 | /* End PBXProject section */ 262 | 263 | /* Begin PBXSourcesBuildPhase section */ 264 | 238AA091CA47C72FEE71CCAF02BA84C8 /* Sources */ = { 265 | isa = PBXSourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | A0BC6266D58BA8127E153DC7C8B03190 /* LayoutGuaranteedView-dummy.m in Sources */, 269 | BE6ED128EA65A48C0E12C90A9811F815 /* LayoutGuaranteedView.initializer.swift in Sources */, 270 | A74F246EB9C0936F4ACF451C180803C1 /* LayoutGuaranteedView.swift in Sources */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | F8139E603C9E480E58DA0AA741D308F0 /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 12DABF8EDD03D6C8713D55FA82A6043F /* Pods-LayoutGuaranteedViewExample-dummy.m in Sources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | /* End PBXSourcesBuildPhase section */ 283 | 284 | /* Begin PBXTargetDependency section */ 285 | 2B6D2666945BB3A0F4E737EF18DDF295 /* PBXTargetDependency */ = { 286 | isa = PBXTargetDependency; 287 | name = LayoutGuaranteedView; 288 | target = EC9DAF6B6C6BECF1EA55AF3683BEC00D /* LayoutGuaranteedView */; 289 | targetProxy = 0E3CDD98B16FCEDB26594FF8838C78A5 /* PBXContainerItemProxy */; 290 | }; 291 | /* End PBXTargetDependency section */ 292 | 293 | /* Begin XCBuildConfiguration section */ 294 | 326B6F122EACA08E9574EF2A5CB50FEC /* Debug */ = { 295 | isa = XCBuildConfiguration; 296 | baseConfigurationReference = 77FD8DAC3A19B42F23E20B9995CF9E83 /* LayoutGuaranteedView.xcconfig */; 297 | buildSettings = { 298 | CODE_SIGN_IDENTITY = ""; 299 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 300 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 301 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 302 | CURRENT_PROJECT_VERSION = 1; 303 | DEBUG_INFORMATION_FORMAT = dwarf; 304 | DEFINES_MODULE = YES; 305 | DYLIB_COMPATIBILITY_VERSION = 1; 306 | DYLIB_CURRENT_VERSION = 1; 307 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 308 | ENABLE_STRICT_OBJC_MSGSEND = YES; 309 | GCC_NO_COMMON_BLOCKS = YES; 310 | GCC_PREFIX_HEADER = "Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView-prefix.pch"; 311 | INFOPLIST_FILE = "Target Support Files/LayoutGuaranteedView/Info.plist"; 312 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 313 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 314 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 315 | MODULEMAP_FILE = "Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView.modulemap"; 316 | MTL_ENABLE_DEBUG_INFO = YES; 317 | PRODUCT_NAME = LayoutGuaranteedView; 318 | SDKROOT = iphoneos; 319 | SKIP_INSTALL = YES; 320 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 321 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 322 | SWIFT_VERSION = 4.0; 323 | TARGETED_DEVICE_FAMILY = "1,2"; 324 | VERSIONING_SYSTEM = "apple-generic"; 325 | VERSION_INFO_PREFIX = ""; 326 | }; 327 | name = Debug; 328 | }; 329 | 35686866E439595A49421440EE3CA2E4 /* Debug */ = { 330 | isa = XCBuildConfiguration; 331 | baseConfigurationReference = D4ACB81A5DC694F414822B2A8BD22A60 /* Pods-LayoutGuaranteedViewExample.debug.xcconfig */; 332 | buildSettings = { 333 | CODE_SIGN_IDENTITY = ""; 334 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 336 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 337 | CURRENT_PROJECT_VERSION = 1; 338 | DEBUG_INFORMATION_FORMAT = dwarf; 339 | DEFINES_MODULE = YES; 340 | DYLIB_COMPATIBILITY_VERSION = 1; 341 | DYLIB_CURRENT_VERSION = 1; 342 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 343 | ENABLE_STRICT_OBJC_MSGSEND = YES; 344 | GCC_NO_COMMON_BLOCKS = YES; 345 | INFOPLIST_FILE = "Target Support Files/Pods-LayoutGuaranteedViewExample/Info.plist"; 346 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 347 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 348 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 349 | MACH_O_TYPE = staticlib; 350 | MODULEMAP_FILE = "Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample.modulemap"; 351 | MTL_ENABLE_DEBUG_INFO = YES; 352 | OTHER_LDFLAGS = ""; 353 | OTHER_LIBTOOLFLAGS = ""; 354 | PODS_ROOT = "$(SRCROOT)"; 355 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 356 | PRODUCT_NAME = Pods_LayoutGuaranteedViewExample; 357 | SDKROOT = iphoneos; 358 | SKIP_INSTALL = YES; 359 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 360 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 361 | SWIFT_VERSION = 3.0; 362 | TARGETED_DEVICE_FAMILY = "1,2"; 363 | VERSIONING_SYSTEM = "apple-generic"; 364 | VERSION_INFO_PREFIX = ""; 365 | }; 366 | name = Debug; 367 | }; 368 | 4E487F173E6C9664F4E9E26B9635D23C /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ALWAYS_SEARCH_USER_PATHS = NO; 372 | CLANG_ANALYZER_NONNULL = YES; 373 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 374 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 375 | CLANG_CXX_LIBRARY = "libc++"; 376 | CLANG_ENABLE_MODULES = YES; 377 | CLANG_ENABLE_OBJC_ARC = YES; 378 | CLANG_WARN_BOOL_CONVERSION = YES; 379 | CLANG_WARN_CONSTANT_CONVERSION = YES; 380 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 381 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 382 | CLANG_WARN_EMPTY_BODY = YES; 383 | CLANG_WARN_ENUM_CONVERSION = YES; 384 | CLANG_WARN_INFINITE_RECURSION = YES; 385 | CLANG_WARN_INT_CONVERSION = YES; 386 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 387 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 388 | CLANG_WARN_UNREACHABLE_CODE = YES; 389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 390 | CODE_SIGNING_REQUIRED = NO; 391 | COPY_PHASE_STRIP = NO; 392 | ENABLE_TESTABILITY = YES; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_DYNAMIC_NO_PIC = NO; 395 | GCC_OPTIMIZATION_LEVEL = 0; 396 | GCC_PREPROCESSOR_DEFINITIONS = ( 397 | "POD_CONFIGURATION_DEBUG=1", 398 | "DEBUG=1", 399 | "$(inherited)", 400 | ); 401 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 402 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 403 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 404 | GCC_WARN_UNDECLARED_SELECTOR = YES; 405 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 406 | GCC_WARN_UNUSED_FUNCTION = YES; 407 | GCC_WARN_UNUSED_VARIABLE = YES; 408 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 409 | ONLY_ACTIVE_ARCH = YES; 410 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 411 | STRIP_INSTALLED_PRODUCT = NO; 412 | SYMROOT = "${SRCROOT}/../build"; 413 | }; 414 | name = Debug; 415 | }; 416 | 6C3C499DCE4728991A7271515353FE4A /* Release */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 77FD8DAC3A19B42F23E20B9995CF9E83 /* LayoutGuaranteedView.xcconfig */; 419 | buildSettings = { 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 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 426 | DEFINES_MODULE = YES; 427 | DYLIB_COMPATIBILITY_VERSION = 1; 428 | DYLIB_CURRENT_VERSION = 1; 429 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 430 | ENABLE_STRICT_OBJC_MSGSEND = YES; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | GCC_PREFIX_HEADER = "Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView-prefix.pch"; 433 | INFOPLIST_FILE = "Target Support Files/LayoutGuaranteedView/Info.plist"; 434 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 435 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 437 | MODULEMAP_FILE = "Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView.modulemap"; 438 | MTL_ENABLE_DEBUG_INFO = NO; 439 | PRODUCT_NAME = LayoutGuaranteedView; 440 | SDKROOT = iphoneos; 441 | SKIP_INSTALL = YES; 442 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 443 | SWIFT_VERSION = 4.0; 444 | TARGETED_DEVICE_FAMILY = "1,2"; 445 | VERSIONING_SYSTEM = "apple-generic"; 446 | VERSION_INFO_PREFIX = ""; 447 | }; 448 | name = Release; 449 | }; 450 | 7017B40F5CB56B59CBCEC95670F11F2F /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | baseConfigurationReference = 8F622E5C41F0BDD07CF7A3AE51831091 /* Pods-LayoutGuaranteedViewExample.release.xcconfig */; 453 | buildSettings = { 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 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 460 | DEFINES_MODULE = YES; 461 | DYLIB_COMPATIBILITY_VERSION = 1; 462 | DYLIB_CURRENT_VERSION = 1; 463 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 464 | ENABLE_STRICT_OBJC_MSGSEND = YES; 465 | GCC_NO_COMMON_BLOCKS = YES; 466 | INFOPLIST_FILE = "Target Support Files/Pods-LayoutGuaranteedViewExample/Info.plist"; 467 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 468 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 470 | MACH_O_TYPE = staticlib; 471 | MODULEMAP_FILE = "Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample.modulemap"; 472 | MTL_ENABLE_DEBUG_INFO = NO; 473 | OTHER_LDFLAGS = ""; 474 | OTHER_LIBTOOLFLAGS = ""; 475 | PODS_ROOT = "$(SRCROOT)"; 476 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 477 | PRODUCT_NAME = Pods_LayoutGuaranteedViewExample; 478 | SDKROOT = iphoneos; 479 | SKIP_INSTALL = YES; 480 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 481 | SWIFT_VERSION = 3.0; 482 | TARGETED_DEVICE_FAMILY = "1,2"; 483 | VERSIONING_SYSTEM = "apple-generic"; 484 | VERSION_INFO_PREFIX = ""; 485 | }; 486 | name = Release; 487 | }; 488 | BDD0139D6EB93FA375F887ABD62DAB2E /* Release */ = { 489 | isa = XCBuildConfiguration; 490 | buildSettings = { 491 | ALWAYS_SEARCH_USER_PATHS = NO; 492 | CLANG_ANALYZER_NONNULL = YES; 493 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 494 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 495 | CLANG_CXX_LIBRARY = "libc++"; 496 | CLANG_ENABLE_MODULES = YES; 497 | CLANG_ENABLE_OBJC_ARC = YES; 498 | CLANG_WARN_BOOL_CONVERSION = YES; 499 | CLANG_WARN_CONSTANT_CONVERSION = YES; 500 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 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_OBJC_ROOT_CLASS = YES; 507 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 508 | CLANG_WARN_UNREACHABLE_CODE = YES; 509 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 510 | CODE_SIGNING_REQUIRED = NO; 511 | COPY_PHASE_STRIP = YES; 512 | ENABLE_NS_ASSERTIONS = NO; 513 | GCC_C_LANGUAGE_STANDARD = gnu99; 514 | GCC_PREPROCESSOR_DEFINITIONS = ( 515 | "POD_CONFIGURATION_RELEASE=1", 516 | "$(inherited)", 517 | ); 518 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 519 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 520 | GCC_WARN_UNDECLARED_SELECTOR = YES; 521 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 522 | GCC_WARN_UNUSED_FUNCTION = YES; 523 | GCC_WARN_UNUSED_VARIABLE = YES; 524 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 525 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 526 | STRIP_INSTALLED_PRODUCT = NO; 527 | SYMROOT = "${SRCROOT}/../build"; 528 | VALIDATE_PRODUCT = YES; 529 | }; 530 | name = Release; 531 | }; 532 | /* End XCBuildConfiguration section */ 533 | 534 | /* Begin XCConfigurationList section */ 535 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 536 | isa = XCConfigurationList; 537 | buildConfigurations = ( 538 | 4E487F173E6C9664F4E9E26B9635D23C /* Debug */, 539 | BDD0139D6EB93FA375F887ABD62DAB2E /* Release */, 540 | ); 541 | defaultConfigurationIsVisible = 0; 542 | defaultConfigurationName = Release; 543 | }; 544 | D5F1844B55BE82074CCEC29C8458DA6B /* Build configuration list for PBXNativeTarget "Pods-LayoutGuaranteedViewExample" */ = { 545 | isa = XCConfigurationList; 546 | buildConfigurations = ( 547 | 35686866E439595A49421440EE3CA2E4 /* Debug */, 548 | 7017B40F5CB56B59CBCEC95670F11F2F /* Release */, 549 | ); 550 | defaultConfigurationIsVisible = 0; 551 | defaultConfigurationName = Release; 552 | }; 553 | EC94AC6453967A404FF704B2432CA480 /* Build configuration list for PBXNativeTarget "LayoutGuaranteedView" */ = { 554 | isa = XCConfigurationList; 555 | buildConfigurations = ( 556 | 326B6F122EACA08E9574EF2A5CB50FEC /* Debug */, 557 | 6C3C499DCE4728991A7271515353FE4A /* Release */, 558 | ); 559 | defaultConfigurationIsVisible = 0; 560 | defaultConfigurationName = Release; 561 | }; 562 | /* End XCConfigurationList section */ 563 | }; 564 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 565 | } 566 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LayoutGuaranteedView/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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_LayoutGuaranteedView : NSObject 3 | @end 4 | @implementation PodsDummy_LayoutGuaranteedView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView-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 LayoutGuaranteedViewVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char LayoutGuaranteedViewVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView.modulemap: -------------------------------------------------------------------------------- 1 | framework module LayoutGuaranteedView { 2 | umbrella header "LayoutGuaranteedView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LayoutGuaranteedView/LayoutGuaranteedView.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/LayoutGuaranteedView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## LayoutGuaranteedView 5 | 6 | Copyright (c) 2017 marty-suzuki 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2017 marty-suzuki <s1180183@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | LayoutGuaranteedView 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_LayoutGuaranteedViewExample : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_LayoutGuaranteedViewExample 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/LayoutGuaranteedView/LayoutGuaranteedView.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/LayoutGuaranteedView/LayoutGuaranteedView.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | 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}" 48 | 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} 49 | ;; 50 | *.xib) 51 | 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}" 52 | 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} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | 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}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample-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_LayoutGuaranteedViewExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_LayoutGuaranteedViewExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LayoutGuaranteedView" 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/LayoutGuaranteedView/LayoutGuaranteedView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "LayoutGuaranteedView" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LayoutGuaranteedViewExample { 2 | umbrella header "Pods-LayoutGuaranteedViewExample-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LayoutGuaranteedViewExample/Pods-LayoutGuaranteedViewExample.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LayoutGuaranteedView" 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/LayoutGuaranteedView/LayoutGuaranteedView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "LayoutGuaranteedView" 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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 marty-suzuki 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /LayoutGuaranteedView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint LayoutGuaranteedView.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'LayoutGuaranteedView' 11 | s.version = '0.1.0' 12 | s.summary = 'LayoutGuaranteedView is a Phantom Type view holder.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | # s.description = <<-DESC 21 | # TODO: Add long description of the pod here. 22 | # DESC 23 | 24 | s.homepage = 'https://github.com/marty-suzuki/LayoutGuaranteedView' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'marty-suzuki' => 's1180183@gmail.com' } 28 | s.source = { :git => 'https://github.com/marty-suzuki/LayoutGuaranteedView.git', :tag => s.version.to_s } 29 | s.social_media_url = 'https://twitter.com/marty_suzuki' 30 | 31 | s.ios.deployment_target = '9.0' 32 | 33 | s.source_files = 'LayoutGuaranteedView/*.{swift}' 34 | 35 | # s.resource_bundles = { 36 | # 'LayoutGuaranteedView' => ['LayoutGuaranteedView/Assets/*.png'] 37 | # } 38 | 39 | # s.public_header_files = 'Pod/Classes/**/*.h' 40 | # s.frameworks = 'UIKit', 'MapKit' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /LayoutGuaranteedView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3752C9571FB37568000131A3 /* UICollectionViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C9561FB37568000131A3 /* UICollectionViewTests.swift */; }; 11 | 3752C9591FB376EE000131A3 /* UITableViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C9581FB376EE000131A3 /* UITableViewTests.swift */; }; 12 | 3752C95B1FB37765000131A3 /* UIStackViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C95A1FB37765000131A3 /* UIStackViewTests.swift */; }; 13 | 3752C95D1FB3781E000131A3 /* UIScrollViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C95C1FB3781E000131A3 /* UIScrollViewTests.swift */; }; 14 | 3752C95F1FB37850000131A3 /* UIActivityIndicatorViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C95E1FB37850000131A3 /* UIActivityIndicatorViewTests.swift */; }; 15 | 3752C9611FB378C9000131A3 /* UIImageViewTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C9601FB378C9000131A3 /* UIImageViewTest.swift */; }; 16 | 3752C9631FB37979000131A3 /* UIPickerViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C9621FB37979000131A3 /* UIPickerViewTests.swift */; }; 17 | 3752C9651FB379AC000131A3 /* UIWebViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C9641FB379AC000131A3 /* UIWebViewTests.swift */; }; 18 | 3752C9671FB379FA000131A3 /* UIProgressViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3752C9661FB379FA000131A3 /* UIProgressViewTests.swift */; }; 19 | 9D95412D1FB2CA800083292B /* LayoutGuaranteedView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D9541231FB2CA800083292B /* LayoutGuaranteedView.framework */; }; 20 | 9D9541321FB2CA800083292B /* UIViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D9541311FB2CA800083292B /* UIViewTests.swift */; }; 21 | 9D9541341FB2CA800083292B /* LayoutGuaranteedView.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D9541261FB2CA800083292B /* LayoutGuaranteedView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | 9D95413E1FB2CAB20083292B /* LayoutGuaranteedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D95413D1FB2CAB20083292B /* LayoutGuaranteedView.swift */; }; 23 | 9D9541401FB2CB340083292B /* LayoutGuaranteedView.initializer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D95413F1FB2CB340083292B /* LayoutGuaranteedView.initializer.swift */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 9D95412E1FB2CA800083292B /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 9D95411A1FB2CA800083292B /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 9D9541221FB2CA800083292B; 32 | remoteInfo = LayoutGuaranteedView; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | 3752C9561FB37568000131A3 /* UICollectionViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UICollectionViewTests.swift; sourceTree = ""; }; 38 | 3752C9581FB376EE000131A3 /* UITableViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITableViewTests.swift; sourceTree = ""; }; 39 | 3752C95A1FB37765000131A3 /* UIStackViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIStackViewTests.swift; sourceTree = ""; }; 40 | 3752C95C1FB3781E000131A3 /* UIScrollViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIScrollViewTests.swift; sourceTree = ""; }; 41 | 3752C95E1FB37850000131A3 /* UIActivityIndicatorViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIActivityIndicatorViewTests.swift; sourceTree = ""; }; 42 | 3752C9601FB378C9000131A3 /* UIImageViewTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIImageViewTest.swift; sourceTree = ""; }; 43 | 3752C9621FB37979000131A3 /* UIPickerViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIPickerViewTests.swift; sourceTree = ""; }; 44 | 3752C9641FB379AC000131A3 /* UIWebViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIWebViewTests.swift; sourceTree = ""; }; 45 | 3752C9661FB379FA000131A3 /* UIProgressViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIProgressViewTests.swift; sourceTree = ""; }; 46 | 9D9541231FB2CA800083292B /* LayoutGuaranteedView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LayoutGuaranteedView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 9D9541261FB2CA800083292B /* LayoutGuaranteedView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LayoutGuaranteedView.h; sourceTree = ""; }; 48 | 9D9541271FB2CA800083292B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 9D95412C1FB2CA800083292B /* LayoutGuaranteedViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LayoutGuaranteedViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 9D9541311FB2CA800083292B /* UIViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIViewTests.swift; sourceTree = ""; }; 51 | 9D9541331FB2CA800083292B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 9D95413D1FB2CAB20083292B /* LayoutGuaranteedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LayoutGuaranteedView.swift; sourceTree = ""; }; 53 | 9D95413F1FB2CB340083292B /* LayoutGuaranteedView.initializer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LayoutGuaranteedView.initializer.swift; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 9D95411F1FB2CA800083292B /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | 9D9541291FB2CA800083292B /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 9D95412D1FB2CA800083292B /* LayoutGuaranteedView.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 9D9541191FB2CA800083292B = { 76 | isa = PBXGroup; 77 | children = ( 78 | 9D9541251FB2CA800083292B /* LayoutGuaranteedView */, 79 | 9D9541301FB2CA800083292B /* LayoutGuaranteedViewTests */, 80 | 9D9541241FB2CA800083292B /* Products */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 9D9541241FB2CA800083292B /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9D9541231FB2CA800083292B /* LayoutGuaranteedView.framework */, 88 | 9D95412C1FB2CA800083292B /* LayoutGuaranteedViewTests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 9D9541251FB2CA800083292B /* LayoutGuaranteedView */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 9D9541261FB2CA800083292B /* LayoutGuaranteedView.h */, 97 | 9D9541271FB2CA800083292B /* Info.plist */, 98 | 9D95413D1FB2CAB20083292B /* LayoutGuaranteedView.swift */, 99 | 9D95413F1FB2CB340083292B /* LayoutGuaranteedView.initializer.swift */, 100 | ); 101 | path = LayoutGuaranteedView; 102 | sourceTree = ""; 103 | }; 104 | 9D9541301FB2CA800083292B /* LayoutGuaranteedViewTests */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 9D9541311FB2CA800083292B /* UIViewTests.swift */, 108 | 3752C9581FB376EE000131A3 /* UITableViewTests.swift */, 109 | 3752C9561FB37568000131A3 /* UICollectionViewTests.swift */, 110 | 3752C95A1FB37765000131A3 /* UIStackViewTests.swift */, 111 | 3752C95C1FB3781E000131A3 /* UIScrollViewTests.swift */, 112 | 3752C95E1FB37850000131A3 /* UIActivityIndicatorViewTests.swift */, 113 | 3752C9601FB378C9000131A3 /* UIImageViewTest.swift */, 114 | 3752C9621FB37979000131A3 /* UIPickerViewTests.swift */, 115 | 3752C9641FB379AC000131A3 /* UIWebViewTests.swift */, 116 | 9D9541331FB2CA800083292B /* Info.plist */, 117 | 3752C9661FB379FA000131A3 /* UIProgressViewTests.swift */, 118 | ); 119 | path = LayoutGuaranteedViewTests; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXHeadersBuildPhase section */ 125 | 9D9541201FB2CA800083292B /* Headers */ = { 126 | isa = PBXHeadersBuildPhase; 127 | buildActionMask = 2147483647; 128 | files = ( 129 | 9D9541341FB2CA800083292B /* LayoutGuaranteedView.h in Headers */, 130 | ); 131 | runOnlyForDeploymentPostprocessing = 0; 132 | }; 133 | /* End PBXHeadersBuildPhase section */ 134 | 135 | /* Begin PBXNativeTarget section */ 136 | 9D9541221FB2CA800083292B /* LayoutGuaranteedView */ = { 137 | isa = PBXNativeTarget; 138 | buildConfigurationList = 9D9541371FB2CA800083292B /* Build configuration list for PBXNativeTarget "LayoutGuaranteedView" */; 139 | buildPhases = ( 140 | 9D95411E1FB2CA800083292B /* Sources */, 141 | 9D95411F1FB2CA800083292B /* Frameworks */, 142 | 9D9541201FB2CA800083292B /* Headers */, 143 | 9D9541211FB2CA800083292B /* Resources */, 144 | ); 145 | buildRules = ( 146 | ); 147 | dependencies = ( 148 | ); 149 | name = LayoutGuaranteedView; 150 | productName = LayoutGuaranteedView; 151 | productReference = 9D9541231FB2CA800083292B /* LayoutGuaranteedView.framework */; 152 | productType = "com.apple.product-type.framework"; 153 | }; 154 | 9D95412B1FB2CA800083292B /* LayoutGuaranteedViewTests */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = 9D95413A1FB2CA800083292B /* Build configuration list for PBXNativeTarget "LayoutGuaranteedViewTests" */; 157 | buildPhases = ( 158 | 9D9541281FB2CA800083292B /* Sources */, 159 | 9D9541291FB2CA800083292B /* Frameworks */, 160 | 9D95412A1FB2CA800083292B /* Resources */, 161 | ); 162 | buildRules = ( 163 | ); 164 | dependencies = ( 165 | 9D95412F1FB2CA800083292B /* PBXTargetDependency */, 166 | ); 167 | name = LayoutGuaranteedViewTests; 168 | productName = LayoutGuaranteedViewTests; 169 | productReference = 9D95412C1FB2CA800083292B /* LayoutGuaranteedViewTests.xctest */; 170 | productType = "com.apple.product-type.bundle.unit-test"; 171 | }; 172 | /* End PBXNativeTarget section */ 173 | 174 | /* Begin PBXProject section */ 175 | 9D95411A1FB2CA800083292B /* Project object */ = { 176 | isa = PBXProject; 177 | attributes = { 178 | LastSwiftUpdateCheck = 0900; 179 | LastUpgradeCheck = 0900; 180 | ORGANIZATIONNAME = "marty-suzuki"; 181 | TargetAttributes = { 182 | 9D9541221FB2CA800083292B = { 183 | CreatedOnToolsVersion = 9.0.1; 184 | LastSwiftMigration = 0900; 185 | ProvisioningStyle = Manual; 186 | }; 187 | 9D95412B1FB2CA800083292B = { 188 | CreatedOnToolsVersion = 9.0.1; 189 | ProvisioningStyle = Manual; 190 | }; 191 | }; 192 | }; 193 | buildConfigurationList = 9D95411D1FB2CA800083292B /* Build configuration list for PBXProject "LayoutGuaranteedView" */; 194 | compatibilityVersion = "Xcode 8.0"; 195 | developmentRegion = en; 196 | hasScannedForEncodings = 0; 197 | knownRegions = ( 198 | en, 199 | ); 200 | mainGroup = 9D9541191FB2CA800083292B; 201 | productRefGroup = 9D9541241FB2CA800083292B /* Products */; 202 | projectDirPath = ""; 203 | projectRoot = ""; 204 | targets = ( 205 | 9D9541221FB2CA800083292B /* LayoutGuaranteedView */, 206 | 9D95412B1FB2CA800083292B /* LayoutGuaranteedViewTests */, 207 | ); 208 | }; 209 | /* End PBXProject section */ 210 | 211 | /* Begin PBXResourcesBuildPhase section */ 212 | 9D9541211FB2CA800083292B /* Resources */ = { 213 | isa = PBXResourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | }; 219 | 9D95412A1FB2CA800083292B /* Resources */ = { 220 | isa = PBXResourcesBuildPhase; 221 | buildActionMask = 2147483647; 222 | files = ( 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | }; 226 | /* End PBXResourcesBuildPhase section */ 227 | 228 | /* Begin PBXSourcesBuildPhase section */ 229 | 9D95411E1FB2CA800083292B /* Sources */ = { 230 | isa = PBXSourcesBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 9D9541401FB2CB340083292B /* LayoutGuaranteedView.initializer.swift in Sources */, 234 | 9D95413E1FB2CAB20083292B /* LayoutGuaranteedView.swift in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | 9D9541281FB2CA800083292B /* Sources */ = { 239 | isa = PBXSourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 3752C95D1FB3781E000131A3 /* UIScrollViewTests.swift in Sources */, 243 | 3752C9611FB378C9000131A3 /* UIImageViewTest.swift in Sources */, 244 | 3752C9591FB376EE000131A3 /* UITableViewTests.swift in Sources */, 245 | 3752C9671FB379FA000131A3 /* UIProgressViewTests.swift in Sources */, 246 | 3752C9571FB37568000131A3 /* UICollectionViewTests.swift in Sources */, 247 | 3752C9631FB37979000131A3 /* UIPickerViewTests.swift in Sources */, 248 | 3752C9651FB379AC000131A3 /* UIWebViewTests.swift in Sources */, 249 | 3752C95F1FB37850000131A3 /* UIActivityIndicatorViewTests.swift in Sources */, 250 | 9D9541321FB2CA800083292B /* UIViewTests.swift in Sources */, 251 | 3752C95B1FB37765000131A3 /* UIStackViewTests.swift in Sources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | /* End PBXSourcesBuildPhase section */ 256 | 257 | /* Begin PBXTargetDependency section */ 258 | 9D95412F1FB2CA800083292B /* PBXTargetDependency */ = { 259 | isa = PBXTargetDependency; 260 | target = 9D9541221FB2CA800083292B /* LayoutGuaranteedView */; 261 | targetProxy = 9D95412E1FB2CA800083292B /* PBXContainerItemProxy */; 262 | }; 263 | /* End PBXTargetDependency section */ 264 | 265 | /* Begin XCBuildConfiguration section */ 266 | 9D9541351FB2CA800083292B /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | buildSettings = { 269 | ALWAYS_SEARCH_USER_PATHS = NO; 270 | CLANG_ANALYZER_NONNULL = YES; 271 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_MODULES = YES; 275 | CLANG_ENABLE_OBJC_ARC = YES; 276 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 277 | CLANG_WARN_BOOL_CONVERSION = YES; 278 | CLANG_WARN_COMMA = YES; 279 | CLANG_WARN_CONSTANT_CONVERSION = YES; 280 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 281 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 282 | CLANG_WARN_EMPTY_BODY = YES; 283 | CLANG_WARN_ENUM_CONVERSION = YES; 284 | CLANG_WARN_INFINITE_RECURSION = YES; 285 | CLANG_WARN_INT_CONVERSION = YES; 286 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 287 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 288 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 289 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 290 | CLANG_WARN_STRICT_PROTOTYPES = YES; 291 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 292 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 293 | CLANG_WARN_UNREACHABLE_CODE = YES; 294 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 295 | CODE_SIGN_IDENTITY = "iPhone Developer"; 296 | COPY_PHASE_STRIP = NO; 297 | CURRENT_PROJECT_VERSION = 1; 298 | DEBUG_INFORMATION_FORMAT = dwarf; 299 | ENABLE_STRICT_OBJC_MSGSEND = YES; 300 | ENABLE_TESTABILITY = YES; 301 | GCC_C_LANGUAGE_STANDARD = gnu11; 302 | GCC_DYNAMIC_NO_PIC = NO; 303 | GCC_NO_COMMON_BLOCKS = YES; 304 | GCC_OPTIMIZATION_LEVEL = 0; 305 | GCC_PREPROCESSOR_DEFINITIONS = ( 306 | "DEBUG=1", 307 | "$(inherited)", 308 | ); 309 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 310 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 311 | GCC_WARN_UNDECLARED_SELECTOR = YES; 312 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 313 | GCC_WARN_UNUSED_FUNCTION = YES; 314 | GCC_WARN_UNUSED_VARIABLE = YES; 315 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 316 | MTL_ENABLE_DEBUG_INFO = YES; 317 | ONLY_ACTIVE_ARCH = YES; 318 | SDKROOT = iphoneos; 319 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 320 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 321 | VERSIONING_SYSTEM = "apple-generic"; 322 | VERSION_INFO_PREFIX = ""; 323 | }; 324 | name = Debug; 325 | }; 326 | 9D9541361FB2CA800083292B /* Release */ = { 327 | isa = XCBuildConfiguration; 328 | buildSettings = { 329 | ALWAYS_SEARCH_USER_PATHS = NO; 330 | CLANG_ANALYZER_NONNULL = YES; 331 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 332 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 333 | CLANG_CXX_LIBRARY = "libc++"; 334 | CLANG_ENABLE_MODULES = YES; 335 | CLANG_ENABLE_OBJC_ARC = YES; 336 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 337 | CLANG_WARN_BOOL_CONVERSION = YES; 338 | CLANG_WARN_COMMA = YES; 339 | CLANG_WARN_CONSTANT_CONVERSION = YES; 340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 341 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 342 | CLANG_WARN_EMPTY_BODY = YES; 343 | CLANG_WARN_ENUM_CONVERSION = YES; 344 | CLANG_WARN_INFINITE_RECURSION = YES; 345 | CLANG_WARN_INT_CONVERSION = YES; 346 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = 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_SIGN_IDENTITY = "iPhone Developer"; 356 | COPY_PHASE_STRIP = NO; 357 | CURRENT_PROJECT_VERSION = 1; 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_WARN_64_TO_32_BIT_CONVERSION = YES; 364 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 365 | GCC_WARN_UNDECLARED_SELECTOR = YES; 366 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 367 | GCC_WARN_UNUSED_FUNCTION = YES; 368 | GCC_WARN_UNUSED_VARIABLE = YES; 369 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 370 | MTL_ENABLE_DEBUG_INFO = NO; 371 | SDKROOT = iphoneos; 372 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 373 | VALIDATE_PRODUCT = YES; 374 | VERSIONING_SYSTEM = "apple-generic"; 375 | VERSION_INFO_PREFIX = ""; 376 | }; 377 | name = Release; 378 | }; 379 | 9D9541381FB2CA800083292B /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | CLANG_ENABLE_MODULES = YES; 383 | CODE_SIGN_IDENTITY = ""; 384 | CODE_SIGN_STYLE = Manual; 385 | DEFINES_MODULE = YES; 386 | DEVELOPMENT_TEAM = ""; 387 | DYLIB_COMPATIBILITY_VERSION = 1; 388 | DYLIB_CURRENT_VERSION = 1; 389 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 390 | INFOPLIST_FILE = LayoutGuaranteedView/Info.plist; 391 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 392 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 393 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 394 | PRODUCT_BUNDLE_IDENTIFIER = "marty-suzuki.LayoutGuaranteedView"; 395 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 396 | PROVISIONING_PROFILE_SPECIFIER = ""; 397 | SKIP_INSTALL = YES; 398 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 399 | SWIFT_VERSION = 4.0; 400 | TARGETED_DEVICE_FAMILY = "1,2"; 401 | }; 402 | name = Debug; 403 | }; 404 | 9D9541391FB2CA800083292B /* Release */ = { 405 | isa = XCBuildConfiguration; 406 | buildSettings = { 407 | CLANG_ENABLE_MODULES = YES; 408 | CODE_SIGN_IDENTITY = ""; 409 | CODE_SIGN_STYLE = Manual; 410 | DEFINES_MODULE = YES; 411 | DEVELOPMENT_TEAM = ""; 412 | DYLIB_COMPATIBILITY_VERSION = 1; 413 | DYLIB_CURRENT_VERSION = 1; 414 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 415 | INFOPLIST_FILE = LayoutGuaranteedView/Info.plist; 416 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 418 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 419 | PRODUCT_BUNDLE_IDENTIFIER = "marty-suzuki.LayoutGuaranteedView"; 420 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 421 | PROVISIONING_PROFILE_SPECIFIER = ""; 422 | SKIP_INSTALL = YES; 423 | SWIFT_VERSION = 4.0; 424 | TARGETED_DEVICE_FAMILY = "1,2"; 425 | }; 426 | name = Release; 427 | }; 428 | 9D95413B1FB2CA800083292B /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 432 | CODE_SIGN_STYLE = Manual; 433 | DEVELOPMENT_TEAM = ""; 434 | INFOPLIST_FILE = LayoutGuaranteedViewTests/Info.plist; 435 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 436 | PRODUCT_BUNDLE_IDENTIFIER = "marty-suzuki.LayoutGuaranteedViewTests"; 437 | PRODUCT_NAME = "$(TARGET_NAME)"; 438 | PROVISIONING_PROFILE_SPECIFIER = ""; 439 | SWIFT_VERSION = 4.0; 440 | TARGETED_DEVICE_FAMILY = "1,2"; 441 | }; 442 | name = Debug; 443 | }; 444 | 9D95413C1FB2CA800083292B /* Release */ = { 445 | isa = XCBuildConfiguration; 446 | buildSettings = { 447 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 448 | CODE_SIGN_STYLE = Manual; 449 | DEVELOPMENT_TEAM = ""; 450 | INFOPLIST_FILE = LayoutGuaranteedViewTests/Info.plist; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 452 | PRODUCT_BUNDLE_IDENTIFIER = "marty-suzuki.LayoutGuaranteedViewTests"; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | PROVISIONING_PROFILE_SPECIFIER = ""; 455 | SWIFT_VERSION = 4.0; 456 | TARGETED_DEVICE_FAMILY = "1,2"; 457 | }; 458 | name = Release; 459 | }; 460 | /* End XCBuildConfiguration section */ 461 | 462 | /* Begin XCConfigurationList section */ 463 | 9D95411D1FB2CA800083292B /* Build configuration list for PBXProject "LayoutGuaranteedView" */ = { 464 | isa = XCConfigurationList; 465 | buildConfigurations = ( 466 | 9D9541351FB2CA800083292B /* Debug */, 467 | 9D9541361FB2CA800083292B /* Release */, 468 | ); 469 | defaultConfigurationIsVisible = 0; 470 | defaultConfigurationName = Release; 471 | }; 472 | 9D9541371FB2CA800083292B /* Build configuration list for PBXNativeTarget "LayoutGuaranteedView" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 9D9541381FB2CA800083292B /* Debug */, 476 | 9D9541391FB2CA800083292B /* Release */, 477 | ); 478 | defaultConfigurationIsVisible = 0; 479 | defaultConfigurationName = Release; 480 | }; 481 | 9D95413A1FB2CA800083292B /* Build configuration list for PBXNativeTarget "LayoutGuaranteedViewTests" */ = { 482 | isa = XCConfigurationList; 483 | buildConfigurations = ( 484 | 9D95413B1FB2CA800083292B /* Debug */, 485 | 9D95413C1FB2CA800083292B /* Release */, 486 | ); 487 | defaultConfigurationIsVisible = 0; 488 | defaultConfigurationName = Release; 489 | }; 490 | /* End XCConfigurationList section */ 491 | }; 492 | rootObject = 9D95411A1FB2CA800083292B /* Project object */; 493 | } 494 | -------------------------------------------------------------------------------- /LayoutGuaranteedView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LayoutGuaranteedView.xcodeproj/xcshareddata/xcschemes/LayoutGuaranteedView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 34 | 40 | 41 | 42 | 43 | 44 | 50 | 51 | 52 | 53 | 54 | 55 | 66 | 67 | 73 | 74 | 75 | 76 | 77 | 78 | 84 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /LayoutGuaranteedView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LayoutGuaranteedView/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 | -------------------------------------------------------------------------------- /LayoutGuaranteedView/LayoutGuaranteedView.h: -------------------------------------------------------------------------------- 1 | // 2 | // LayoutGuaranteedView.h 3 | // LayoutGuaranteedView 4 | // 5 | // Created by marty-suzuki on 2017/11/08. 6 | // Copyright © 2017 marty-suzuki. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for LayoutGuaranteedView. 12 | FOUNDATION_EXPORT double LayoutGuaranteedViewVersionNumber; 13 | 14 | //! Project version string for LayoutGuaranteedView. 15 | FOUNDATION_EXPORT const unsigned char LayoutGuaranteedViewVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /LayoutGuaranteedView/LayoutGuaranteedView.initializer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LayoutGuaranteedView.initializer.swift 3 | // LayoutGuaranteedView 4 | // 5 | // Created by marty-suzuki on 2017/11/08. 6 | // Copyright © 2017 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | // MARK: - Container View 12 | extension LayoutGuaranteedView_ where View: UITableView { 13 | public convenience init(frame: CGRect, style: UITableViewStyle) { 14 | let view = View(frame: frame, style: style) 15 | self.init(_view: view) 16 | } 17 | } 18 | 19 | extension LayoutGuaranteedView_ where View: UICollectionView { 20 | public convenience init(frame: CGRect, collectionViewLayout: UICollectionViewLayout) { 21 | let view = View(frame: frame, collectionViewLayout: collectionViewLayout) 22 | self.init(_view: view) 23 | } 24 | } 25 | 26 | extension LayoutGuaranteedView_ where View: UIStackView { 27 | public convenience init(arrangedSubviews views: [UIView]) { 28 | let view = View(arrangedSubviews: views) 29 | self.init(_view: view) 30 | } 31 | } 32 | 33 | // MARK: - Content Views 34 | extension LayoutGuaranteedView_ where View: UIActivityIndicatorView { 35 | public convenience init(activityIndicatorStyle style: UIActivityIndicatorViewStyle) { 36 | let view = View(activityIndicatorStyle: style) 37 | self.init(_view: view) 38 | } 39 | } 40 | 41 | extension LayoutGuaranteedView_ where View: UIImageView { 42 | public convenience init(image: UIImage?) { 43 | let view = View(image: image) 44 | self.init(_view: view) 45 | } 46 | 47 | public convenience init(image: UIImage?, highlightedImage: UIImage?) { 48 | let view = View(image: image, highlightedImage: highlightedImage) 49 | self.init(_view: view) 50 | } 51 | } 52 | 53 | extension LayoutGuaranteedView_ where View: UIProgressView { 54 | public convenience init(progressViewStyle style: UIProgressViewStyle) { 55 | let view = View(progressViewStyle: style) 56 | self.init(_view: view) 57 | } 58 | } 59 | 60 | // MARK: - Controls 61 | extension LayoutGuaranteedView_ where View: UIButton { 62 | public convenience init(type buttonType: UIButtonType) { 63 | let view = View(type: buttonType) 64 | self.init(_view: view) 65 | } 66 | } 67 | 68 | extension LayoutGuaranteedView_ where View: UISegmentedControl { 69 | public convenience init(items: [Any]?) { 70 | let view = View(items: items) 71 | self.init(_view: view) 72 | } 73 | } 74 | 75 | // MARK: - Text Views 76 | extension LayoutGuaranteedView_ where View: UITextView { 77 | public convenience init(frame: CGRect, textContainer: NSTextContainer?) { 78 | let view = View(frame: frame, textContainer: textContainer) 79 | self.init(_view: view) 80 | } 81 | } 82 | 83 | // MARK: - Bars 84 | extension LayoutGuaranteedView_ where View: UISearchBar { 85 | public convenience init() { 86 | let view = View() 87 | self.init(_view: view) 88 | } 89 | } 90 | 91 | // MARK: - Visual Adornments 92 | extension LayoutGuaranteedView_ where View: UIVisualEffectView { 93 | public convenience init(effect: UIVisualEffect?) { 94 | let view = View(effect: effect) 95 | self.init(_view: view) 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /LayoutGuaranteedView/LayoutGuaranteedView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LayoutGuaranteedView.swift 3 | // LayoutGuaranteedView 4 | // 5 | // Created by marty-suzuki on 2017/11/08. 6 | // Copyright © 2017 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public protocol LayoutStatus {} 12 | public enum LayoutApplied: LayoutStatus {} 13 | public enum LayoutNotApplied: LayoutStatus {} 14 | 15 | public typealias ViewHolder = LayoutGuaranteedView_ 16 | 17 | public final class LayoutGuaranteedView_ { 18 | private let _view: View 19 | 20 | init(_view: View) { 21 | self._view = _view 22 | } 23 | } 24 | 25 | extension LayoutGuaranteedView_ where Layout == LayoutNotApplied { 26 | public convenience init(frame: CGRect) { 27 | let view = View(frame: frame) 28 | self.init(_view: view) 29 | } 30 | 31 | public convenience init(view: View) { 32 | self.init(_view: view) 33 | } 34 | 35 | public func guaranteeLayout(addingTo superview: UIView, layoutHandler: (View) -> [NSLayoutConstraint] = { _ in [] }) -> LayoutGuaranteedView_ { 36 | superview.addSubview(_view) 37 | let constraints = layoutHandler(_view) 38 | if !constraints.isEmpty { 39 | _view.translatesAutoresizingMaskIntoConstraints = false 40 | superview.addConstraints(constraints) 41 | } 42 | return .init(_view: _view) 43 | } 44 | } 45 | 46 | extension LayoutGuaranteedView_ where Layout == LayoutApplied { 47 | public var view: View { 48 | return _view 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/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 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIActivityIndicatorViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIActivityIndicatorViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIActivityIndicatorViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UIActivityIndicatorView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | 31 | func testActivityIndicatorStyle() { 32 | let superview = UIView() 33 | let holder = ViewHolder(activityIndicatorStyle: .whiteLarge) 34 | let view = holder.guaranteeLayout(addingTo: superview).view 35 | XCTAssertEqual(view.activityIndicatorViewStyle, .whiteLarge) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UICollectionViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UICollectionViewTests: XCTestCase { 13 | func testView() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let base = UICollectionView(frame: frame, collectionViewLayout: UICollectionViewFlowLayout()) 17 | let holder = ViewHolder(view: base) 18 | let view = holder.guaranteeLayout(addingTo: superview).view 19 | XCTAssertEqual(view, base) 20 | XCTAssertEqual(view.frame, frame) 21 | } 22 | 23 | func testCollectionViewLayout() { 24 | let superview = UIView() 25 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 26 | let collectionViewLayout = UICollectionViewFlowLayout() 27 | let holder = ViewHolder(frame: frame, collectionViewLayout: collectionViewLayout) 28 | let view = holder.guaranteeLayout(addingTo: superview).view 29 | XCTAssertEqual(view.collectionViewLayout, collectionViewLayout) 30 | XCTAssertEqual(view.frame, frame) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIImageViewTest.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageViewTest.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIImageViewTest: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UIImageView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | 31 | func testImage() { 32 | let superview = UIView() 33 | let image = UIImage() 34 | let holder = ViewHolder(image: image) 35 | let view = holder.guaranteeLayout(addingTo: superview).view 36 | XCTAssertEqual(view.image, image) 37 | } 38 | 39 | func testImageAndHighlightedImage() { 40 | let superview = UIView() 41 | let image = UIImage() 42 | let highlightedImage = UIImage() 43 | let holder = ViewHolder(image: image, highlightedImage: highlightedImage) 44 | let view = holder.guaranteeLayout(addingTo: superview).view 45 | XCTAssertEqual(view.image, image) 46 | XCTAssertEqual(view.highlightedImage, highlightedImage) 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIPickerViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPickerViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIPickerViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UIPickerView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIProgressViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIProgressViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIProgressViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 2) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 2) 24 | let base = UIProgressView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | 31 | func testProgressViewStyle() { 32 | let superview = UIView() 33 | let holder = ViewHolder(progressViewStyle: .bar) 34 | let view = holder.guaranteeLayout(addingTo: superview).view 35 | XCTAssertEqual(view.progressViewStyle, .bar) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIScrollViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIScrollViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIScrollViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UIScrollView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIStackViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIStackViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIStackViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UIStackView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | 31 | func testArrangedSubviews() { 32 | let superview = UIView() 33 | let subview = UIView() 34 | let holder = ViewHolder(arrangedSubviews: [subview]) 35 | let view = holder.guaranteeLayout(addingTo: superview).view 36 | XCTAssertEqual(view.arrangedSubviews.first, subview) 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UITableViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UITableViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UITableView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | 31 | func testStyle() { 32 | let superview = UIView() 33 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 34 | let holder = ViewHolder(frame: frame, style: .grouped) 35 | let view = holder.guaranteeLayout(addingTo: superview).view 36 | XCTAssertEqual(view.frame, frame) 37 | XCTAssertEqual(view.style, .grouped) 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LayoutGuaranteedViewUIViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/08. 6 | // Copyright © 2017 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UIView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LayoutGuaranteedViewTests/UIWebViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIWebViewTests.swift 3 | // LayoutGuaranteedViewTests 4 | // 5 | // Created by marty-suzuki on 2017/11/09. 6 | // Copyright © 2017年 marty-suzuki. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LayoutGuaranteedView 11 | 12 | class UIWebViewTests: XCTestCase { 13 | func testFrame() { 14 | let superview = UIView() 15 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 16 | let holder = ViewHolder(frame: frame) 17 | let view = holder.guaranteeLayout(addingTo: superview).view 18 | XCTAssertEqual(view.frame, frame) 19 | } 20 | 21 | func testView() { 22 | let superview = UIView() 23 | let frame = CGRect(x: 20, y: 30, width: 100, height: 50) 24 | let base = UIWebView(frame: frame) 25 | let holder = ViewHolder(view: base) 26 | let view = holder.guaranteeLayout(addingTo: superview).view 27 | XCTAssertEqual(view, base) 28 | XCTAssertEqual(view.frame, frame) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LayoutGuaranteedView 2 | 3 | [![CI Status](http://img.shields.io/travis/marty-suzuki/LayoutGuaranteedView.svg?style=flat)](https://travis-ci.org/marty-suzuki/LayoutGuaranteedView) 4 | [![Version](https://img.shields.io/cocoapods/v/LayoutGuaranteedView.svg?style=flat)](http://cocoapods.org/pods/LayoutGuaranteedView) 5 | [![License](https://img.shields.io/cocoapods/l/LayoutGuaranteedView.svg?style=flat)](http://cocoapods.org/pods/LayoutGuaranteedView) 6 | [![Platform](https://img.shields.io/cocoapods/p/LayoutGuaranteedView.svg?style=flat)](http://cocoapods.org/pods/LayoutGuaranteedView) 7 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 8 | 9 | LayoutGuaranteedView is a Phantom Type view holder. It guaranteed that a view had laid out after execute `guaranteeLayout` function. 10 | 11 | ## Example 12 | 13 | ```swift 14 | class ViewController: UIViewController { 15 | let viewHolder = ViewHolder(frame: .zero, style: .plain) 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | let guaranteedViewHolder = viewHolder.guaranteeLayout(addingTo: view, 21 | layoutHandler: { tableView -> [NSLayoutConstraint] in 22 | return [ 23 | tableView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), 24 | tableView.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor), 25 | tableView.rightAnchor.constraint(equalTo: view.safeAreaLayoutGuide.rightAnchor), 26 | tableView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor) 27 | ] 28 | }) 29 | 30 | // guaranteedViewHolder.view returns `UITableView` instance 31 | guaranteedViewHolder.view.delegate = self 32 | guaranteedViewHolder.view.dataSource = self 33 | } 34 | } 35 | ``` 36 | 37 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 38 | 39 | ## Requirements 40 | 41 | - Xcode 9 or greater 42 | - iOS 9 or greater 43 | - Swift 4 44 | 45 | ## Installation 46 | 47 | ### CocoaPods 48 | 49 | LayoutGuaranteedView is available through [CocoaPods](http://cocoapods.org). To install 50 | it, simply add the following line to your Podfile: 51 | 52 | ```ruby 53 | pod 'LayoutGuaranteedView' 54 | ``` 55 | 56 | ### Carthage 57 | 58 | If you’re using [Carthage](https://github.com/Carthage/Carthage), simply add 59 | SABlurImageView to your `Cartfile`: 60 | 61 | ``` 62 | github "marty-suzuki/LayoutGuaranteedView" 63 | ``` 64 | 65 | Make sure to add `LayoutGuaranteedView.framework` to "Linked Frameworks and Libraries" and "copy-frameworks" Build Phases. 66 | 67 | ## Implementation 68 | 69 | ViewHolder is a typealias of `LayoutGuaranteedView_`. 70 | After executing `guaranteeLayout` function, `LayoutGuaranteedView_` returns a `LayoutGuaranteedView_` instance. 71 | 72 | ## Author 73 | 74 | marty-suzuki, s1180183@gmail.com 75 | 76 | ## License 77 | 78 | LayoutGuaranteedView is available under the MIT license. See the LICENSE file for more info. 79 | --------------------------------------------------------------------------------