├── NewFeaturesSwiftUI.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcuserdata │ └── roddymunro.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist └── NewFeaturesSwiftUI ├── Assets.xcassets ├── AccentColor.colorset │ └── Contents.json ├── AppIcon.appiconset │ └── Contents.json └── Contents.json ├── ContentView.swift ├── Info.plist ├── NewFeature.swift ├── NewFeatureRow.swift ├── NewFeaturesSwiftUIApp.swift ├── NewFeaturesView.swift ├── Preview Content └── Preview Assets.xcassets │ └── Contents.json ├── PrimaryButtonStyle.swift ├── Text+ViewModifier.swift └── View+Ext.swift /NewFeaturesSwiftUI.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 79DD419D25D8A70A0073944F /* NewFeaturesSwiftUIApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD419C25D8A70A0073944F /* NewFeaturesSwiftUIApp.swift */; }; 11 | 79DD419F25D8A70A0073944F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD419E25D8A70A0073944F /* ContentView.swift */; }; 12 | 79DD41A125D8A70C0073944F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79DD41A025D8A70C0073944F /* Assets.xcassets */; }; 13 | 79DD41A425D8A70C0073944F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79DD41A325D8A70C0073944F /* Preview Assets.xcassets */; }; 14 | 79DD41AD25D8A7170073944F /* NewFeaturesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD41AC25D8A7170073944F /* NewFeaturesView.swift */; }; 15 | 79DD41B025D8A7250073944F /* NewFeature.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD41AF25D8A7240073944F /* NewFeature.swift */; }; 16 | 79DD41B325D8A73B0073944F /* Text+ViewModifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD41B225D8A73B0073944F /* Text+ViewModifier.swift */; }; 17 | 79DD41B625D8A7630073944F /* NewFeatureRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD41B525D8A7630073944F /* NewFeatureRow.swift */; }; 18 | 79DD41B925D8A7A60073944F /* PrimaryButtonStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD41B825D8A7A60073944F /* PrimaryButtonStyle.swift */; }; 19 | 79DD41BC25D8A7F70073944F /* View+Ext.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD41BB25D8A7F70073944F /* View+Ext.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | 79DD419925D8A70A0073944F /* NewFeaturesSwiftUI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NewFeaturesSwiftUI.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | 79DD419C25D8A70A0073944F /* NewFeaturesSwiftUIApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewFeaturesSwiftUIApp.swift; sourceTree = ""; }; 25 | 79DD419E25D8A70A0073944F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 26 | 79DD41A025D8A70C0073944F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 27 | 79DD41A325D8A70C0073944F /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 28 | 79DD41A525D8A70C0073944F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | 79DD41AC25D8A7170073944F /* NewFeaturesView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NewFeaturesView.swift; sourceTree = ""; }; 30 | 79DD41AF25D8A7240073944F /* NewFeature.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NewFeature.swift; sourceTree = ""; }; 31 | 79DD41B225D8A73B0073944F /* Text+ViewModifier.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Text+ViewModifier.swift"; sourceTree = ""; }; 32 | 79DD41B525D8A7630073944F /* NewFeatureRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewFeatureRow.swift; sourceTree = ""; }; 33 | 79DD41B825D8A7A60073944F /* PrimaryButtonStyle.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrimaryButtonStyle.swift; sourceTree = ""; }; 34 | 79DD41BB25D8A7F70073944F /* View+Ext.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "View+Ext.swift"; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 79DD419625D8A70A0073944F /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 79DD419025D8A70A0073944F = { 49 | isa = PBXGroup; 50 | children = ( 51 | 79DD419B25D8A70A0073944F /* NewFeaturesSwiftUI */, 52 | 79DD419A25D8A70A0073944F /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | 79DD419A25D8A70A0073944F /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 79DD419925D8A70A0073944F /* NewFeaturesSwiftUI.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | 79DD419B25D8A70A0073944F /* NewFeaturesSwiftUI */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 79DD419C25D8A70A0073944F /* NewFeaturesSwiftUIApp.swift */, 68 | 79DD419E25D8A70A0073944F /* ContentView.swift */, 69 | 79DD41AC25D8A7170073944F /* NewFeaturesView.swift */, 70 | 79DD41B525D8A7630073944F /* NewFeatureRow.swift */, 71 | 79DD41AF25D8A7240073944F /* NewFeature.swift */, 72 | 79DD41B825D8A7A60073944F /* PrimaryButtonStyle.swift */, 73 | 79DD41B225D8A73B0073944F /* Text+ViewModifier.swift */, 74 | 79DD41BB25D8A7F70073944F /* View+Ext.swift */, 75 | 79DD41A025D8A70C0073944F /* Assets.xcassets */, 76 | 79DD41A525D8A70C0073944F /* Info.plist */, 77 | 79DD41A225D8A70C0073944F /* Preview Content */, 78 | ); 79 | path = NewFeaturesSwiftUI; 80 | sourceTree = ""; 81 | }; 82 | 79DD41A225D8A70C0073944F /* Preview Content */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 79DD41A325D8A70C0073944F /* Preview Assets.xcassets */, 86 | ); 87 | path = "Preview Content"; 88 | sourceTree = ""; 89 | }; 90 | /* End PBXGroup section */ 91 | 92 | /* Begin PBXNativeTarget section */ 93 | 79DD419825D8A70A0073944F /* NewFeaturesSwiftUI */ = { 94 | isa = PBXNativeTarget; 95 | buildConfigurationList = 79DD41A825D8A70C0073944F /* Build configuration list for PBXNativeTarget "NewFeaturesSwiftUI" */; 96 | buildPhases = ( 97 | 79DD419525D8A70A0073944F /* Sources */, 98 | 79DD419625D8A70A0073944F /* Frameworks */, 99 | 79DD419725D8A70A0073944F /* Resources */, 100 | ); 101 | buildRules = ( 102 | ); 103 | dependencies = ( 104 | ); 105 | name = NewFeaturesSwiftUI; 106 | productName = NewFeaturesSwiftUI; 107 | productReference = 79DD419925D8A70A0073944F /* NewFeaturesSwiftUI.app */; 108 | productType = "com.apple.product-type.application"; 109 | }; 110 | /* End PBXNativeTarget section */ 111 | 112 | /* Begin PBXProject section */ 113 | 79DD419125D8A70A0073944F /* Project object */ = { 114 | isa = PBXProject; 115 | attributes = { 116 | LastSwiftUpdateCheck = 1240; 117 | LastUpgradeCheck = 1240; 118 | TargetAttributes = { 119 | 79DD419825D8A70A0073944F = { 120 | CreatedOnToolsVersion = 12.4; 121 | }; 122 | }; 123 | }; 124 | buildConfigurationList = 79DD419425D8A70A0073944F /* Build configuration list for PBXProject "NewFeaturesSwiftUI" */; 125 | compatibilityVersion = "Xcode 9.3"; 126 | developmentRegion = en; 127 | hasScannedForEncodings = 0; 128 | knownRegions = ( 129 | en, 130 | Base, 131 | ); 132 | mainGroup = 79DD419025D8A70A0073944F; 133 | productRefGroup = 79DD419A25D8A70A0073944F /* Products */; 134 | projectDirPath = ""; 135 | projectRoot = ""; 136 | targets = ( 137 | 79DD419825D8A70A0073944F /* NewFeaturesSwiftUI */, 138 | ); 139 | }; 140 | /* End PBXProject section */ 141 | 142 | /* Begin PBXResourcesBuildPhase section */ 143 | 79DD419725D8A70A0073944F /* Resources */ = { 144 | isa = PBXResourcesBuildPhase; 145 | buildActionMask = 2147483647; 146 | files = ( 147 | 79DD41A425D8A70C0073944F /* Preview Assets.xcassets in Resources */, 148 | 79DD41A125D8A70C0073944F /* Assets.xcassets in Resources */, 149 | ); 150 | runOnlyForDeploymentPostprocessing = 0; 151 | }; 152 | /* End PBXResourcesBuildPhase section */ 153 | 154 | /* Begin PBXSourcesBuildPhase section */ 155 | 79DD419525D8A70A0073944F /* Sources */ = { 156 | isa = PBXSourcesBuildPhase; 157 | buildActionMask = 2147483647; 158 | files = ( 159 | 79DD41BC25D8A7F70073944F /* View+Ext.swift in Sources */, 160 | 79DD41B925D8A7A60073944F /* PrimaryButtonStyle.swift in Sources */, 161 | 79DD41AD25D8A7170073944F /* NewFeaturesView.swift in Sources */, 162 | 79DD41B325D8A73B0073944F /* Text+ViewModifier.swift in Sources */, 163 | 79DD41B025D8A7250073944F /* NewFeature.swift in Sources */, 164 | 79DD419F25D8A70A0073944F /* ContentView.swift in Sources */, 165 | 79DD41B625D8A7630073944F /* NewFeatureRow.swift in Sources */, 166 | 79DD419D25D8A70A0073944F /* NewFeaturesSwiftUIApp.swift in Sources */, 167 | ); 168 | runOnlyForDeploymentPostprocessing = 0; 169 | }; 170 | /* End PBXSourcesBuildPhase section */ 171 | 172 | /* Begin XCBuildConfiguration section */ 173 | 79DD41A625D8A70C0073944F /* Debug */ = { 174 | isa = XCBuildConfiguration; 175 | buildSettings = { 176 | ALWAYS_SEARCH_USER_PATHS = NO; 177 | CLANG_ANALYZER_NONNULL = YES; 178 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 179 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 180 | CLANG_CXX_LIBRARY = "libc++"; 181 | CLANG_ENABLE_MODULES = YES; 182 | CLANG_ENABLE_OBJC_ARC = YES; 183 | CLANG_ENABLE_OBJC_WEAK = YES; 184 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 185 | CLANG_WARN_BOOL_CONVERSION = YES; 186 | CLANG_WARN_COMMA = YES; 187 | CLANG_WARN_CONSTANT_CONVERSION = YES; 188 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 189 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 190 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 191 | CLANG_WARN_EMPTY_BODY = YES; 192 | CLANG_WARN_ENUM_CONVERSION = YES; 193 | CLANG_WARN_INFINITE_RECURSION = YES; 194 | CLANG_WARN_INT_CONVERSION = YES; 195 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 196 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 197 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 198 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 199 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 200 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 201 | CLANG_WARN_STRICT_PROTOTYPES = YES; 202 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 203 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 204 | CLANG_WARN_UNREACHABLE_CODE = YES; 205 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 206 | COPY_PHASE_STRIP = NO; 207 | DEBUG_INFORMATION_FORMAT = dwarf; 208 | ENABLE_STRICT_OBJC_MSGSEND = YES; 209 | ENABLE_TESTABILITY = YES; 210 | GCC_C_LANGUAGE_STANDARD = gnu11; 211 | GCC_DYNAMIC_NO_PIC = NO; 212 | GCC_NO_COMMON_BLOCKS = YES; 213 | GCC_OPTIMIZATION_LEVEL = 0; 214 | GCC_PREPROCESSOR_DEFINITIONS = ( 215 | "DEBUG=1", 216 | "$(inherited)", 217 | ); 218 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 219 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 220 | GCC_WARN_UNDECLARED_SELECTOR = YES; 221 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 222 | GCC_WARN_UNUSED_FUNCTION = YES; 223 | GCC_WARN_UNUSED_VARIABLE = YES; 224 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 225 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 226 | MTL_FAST_MATH = YES; 227 | ONLY_ACTIVE_ARCH = YES; 228 | SDKROOT = iphoneos; 229 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 230 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 231 | }; 232 | name = Debug; 233 | }; 234 | 79DD41A725D8A70C0073944F /* Release */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 240 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 241 | CLANG_CXX_LIBRARY = "libc++"; 242 | CLANG_ENABLE_MODULES = YES; 243 | CLANG_ENABLE_OBJC_ARC = YES; 244 | CLANG_ENABLE_OBJC_WEAK = YES; 245 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 246 | CLANG_WARN_BOOL_CONVERSION = YES; 247 | CLANG_WARN_COMMA = YES; 248 | CLANG_WARN_CONSTANT_CONVERSION = YES; 249 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 250 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 251 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 252 | CLANG_WARN_EMPTY_BODY = YES; 253 | CLANG_WARN_ENUM_CONVERSION = YES; 254 | CLANG_WARN_INFINITE_RECURSION = YES; 255 | CLANG_WARN_INT_CONVERSION = YES; 256 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 257 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 258 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 259 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 260 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 261 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 262 | CLANG_WARN_STRICT_PROTOTYPES = YES; 263 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 264 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 265 | CLANG_WARN_UNREACHABLE_CODE = YES; 266 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 267 | COPY_PHASE_STRIP = NO; 268 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 269 | ENABLE_NS_ASSERTIONS = NO; 270 | ENABLE_STRICT_OBJC_MSGSEND = YES; 271 | GCC_C_LANGUAGE_STANDARD = gnu11; 272 | GCC_NO_COMMON_BLOCKS = YES; 273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 275 | GCC_WARN_UNDECLARED_SELECTOR = YES; 276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 277 | GCC_WARN_UNUSED_FUNCTION = YES; 278 | GCC_WARN_UNUSED_VARIABLE = YES; 279 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 280 | MTL_ENABLE_DEBUG_INFO = NO; 281 | MTL_FAST_MATH = YES; 282 | SDKROOT = iphoneos; 283 | SWIFT_COMPILATION_MODE = wholemodule; 284 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 285 | VALIDATE_PRODUCT = YES; 286 | }; 287 | name = Release; 288 | }; 289 | 79DD41A925D8A70C0073944F /* Debug */ = { 290 | isa = XCBuildConfiguration; 291 | buildSettings = { 292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 293 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 294 | CODE_SIGN_STYLE = Automatic; 295 | DEVELOPMENT_ASSET_PATHS = "\"NewFeaturesSwiftUI/Preview Content\""; 296 | DEVELOPMENT_TEAM = K59VZ37S54; 297 | ENABLE_PREVIEWS = YES; 298 | INFOPLIST_FILE = NewFeaturesSwiftUI/Info.plist; 299 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 300 | LD_RUNPATH_SEARCH_PATHS = ( 301 | "$(inherited)", 302 | "@executable_path/Frameworks", 303 | ); 304 | PRODUCT_BUNDLE_IDENTIFIER = com.roddy.io.NewFeaturesSwiftUI; 305 | PRODUCT_NAME = "$(TARGET_NAME)"; 306 | SWIFT_VERSION = 5.0; 307 | TARGETED_DEVICE_FAMILY = "1,2"; 308 | }; 309 | name = Debug; 310 | }; 311 | 79DD41AA25D8A70C0073944F /* Release */ = { 312 | isa = XCBuildConfiguration; 313 | buildSettings = { 314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 315 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 316 | CODE_SIGN_STYLE = Automatic; 317 | DEVELOPMENT_ASSET_PATHS = "\"NewFeaturesSwiftUI/Preview Content\""; 318 | DEVELOPMENT_TEAM = K59VZ37S54; 319 | ENABLE_PREVIEWS = YES; 320 | INFOPLIST_FILE = NewFeaturesSwiftUI/Info.plist; 321 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 322 | LD_RUNPATH_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "@executable_path/Frameworks", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = com.roddy.io.NewFeaturesSwiftUI; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | SWIFT_VERSION = 5.0; 329 | TARGETED_DEVICE_FAMILY = "1,2"; 330 | }; 331 | name = Release; 332 | }; 333 | /* End XCBuildConfiguration section */ 334 | 335 | /* Begin XCConfigurationList section */ 336 | 79DD419425D8A70A0073944F /* Build configuration list for PBXProject "NewFeaturesSwiftUI" */ = { 337 | isa = XCConfigurationList; 338 | buildConfigurations = ( 339 | 79DD41A625D8A70C0073944F /* Debug */, 340 | 79DD41A725D8A70C0073944F /* Release */, 341 | ); 342 | defaultConfigurationIsVisible = 0; 343 | defaultConfigurationName = Release; 344 | }; 345 | 79DD41A825D8A70C0073944F /* Build configuration list for PBXNativeTarget "NewFeaturesSwiftUI" */ = { 346 | isa = XCConfigurationList; 347 | buildConfigurations = ( 348 | 79DD41A925D8A70C0073944F /* Debug */, 349 | 79DD41AA25D8A70C0073944F /* Release */, 350 | ); 351 | defaultConfigurationIsVisible = 0; 352 | defaultConfigurationName = Release; 353 | }; 354 | /* End XCConfigurationList section */ 355 | }; 356 | rootObject = 79DD419125D8A70A0073944F /* Project object */; 357 | } 358 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI.xcodeproj/xcuserdata/roddymunro.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | NewFeaturesSwiftUI.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "platform" : "ios", 6 | "reference" : "systemPinkColor" 7 | }, 8 | "idiom" : "universal" 9 | } 10 | ], 11 | "info" : { 12 | "author" : "xcode", 13 | "version" : 1 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct ContentView: View { 11 | 12 | @State private var showNewFeaturesSheet: Bool = false 13 | 14 | var body: some View { 15 | Button("Show New Features", action: { showNewFeaturesSheet = true }) 16 | .padding() 17 | .sheet(isPresented: $showNewFeaturesSheet, content: { 18 | NewFeaturesView() 19 | }) 20 | } 21 | } 22 | 23 | struct ContentView_Previews: PreviewProvider { 24 | static var previews: some View { 25 | ContentView() 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/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 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | 28 | UIApplicationSupportsIndirectInputEvents 29 | 30 | UILaunchScreen 31 | 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/NewFeature.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NewFeature.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import Foundation 9 | 10 | struct NewFeature: Identifiable { 11 | let id = UUID().uuidString 12 | let iconName: String 13 | let title: String 14 | let description: String 15 | } 16 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/NewFeatureRow.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NewFeatureRow.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct NewFeatureRow: View { 11 | let feature: NewFeature 12 | 13 | var body: some View { 14 | HStack(spacing: 8) { 15 | Image(systemName: feature.iconName) 16 | .resizable() 17 | .aspectRatio(contentMode: .fit) 18 | .frame(width: 36, height: 36) 19 | .foregroundColor(.accentColor) 20 | .padding(8) 21 | VStack(alignment: .leading, spacing: 4) { 22 | Text(feature.title).headerStyle() 23 | Text(feature.description).foregroundColor(.secondary) 24 | } 25 | Spacer() 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/NewFeaturesSwiftUIApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NewFeaturesSwiftUIApp.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct NewFeaturesSwiftUIApp: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | ContentView() 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/NewFeaturesView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NewFeaturesAlertView.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct NewFeaturesView: View { 11 | 12 | @Environment(\.presentationMode) var presentationMode 13 | 14 | let newFeatures: [NewFeature] = [ 15 | .init(iconName: "magnifyingglass", title: "Search", description: "Browse the web and look up photos taken from all over the world!"), 16 | .init(iconName: "globe", title: "Map", description: "See all locations on an easy-to-use, interactive map."), 17 | .init(iconName: "square.grid.3x3", title: "View", description: "Save all your favourite photos, and see them in a familiar grid style."), 18 | .init(iconName: "lasso.sparkles", title: "New User Interface", description: "The user interface has a big makeover, and is so much easier to use now.") 19 | ] 20 | 21 | var body: some View { 22 | VStack { 23 | ScrollView { 24 | VStack(alignment: .center, spacing: isIpad ? 64 : 32) { 25 | Text("What's New in My App").titleStyle() 26 | .multilineTextAlignment(.center) 27 | .padding(.top, isIpad ? 80 : 32) 28 | .padding(.horizontal, 16) 29 | 30 | VStack(alignment: .leading, spacing: 32) { 31 | ForEach(newFeatures, content: NewFeatureRow.init) 32 | } 33 | } 34 | .padding() 35 | } 36 | 37 | Button(action: { presentationMode.wrappedValue.dismiss() }, label: { Text("Continue") }).buttonStyle(PrimaryButtonStyle()) 38 | .padding(.bottom, isIpad ? 64 : 32) 39 | } 40 | .padding(.horizontal, isIpad ? 128 : 24) 41 | .background(Color(.systemBackground).edgesIgnoringSafeArea(.all)) 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/PrimaryButtonStyle.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PrimaryButtonStyle.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import SwiftUI 9 | 10 | public struct PrimaryButtonStyle: ButtonStyle { 11 | 12 | public init() {} 13 | 14 | public func makeBody(configuration: Configuration) -> some View { 15 | configuration.label 16 | .font(Font.body.weight(.semibold)) 17 | .frame(maxWidth: .infinity, alignment: .center) 18 | .textCase(.uppercase) 19 | .padding() 20 | .background(Color.accentColor.opacity(configuration.isPressed ? 0.7 : 1)) 21 | .foregroundColor(.white) 22 | .frame(height: 48) 23 | .clipShape(RoundedRectangle(cornerRadius: 16)) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/Text+ViewModifier.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Text+ViewModifier.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import SwiftUI 9 | 10 | extension Text { 11 | func titleStyle() -> some View { 12 | self 13 | .font(.title) 14 | .fontWeight(.bold) 15 | } 16 | 17 | func headerStyle() -> some View { 18 | self 19 | .font(.headline) 20 | .fontWeight(.semibold) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /NewFeaturesSwiftUI/View+Ext.swift: -------------------------------------------------------------------------------- 1 | // 2 | // View+Ext.swift 3 | // NewFeaturesSwiftUI 4 | // 5 | // Created by Roddy Munro on 13/02/2021. 6 | // 7 | 8 | import SwiftUI 9 | 10 | extension View { 11 | 12 | public var isIpad: Bool { 13 | return UIDevice.current.userInterfaceIdiom == .pad 14 | } 15 | } 16 | --------------------------------------------------------------------------------