├── FullScreenCoverTest ├── Assets.xcassets │ ├── Contents.json │ ├── AccentColor.colorset │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── Preview Content │ └── Preview Assets.xcassets │ │ └── Contents.json ├── FullScreenCoverTestApp.swift ├── ContentView.swift ├── NewView.swift └── EasyFullScreenCover.swift ├── FullScreenCoverTest.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcuserdata │ ├── fantom.xcuserdatad │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ └── yevheniikorsun.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist └── project.pbxproj ├── README.md └── LICENSE /FullScreenCoverTest/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /FullScreenCoverTest/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /FullScreenCoverTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /FullScreenCoverTest/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /FullScreenCoverTest.xcodeproj/xcuserdata/fantom.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FullScreenCover 2 | In SwiftUI we often use such modifier as FullScreenCover. It is easy to use but it have very limited functionality. 3 | This is a custom LazyFullScreenCover modifier, which will support different animations 4 | and transparent background from the box. And the best thing is that it’s only 50 lines of code. 5 | 6 | -------------------------------------------------------------------------------- /FullScreenCoverTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /FullScreenCoverTest/FullScreenCoverTestApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FullScreenCoverTestApp.swift 3 | // FullScreenCoverTest 4 | // 5 | // Created by Korsun Yevhenii on 09.07.2022. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct FullScreenCoverTestApp: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | ContentView() 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /FullScreenCoverTest.xcodeproj/xcuserdata/fantom.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | FullScreenCoverTest.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /FullScreenCoverTest.xcodeproj/xcuserdata/yevheniikorsun.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | FullScreenCoverTest.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /FullScreenCoverTest/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // FullScreenCoverTest 4 | // 5 | // Created by Korsun Yevhenii on 09.07.2022. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct ContentView: View { 11 | @State private var showView = false 12 | 13 | var body: some View { 14 | ZStack { 15 | Color.red.ignoresSafeArea() 16 | Button { 17 | withAnimation { 18 | showView.toggle() 19 | } 20 | 21 | } label: { 22 | Text("Show view") 23 | } 24 | .easyFullScreenCover(isPresented: $showView) { 25 | NewView() 26 | } 27 | } 28 | } 29 | } 30 | 31 | struct ContentView_Previews: PreviewProvider { 32 | static var previews: some View { 33 | ContentView() 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /FullScreenCoverTest/NewView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NewView.swift 3 | // FullScreenCoverTest 4 | // 5 | // Created by Korsun Yevhenii on 09.07.2022. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct NewView: View { 11 | @Environment(\.easyDismiss) var easyDismiss: EasyDismiss 12 | 13 | var body: some View { 14 | ZStack { 15 | // Color.green.ignoresSafeArea() 16 | VStack { 17 | HStack { 18 | Spacer() 19 | 20 | Button { 21 | withAnimation { 22 | easyDismiss() 23 | } 24 | } label: { 25 | Text("Close view") 26 | } 27 | 28 | 29 | Spacer() 30 | } 31 | .padding(.vertical, 50) 32 | .background(Color.green) 33 | Spacer() 34 | } 35 | } 36 | } 37 | } 38 | 39 | struct NewView_Previews: PreviewProvider { 40 | static var previews: some View { 41 | NewView() 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Jenya Korsun 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /FullScreenCoverTest/EasyFullScreenCover.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EasyFullScreenCover.swift 3 | // FullScreenCoverTest 4 | // 5 | // Created by Korsun Yevhenii on 11.07.2022. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct EasyFullScreenCover: View { 11 | @Binding var isPresented: Bool 12 | @ViewBuilder var content: Content 13 | 14 | var body: some View { 15 | ZStack { 16 | content 17 | .environment(\.easyDismiss, EasyDismiss { 18 | isPresented = false 19 | }) 20 | } 21 | } 22 | } 23 | 24 | extension View { 25 | func easyFullScreenCover(isPresented: Binding, transition: AnyTransition = .opacity, content: @escaping () -> Content) -> some View where Content : View { 26 | ZStack { 27 | self 28 | 29 | ZStack { // for correct work of transition animation 30 | if isPresented.wrappedValue { 31 | EasyFullScreenCover(isPresented: isPresented, content: content) 32 | .transition(transition) 33 | } 34 | } 35 | } 36 | } 37 | } 38 | 39 | struct EasyDismiss { 40 | private var action: () -> Void 41 | func callAsFunction() { 42 | action() 43 | } 44 | 45 | init(action: @escaping () -> Void = { }) { 46 | self.action = action 47 | } 48 | } 49 | 50 | struct EasyDismissKey: EnvironmentKey { 51 | static var defaultValue: EasyDismiss = EasyDismiss() 52 | } 53 | 54 | extension EnvironmentValues { 55 | var easyDismiss: EasyDismiss { 56 | get { self[EasyDismissKey.self] } 57 | set { self[EasyDismissKey.self] = newValue } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /FullScreenCoverTest/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 | -------------------------------------------------------------------------------- /FullScreenCoverTest.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 55; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 403A2E76287A0C0900CF680F /* FullScreenCoverTestApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403A2E75287A0C0900CF680F /* FullScreenCoverTestApp.swift */; }; 11 | 403A2E78287A0C0900CF680F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403A2E77287A0C0900CF680F /* ContentView.swift */; }; 12 | 403A2E7A287A0C0900CF680F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 403A2E79287A0C0900CF680F /* Assets.xcassets */; }; 13 | 403A2E7D287A0C0900CF680F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 403A2E7C287A0C0900CF680F /* Preview Assets.xcassets */; }; 14 | 403A2E86287A0C8400CF680F /* NewView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403A2E85287A0C8400CF680F /* NewView.swift */; }; 15 | 4079B80B287C2D4F006476BF /* EasyFullScreenCover.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4079B80A287C2D4F006476BF /* EasyFullScreenCover.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 403A2E72287A0C0900CF680F /* FullScreenCoverTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FullScreenCoverTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 403A2E75287A0C0900CF680F /* FullScreenCoverTestApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FullScreenCoverTestApp.swift; sourceTree = ""; }; 21 | 403A2E77287A0C0900CF680F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 22 | 403A2E79287A0C0900CF680F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 23 | 403A2E7C287A0C0900CF680F /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 24 | 403A2E85287A0C8400CF680F /* NewView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewView.swift; sourceTree = ""; }; 25 | 4079B80A287C2D4F006476BF /* EasyFullScreenCover.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EasyFullScreenCover.swift; sourceTree = ""; }; 26 | /* End PBXFileReference section */ 27 | 28 | /* Begin PBXFrameworksBuildPhase section */ 29 | 403A2E6F287A0C0900CF680F /* Frameworks */ = { 30 | isa = PBXFrameworksBuildPhase; 31 | buildActionMask = 2147483647; 32 | files = ( 33 | ); 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXFrameworksBuildPhase section */ 37 | 38 | /* Begin PBXGroup section */ 39 | 403A2E69287A0C0800CF680F = { 40 | isa = PBXGroup; 41 | children = ( 42 | 403A2E74287A0C0900CF680F /* FullScreenCoverTest */, 43 | 403A2E73287A0C0900CF680F /* Products */, 44 | ); 45 | sourceTree = ""; 46 | }; 47 | 403A2E73287A0C0900CF680F /* Products */ = { 48 | isa = PBXGroup; 49 | children = ( 50 | 403A2E72287A0C0900CF680F /* FullScreenCoverTest.app */, 51 | ); 52 | name = Products; 53 | sourceTree = ""; 54 | }; 55 | 403A2E74287A0C0900CF680F /* FullScreenCoverTest */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | 403A2E75287A0C0900CF680F /* FullScreenCoverTestApp.swift */, 59 | 403A2E77287A0C0900CF680F /* ContentView.swift */, 60 | 403A2E85287A0C8400CF680F /* NewView.swift */, 61 | 4079B80A287C2D4F006476BF /* EasyFullScreenCover.swift */, 62 | 403A2E79287A0C0900CF680F /* Assets.xcassets */, 63 | 403A2E7B287A0C0900CF680F /* Preview Content */, 64 | ); 65 | path = FullScreenCoverTest; 66 | sourceTree = ""; 67 | }; 68 | 403A2E7B287A0C0900CF680F /* Preview Content */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 403A2E7C287A0C0900CF680F /* Preview Assets.xcassets */, 72 | ); 73 | path = "Preview Content"; 74 | sourceTree = ""; 75 | }; 76 | /* End PBXGroup section */ 77 | 78 | /* Begin PBXNativeTarget section */ 79 | 403A2E71287A0C0900CF680F /* FullScreenCoverTest */ = { 80 | isa = PBXNativeTarget; 81 | buildConfigurationList = 403A2E80287A0C0900CF680F /* Build configuration list for PBXNativeTarget "FullScreenCoverTest" */; 82 | buildPhases = ( 83 | 403A2E6E287A0C0900CF680F /* Sources */, 84 | 403A2E6F287A0C0900CF680F /* Frameworks */, 85 | 403A2E70287A0C0900CF680F /* Resources */, 86 | ); 87 | buildRules = ( 88 | ); 89 | dependencies = ( 90 | ); 91 | name = FullScreenCoverTest; 92 | productName = FullScreenCoverTest; 93 | productReference = 403A2E72287A0C0900CF680F /* FullScreenCoverTest.app */; 94 | productType = "com.apple.product-type.application"; 95 | }; 96 | /* End PBXNativeTarget section */ 97 | 98 | /* Begin PBXProject section */ 99 | 403A2E6A287A0C0800CF680F /* Project object */ = { 100 | isa = PBXProject; 101 | attributes = { 102 | BuildIndependentTargetsInParallel = 1; 103 | LastSwiftUpdateCheck = 1330; 104 | LastUpgradeCheck = 1330; 105 | TargetAttributes = { 106 | 403A2E71287A0C0900CF680F = { 107 | CreatedOnToolsVersion = 13.3.1; 108 | }; 109 | }; 110 | }; 111 | buildConfigurationList = 403A2E6D287A0C0800CF680F /* Build configuration list for PBXProject "FullScreenCoverTest" */; 112 | compatibilityVersion = "Xcode 13.0"; 113 | developmentRegion = en; 114 | hasScannedForEncodings = 0; 115 | knownRegions = ( 116 | en, 117 | Base, 118 | ); 119 | mainGroup = 403A2E69287A0C0800CF680F; 120 | productRefGroup = 403A2E73287A0C0900CF680F /* Products */; 121 | projectDirPath = ""; 122 | projectRoot = ""; 123 | targets = ( 124 | 403A2E71287A0C0900CF680F /* FullScreenCoverTest */, 125 | ); 126 | }; 127 | /* End PBXProject section */ 128 | 129 | /* Begin PBXResourcesBuildPhase section */ 130 | 403A2E70287A0C0900CF680F /* Resources */ = { 131 | isa = PBXResourcesBuildPhase; 132 | buildActionMask = 2147483647; 133 | files = ( 134 | 403A2E7D287A0C0900CF680F /* Preview Assets.xcassets in Resources */, 135 | 403A2E7A287A0C0900CF680F /* Assets.xcassets in Resources */, 136 | ); 137 | runOnlyForDeploymentPostprocessing = 0; 138 | }; 139 | /* End PBXResourcesBuildPhase section */ 140 | 141 | /* Begin PBXSourcesBuildPhase section */ 142 | 403A2E6E287A0C0900CF680F /* Sources */ = { 143 | isa = PBXSourcesBuildPhase; 144 | buildActionMask = 2147483647; 145 | files = ( 146 | 4079B80B287C2D4F006476BF /* EasyFullScreenCover.swift in Sources */, 147 | 403A2E86287A0C8400CF680F /* NewView.swift in Sources */, 148 | 403A2E78287A0C0900CF680F /* ContentView.swift in Sources */, 149 | 403A2E76287A0C0900CF680F /* FullScreenCoverTestApp.swift in Sources */, 150 | ); 151 | runOnlyForDeploymentPostprocessing = 0; 152 | }; 153 | /* End PBXSourcesBuildPhase section */ 154 | 155 | /* Begin XCBuildConfiguration section */ 156 | 403A2E7E287A0C0900CF680F /* Debug */ = { 157 | isa = XCBuildConfiguration; 158 | buildSettings = { 159 | ALWAYS_SEARCH_USER_PATHS = NO; 160 | CLANG_ANALYZER_NONNULL = YES; 161 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 162 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 163 | CLANG_ENABLE_MODULES = YES; 164 | CLANG_ENABLE_OBJC_ARC = YES; 165 | CLANG_ENABLE_OBJC_WEAK = YES; 166 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 167 | CLANG_WARN_BOOL_CONVERSION = YES; 168 | CLANG_WARN_COMMA = YES; 169 | CLANG_WARN_CONSTANT_CONVERSION = YES; 170 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 171 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 172 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 173 | CLANG_WARN_EMPTY_BODY = YES; 174 | CLANG_WARN_ENUM_CONVERSION = YES; 175 | CLANG_WARN_INFINITE_RECURSION = YES; 176 | CLANG_WARN_INT_CONVERSION = YES; 177 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 178 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 179 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 180 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 181 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 182 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 183 | CLANG_WARN_STRICT_PROTOTYPES = YES; 184 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 185 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 186 | CLANG_WARN_UNREACHABLE_CODE = YES; 187 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 188 | COPY_PHASE_STRIP = NO; 189 | DEBUG_INFORMATION_FORMAT = dwarf; 190 | ENABLE_STRICT_OBJC_MSGSEND = YES; 191 | ENABLE_TESTABILITY = YES; 192 | GCC_C_LANGUAGE_STANDARD = gnu11; 193 | GCC_DYNAMIC_NO_PIC = NO; 194 | GCC_NO_COMMON_BLOCKS = YES; 195 | GCC_OPTIMIZATION_LEVEL = 0; 196 | GCC_PREPROCESSOR_DEFINITIONS = ( 197 | "DEBUG=1", 198 | "$(inherited)", 199 | ); 200 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 201 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 202 | GCC_WARN_UNDECLARED_SELECTOR = YES; 203 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 204 | GCC_WARN_UNUSED_FUNCTION = YES; 205 | GCC_WARN_UNUSED_VARIABLE = YES; 206 | IPHONEOS_DEPLOYMENT_TARGET = 15.4; 207 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 208 | MTL_FAST_MATH = YES; 209 | ONLY_ACTIVE_ARCH = YES; 210 | SDKROOT = iphoneos; 211 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 212 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 213 | }; 214 | name = Debug; 215 | }; 216 | 403A2E7F287A0C0900CF680F /* Release */ = { 217 | isa = XCBuildConfiguration; 218 | buildSettings = { 219 | ALWAYS_SEARCH_USER_PATHS = NO; 220 | CLANG_ANALYZER_NONNULL = YES; 221 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 222 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 223 | CLANG_ENABLE_MODULES = YES; 224 | CLANG_ENABLE_OBJC_ARC = YES; 225 | CLANG_ENABLE_OBJC_WEAK = YES; 226 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 227 | CLANG_WARN_BOOL_CONVERSION = YES; 228 | CLANG_WARN_COMMA = YES; 229 | CLANG_WARN_CONSTANT_CONVERSION = YES; 230 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 231 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 232 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 233 | CLANG_WARN_EMPTY_BODY = YES; 234 | CLANG_WARN_ENUM_CONVERSION = YES; 235 | CLANG_WARN_INFINITE_RECURSION = YES; 236 | CLANG_WARN_INT_CONVERSION = YES; 237 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 238 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 239 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 240 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 241 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 242 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 243 | CLANG_WARN_STRICT_PROTOTYPES = YES; 244 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 245 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 246 | CLANG_WARN_UNREACHABLE_CODE = YES; 247 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 248 | COPY_PHASE_STRIP = NO; 249 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 250 | ENABLE_NS_ASSERTIONS = NO; 251 | ENABLE_STRICT_OBJC_MSGSEND = YES; 252 | GCC_C_LANGUAGE_STANDARD = gnu11; 253 | GCC_NO_COMMON_BLOCKS = YES; 254 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 255 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 256 | GCC_WARN_UNDECLARED_SELECTOR = YES; 257 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 258 | GCC_WARN_UNUSED_FUNCTION = YES; 259 | GCC_WARN_UNUSED_VARIABLE = YES; 260 | IPHONEOS_DEPLOYMENT_TARGET = 15.4; 261 | MTL_ENABLE_DEBUG_INFO = NO; 262 | MTL_FAST_MATH = YES; 263 | SDKROOT = iphoneos; 264 | SWIFT_COMPILATION_MODE = wholemodule; 265 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 266 | VALIDATE_PRODUCT = YES; 267 | }; 268 | name = Release; 269 | }; 270 | 403A2E81287A0C0900CF680F /* Debug */ = { 271 | isa = XCBuildConfiguration; 272 | buildSettings = { 273 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 274 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 275 | CODE_SIGN_STYLE = Automatic; 276 | CURRENT_PROJECT_VERSION = 1; 277 | DEVELOPMENT_ASSET_PATHS = "\"FullScreenCoverTest/Preview Content\""; 278 | DEVELOPMENT_TEAM = 3D6T9YLT39; 279 | ENABLE_PREVIEWS = YES; 280 | GENERATE_INFOPLIST_FILE = YES; 281 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 282 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 283 | INFOPLIST_KEY_UILaunchScreen_Generation = YES; 284 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 285 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 286 | LD_RUNPATH_SEARCH_PATHS = ( 287 | "$(inherited)", 288 | "@executable_path/Frameworks", 289 | ); 290 | MARKETING_VERSION = 1.0; 291 | PRODUCT_BUNDLE_IDENTIFIER = com.jenyakorsun.FullScreenCoverTest; 292 | PRODUCT_NAME = "$(TARGET_NAME)"; 293 | SWIFT_EMIT_LOC_STRINGS = YES; 294 | SWIFT_VERSION = 5.0; 295 | TARGETED_DEVICE_FAMILY = "1,2"; 296 | }; 297 | name = Debug; 298 | }; 299 | 403A2E82287A0C0900CF680F /* Release */ = { 300 | isa = XCBuildConfiguration; 301 | buildSettings = { 302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 303 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 304 | CODE_SIGN_STYLE = Automatic; 305 | CURRENT_PROJECT_VERSION = 1; 306 | DEVELOPMENT_ASSET_PATHS = "\"FullScreenCoverTest/Preview Content\""; 307 | DEVELOPMENT_TEAM = 3D6T9YLT39; 308 | ENABLE_PREVIEWS = YES; 309 | GENERATE_INFOPLIST_FILE = YES; 310 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 311 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 312 | INFOPLIST_KEY_UILaunchScreen_Generation = YES; 313 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 314 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 315 | LD_RUNPATH_SEARCH_PATHS = ( 316 | "$(inherited)", 317 | "@executable_path/Frameworks", 318 | ); 319 | MARKETING_VERSION = 1.0; 320 | PRODUCT_BUNDLE_IDENTIFIER = com.jenyakorsun.FullScreenCoverTest; 321 | PRODUCT_NAME = "$(TARGET_NAME)"; 322 | SWIFT_EMIT_LOC_STRINGS = YES; 323 | SWIFT_VERSION = 5.0; 324 | TARGETED_DEVICE_FAMILY = "1,2"; 325 | }; 326 | name = Release; 327 | }; 328 | /* End XCBuildConfiguration section */ 329 | 330 | /* Begin XCConfigurationList section */ 331 | 403A2E6D287A0C0800CF680F /* Build configuration list for PBXProject "FullScreenCoverTest" */ = { 332 | isa = XCConfigurationList; 333 | buildConfigurations = ( 334 | 403A2E7E287A0C0900CF680F /* Debug */, 335 | 403A2E7F287A0C0900CF680F /* Release */, 336 | ); 337 | defaultConfigurationIsVisible = 0; 338 | defaultConfigurationName = Release; 339 | }; 340 | 403A2E80287A0C0900CF680F /* Build configuration list for PBXNativeTarget "FullScreenCoverTest" */ = { 341 | isa = XCConfigurationList; 342 | buildConfigurations = ( 343 | 403A2E81287A0C0900CF680F /* Debug */, 344 | 403A2E82287A0C0900CF680F /* Release */, 345 | ); 346 | defaultConfigurationIsVisible = 0; 347 | defaultConfigurationName = Release; 348 | }; 349 | /* End XCConfigurationList section */ 350 | }; 351 | rootObject = 403A2E6A287A0C0800CF680F /* Project object */; 352 | } 353 | --------------------------------------------------------------------------------