]> git.r.bdr.sh - rbdr/captura/commitdiff
Initial commit
authorRuben Beltran del Rio <redacted>
Mon, 24 Jul 2023 18:19:46 +0000 (20:19 +0200)
committerRuben Beltran del Rio <redacted>
Mon, 24 Jul 2023 18:19:46 +0000 (20:19 +0200)
15 files changed:
Captura.xcodeproj/project.pbxproj [new file with mode: 0644]
Captura.xcodeproj/project.xcworkspace/contents.xcworkspacedata [new file with mode: 0644]
Captura.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist [new file with mode: 0644]
Captura.xcodeproj/xcuserdata/rbdr.xcuserdatad/xcschemes/xcschememanagement.plist [new file with mode: 0644]
Captura/Assets.xcassets/AccentColor.colorset/Contents.json [new file with mode: 0644]
Captura/Assets.xcassets/AppIcon.appiconset/Contents.json [new file with mode: 0644]
Captura/Assets.xcassets/Contents.json [new file with mode: 0644]
Captura/Captura.entitlements [new file with mode: 0644]
Captura/CapturaApp.swift [new file with mode: 0644]
Captura/ContentView.swift [new file with mode: 0644]
Captura/Item.swift [new file with mode: 0644]
Captura/Preview Content/Preview Assets.xcassets/Contents.json [new file with mode: 0644]
CapturaTests/CapturaTests.swift [new file with mode: 0644]
CapturaUITests/CapturaUITests.swift [new file with mode: 0644]
CapturaUITests/CapturaUITestsLaunchTests.swift [new file with mode: 0644]

diff --git a/Captura.xcodeproj/project.pbxproj b/Captura.xcodeproj/project.pbxproj
new file mode 100644 (file)
index 0000000..3d8791a
--- /dev/null
@@ -0,0 +1,590 @@
+// !$*UTF8*$!
+{
+       archiveVersion = 1;
+       classes = {
+       };
+       objectVersion = 56;
+       objects = {
+
+/* Begin PBXBuildFile section */
+               B5F915522A6EF80D007ECE8E /* CapturaApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5F915512A6EF80D007ECE8E /* CapturaApp.swift */; };
+               B5F915542A6EF80D007ECE8E /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5F915532A6EF80D007ECE8E /* ContentView.swift */; };
+               B5F915562A6EF80E007ECE8E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B5F915552A6EF80E007ECE8E /* Assets.xcassets */; };
+               B5F915592A6EF80E007ECE8E /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B5F915582A6EF80E007ECE8E /* Preview Assets.xcassets */; };
+               B5F9155B2A6EF80E007ECE8E /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5F9155A2A6EF80E007ECE8E /* Item.swift */; };
+               B5F915662A6EF80E007ECE8E /* CapturaTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5F915652A6EF80E007ECE8E /* CapturaTests.swift */; };
+               B5F915702A6EF80E007ECE8E /* CapturaUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5F9156F2A6EF80E007ECE8E /* CapturaUITests.swift */; };
+               B5F915722A6EF80E007ECE8E /* CapturaUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5F915712A6EF80E007ECE8E /* CapturaUITestsLaunchTests.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+               B5F915622A6EF80E007ECE8E /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = B5F915462A6EF80D007ECE8E /* Project object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = B5F9154D2A6EF80D007ECE8E;
+                       remoteInfo = Captura;
+               };
+               B5F9156C2A6EF80E007ECE8E /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = B5F915462A6EF80D007ECE8E /* Project object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = B5F9154D2A6EF80D007ECE8E;
+                       remoteInfo = Captura;
+               };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+               B5F9154E2A6EF80D007ECE8E /* Captura.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Captura.app; sourceTree = BUILT_PRODUCTS_DIR; };
+               B5F915512A6EF80D007ECE8E /* CapturaApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapturaApp.swift; sourceTree = "<group>"; };
+               B5F915532A6EF80D007ECE8E /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
+               B5F915552A6EF80E007ECE8E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+               B5F915582A6EF80E007ECE8E /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
+               B5F9155A2A6EF80E007ECE8E /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = "<group>"; };
+               B5F9155C2A6EF80E007ECE8E /* Captura.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Captura.entitlements; sourceTree = "<group>"; };
+               B5F915612A6EF80E007ECE8E /* CapturaTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CapturaTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+               B5F915652A6EF80E007ECE8E /* CapturaTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapturaTests.swift; sourceTree = "<group>"; };
+               B5F9156B2A6EF80E007ECE8E /* CapturaUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CapturaUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+               B5F9156F2A6EF80E007ECE8E /* CapturaUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapturaUITests.swift; sourceTree = "<group>"; };
+               B5F915712A6EF80E007ECE8E /* CapturaUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapturaUITestsLaunchTests.swift; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+               B5F9154B2A6EF80D007ECE8E /* Frameworks */ = {
+                       isa = PBXFrameworksBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+               B5F9155E2A6EF80E007ECE8E /* Frameworks */ = {
+                       isa = PBXFrameworksBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+               B5F915682A6EF80E007ECE8E /* Frameworks */ = {
+                       isa = PBXFrameworksBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+               B5F915452A6EF80D007ECE8E = {
+                       isa = PBXGroup;
+                       children = (
+                               B5F915502A6EF80D007ECE8E /* Captura */,
+                               B5F915642A6EF80E007ECE8E /* CapturaTests */,
+                               B5F9156E2A6EF80E007ECE8E /* CapturaUITests */,
+                               B5F9154F2A6EF80D007ECE8E /* Products */,
+                       );
+                       sourceTree = "<group>";
+               };
+               B5F9154F2A6EF80D007ECE8E /* Products */ = {
+                       isa = PBXGroup;
+                       children = (
+                               B5F9154E2A6EF80D007ECE8E /* Captura.app */,
+                               B5F915612A6EF80E007ECE8E /* CapturaTests.xctest */,
+                               B5F9156B2A6EF80E007ECE8E /* CapturaUITests.xctest */,
+                       );
+                       name = Products;
+                       sourceTree = "<group>";
+               };
+               B5F915502A6EF80D007ECE8E /* Captura */ = {
+                       isa = PBXGroup;
+                       children = (
+                               B5F915512A6EF80D007ECE8E /* CapturaApp.swift */,
+                               B5F915532A6EF80D007ECE8E /* ContentView.swift */,
+                               B5F915552A6EF80E007ECE8E /* Assets.xcassets */,
+                               B5F9155A2A6EF80E007ECE8E /* Item.swift */,
+                               B5F9155C2A6EF80E007ECE8E /* Captura.entitlements */,
+                               B5F915572A6EF80E007ECE8E /* Preview Content */,
+                       );
+                       path = Captura;
+                       sourceTree = "<group>";
+               };
+               B5F915572A6EF80E007ECE8E /* Preview Content */ = {
+                       isa = PBXGroup;
+                       children = (
+                               B5F915582A6EF80E007ECE8E /* Preview Assets.xcassets */,
+                       );
+                       path = "Preview Content";
+                       sourceTree = "<group>";
+               };
+               B5F915642A6EF80E007ECE8E /* CapturaTests */ = {
+                       isa = PBXGroup;
+                       children = (
+                               B5F915652A6EF80E007ECE8E /* CapturaTests.swift */,
+                       );
+                       path = CapturaTests;
+                       sourceTree = "<group>";
+               };
+               B5F9156E2A6EF80E007ECE8E /* CapturaUITests */ = {
+                       isa = PBXGroup;
+                       children = (
+                               B5F9156F2A6EF80E007ECE8E /* CapturaUITests.swift */,
+                               B5F915712A6EF80E007ECE8E /* CapturaUITestsLaunchTests.swift */,
+                       );
+                       path = CapturaUITests;
+                       sourceTree = "<group>";
+               };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+               B5F9154D2A6EF80D007ECE8E /* Captura */ = {
+                       isa = PBXNativeTarget;
+                       buildConfigurationList = B5F915752A6EF80E007ECE8E /* Build configuration list for PBXNativeTarget "Captura" */;
+                       buildPhases = (
+                               B5F9154A2A6EF80D007ECE8E /* Sources */,
+                               B5F9154B2A6EF80D007ECE8E /* Frameworks */,
+                               B5F9154C2A6EF80D007ECE8E /* Resources */,
+                       );
+                       buildRules = (
+                       );
+                       dependencies = (
+                       );
+                       name = Captura;
+                       productName = Captura;
+                       productReference = B5F9154E2A6EF80D007ECE8E /* Captura.app */;
+                       productType = "com.apple.product-type.application";
+               };
+               B5F915602A6EF80E007ECE8E /* CapturaTests */ = {
+                       isa = PBXNativeTarget;
+                       buildConfigurationList = B5F915782A6EF80E007ECE8E /* Build configuration list for PBXNativeTarget "CapturaTests" */;
+                       buildPhases = (
+                               B5F9155D2A6EF80E007ECE8E /* Sources */,
+                               B5F9155E2A6EF80E007ECE8E /* Frameworks */,
+                               B5F9155F2A6EF80E007ECE8E /* Resources */,
+                       );
+                       buildRules = (
+                       );
+                       dependencies = (
+                               B5F915632A6EF80E007ECE8E /* PBXTargetDependency */,
+                       );
+                       name = CapturaTests;
+                       productName = CapturaTests;
+                       productReference = B5F915612A6EF80E007ECE8E /* CapturaTests.xctest */;
+                       productType = "com.apple.product-type.bundle.unit-test";
+               };
+               B5F9156A2A6EF80E007ECE8E /* CapturaUITests */ = {
+                       isa = PBXNativeTarget;
+                       buildConfigurationList = B5F9157B2A6EF80E007ECE8E /* Build configuration list for PBXNativeTarget "CapturaUITests" */;
+                       buildPhases = (
+                               B5F915672A6EF80E007ECE8E /* Sources */,
+                               B5F915682A6EF80E007ECE8E /* Frameworks */,
+                               B5F915692A6EF80E007ECE8E /* Resources */,
+                       );
+                       buildRules = (
+                       );
+                       dependencies = (
+                               B5F9156D2A6EF80E007ECE8E /* PBXTargetDependency */,
+                       );
+                       name = CapturaUITests;
+                       productName = CapturaUITests;
+                       productReference = B5F9156B2A6EF80E007ECE8E /* CapturaUITests.xctest */;
+                       productType = "com.apple.product-type.bundle.ui-testing";
+               };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+               B5F915462A6EF80D007ECE8E /* Project object */ = {
+                       isa = PBXProject;
+                       attributes = {
+                               BuildIndependentTargetsInParallel = 1;
+                               LastSwiftUpdateCheck = 1500;
+                               LastUpgradeCheck = 1500;
+                               TargetAttributes = {
+                                       B5F9154D2A6EF80D007ECE8E = {
+                                               CreatedOnToolsVersion = 15.0;
+                                       };
+                                       B5F915602A6EF80E007ECE8E = {
+                                               CreatedOnToolsVersion = 15.0;
+                                               TestTargetID = B5F9154D2A6EF80D007ECE8E;
+                                       };
+                                       B5F9156A2A6EF80E007ECE8E = {
+                                               CreatedOnToolsVersion = 15.0;
+                                               TestTargetID = B5F9154D2A6EF80D007ECE8E;
+                                       };
+                               };
+                       };
+                       buildConfigurationList = B5F915492A6EF80D007ECE8E /* Build configuration list for PBXProject "Captura" */;
+                       compatibilityVersion = "Xcode 14.0";
+                       developmentRegion = en;
+                       hasScannedForEncodings = 0;
+                       knownRegions = (
+                               en,
+                               Base,
+                       );
+                       mainGroup = B5F915452A6EF80D007ECE8E;
+                       productRefGroup = B5F9154F2A6EF80D007ECE8E /* Products */;
+                       projectDirPath = "";
+                       projectRoot = "";
+                       targets = (
+                               B5F9154D2A6EF80D007ECE8E /* Captura */,
+                               B5F915602A6EF80E007ECE8E /* CapturaTests */,
+                               B5F9156A2A6EF80E007ECE8E /* CapturaUITests */,
+                       );
+               };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+               B5F9154C2A6EF80D007ECE8E /* Resources */ = {
+                       isa = PBXResourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               B5F915592A6EF80E007ECE8E /* Preview Assets.xcassets in Resources */,
+                               B5F915562A6EF80E007ECE8E /* Assets.xcassets in Resources */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+               B5F9155F2A6EF80E007ECE8E /* Resources */ = {
+                       isa = PBXResourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+               B5F915692A6EF80E007ECE8E /* Resources */ = {
+                       isa = PBXResourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+               B5F9154A2A6EF80D007ECE8E /* Sources */ = {
+                       isa = PBXSourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               B5F915542A6EF80D007ECE8E /* ContentView.swift in Sources */,
+                               B5F9155B2A6EF80E007ECE8E /* Item.swift in Sources */,
+                               B5F915522A6EF80D007ECE8E /* CapturaApp.swift in Sources */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+               B5F9155D2A6EF80E007ECE8E /* Sources */ = {
+                       isa = PBXSourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               B5F915662A6EF80E007ECE8E /* CapturaTests.swift in Sources */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+               B5F915672A6EF80E007ECE8E /* Sources */ = {
+                       isa = PBXSourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               B5F915702A6EF80E007ECE8E /* CapturaUITests.swift in Sources */,
+                               B5F915722A6EF80E007ECE8E /* CapturaUITestsLaunchTests.swift in Sources */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+               B5F915632A6EF80E007ECE8E /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = B5F9154D2A6EF80D007ECE8E /* Captura */;
+                       targetProxy = B5F915622A6EF80E007ECE8E /* PBXContainerItemProxy */;
+               };
+               B5F9156D2A6EF80E007ECE8E /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = B5F9154D2A6EF80D007ECE8E /* Captura */;
+                       targetProxy = B5F9156C2A6EF80E007ECE8E /* PBXContainerItemProxy */;
+               };
+/* End PBXTargetDependency section */
+
+/* Begin XCBuildConfiguration section */
+               B5F915732A6EF80E007ECE8E /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ALWAYS_SEARCH_USER_PATHS = NO;
+                               ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+                               CLANG_ANALYZER_NONNULL = YES;
+                               CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+                               CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+                               CLANG_ENABLE_MODULES = YES;
+                               CLANG_ENABLE_OBJC_ARC = YES;
+                               CLANG_ENABLE_OBJC_WEAK = YES;
+                               CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+                               CLANG_WARN_BOOL_CONVERSION = YES;
+                               CLANG_WARN_COMMA = YES;
+                               CLANG_WARN_CONSTANT_CONVERSION = YES;
+                               CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+                               CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+                               CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+                               CLANG_WARN_EMPTY_BODY = YES;
+                               CLANG_WARN_ENUM_CONVERSION = YES;
+                               CLANG_WARN_INFINITE_RECURSION = YES;
+                               CLANG_WARN_INT_CONVERSION = YES;
+                               CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+                               CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+                               CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+                               CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+                               CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+                               CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+                               CLANG_WARN_STRICT_PROTOTYPES = YES;
+                               CLANG_WARN_SUSPICIOUS_MOVE = YES;
+                               CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+                               CLANG_WARN_UNREACHABLE_CODE = YES;
+                               CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+                               COPY_PHASE_STRIP = NO;
+                               DEBUG_INFORMATION_FORMAT = dwarf;
+                               ENABLE_STRICT_OBJC_MSGSEND = YES;
+                               ENABLE_TESTABILITY = YES;
+                               ENABLE_USER_SCRIPT_SANDBOXING = YES;
+                               GCC_C_LANGUAGE_STANDARD = gnu17;
+                               GCC_DYNAMIC_NO_PIC = NO;
+                               GCC_NO_COMMON_BLOCKS = YES;
+                               GCC_OPTIMIZATION_LEVEL = 0;
+                               GCC_PREPROCESSOR_DEFINITIONS = (
+                                       "DEBUG=1",
+                                       "$(inherited)",
+                               );
+                               GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+                               GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+                               GCC_WARN_UNDECLARED_SELECTOR = YES;
+                               GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+                               GCC_WARN_UNUSED_FUNCTION = YES;
+                               GCC_WARN_UNUSED_VARIABLE = YES;
+                               LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+                               MACOSX_DEPLOYMENT_TARGET = 14.0;
+                               MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+                               MTL_FAST_MATH = YES;
+                               ONLY_ACTIVE_ARCH = YES;
+                               SDKROOT = macosx;
+                               SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
+                               SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+                       };
+                       name = Debug;
+               };
+               B5F915742A6EF80E007ECE8E /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ALWAYS_SEARCH_USER_PATHS = NO;
+                               ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+                               CLANG_ANALYZER_NONNULL = YES;
+                               CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+                               CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+                               CLANG_ENABLE_MODULES = YES;
+                               CLANG_ENABLE_OBJC_ARC = YES;
+                               CLANG_ENABLE_OBJC_WEAK = YES;
+                               CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+                               CLANG_WARN_BOOL_CONVERSION = YES;
+                               CLANG_WARN_COMMA = YES;
+                               CLANG_WARN_CONSTANT_CONVERSION = YES;
+                               CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+                               CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+                               CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+                               CLANG_WARN_EMPTY_BODY = YES;
+                               CLANG_WARN_ENUM_CONVERSION = YES;
+                               CLANG_WARN_INFINITE_RECURSION = YES;
+                               CLANG_WARN_INT_CONVERSION = YES;
+                               CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+                               CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+                               CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+                               CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+                               CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+                               CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+                               CLANG_WARN_STRICT_PROTOTYPES = YES;
+                               CLANG_WARN_SUSPICIOUS_MOVE = YES;
+                               CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+                               CLANG_WARN_UNREACHABLE_CODE = YES;
+                               CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+                               COPY_PHASE_STRIP = NO;
+                               DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+                               ENABLE_NS_ASSERTIONS = NO;
+                               ENABLE_STRICT_OBJC_MSGSEND = YES;
+                               ENABLE_USER_SCRIPT_SANDBOXING = YES;
+                               GCC_C_LANGUAGE_STANDARD = gnu17;
+                               GCC_NO_COMMON_BLOCKS = YES;
+                               GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+                               GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+                               GCC_WARN_UNDECLARED_SELECTOR = YES;
+                               GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+                               GCC_WARN_UNUSED_FUNCTION = YES;
+                               GCC_WARN_UNUSED_VARIABLE = YES;
+                               LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+                               MACOSX_DEPLOYMENT_TARGET = 14.0;
+                               MTL_ENABLE_DEBUG_INFO = NO;
+                               MTL_FAST_MATH = YES;
+                               SDKROOT = macosx;
+                               SWIFT_COMPILATION_MODE = wholemodule;
+                       };
+                       name = Release;
+               };
+               B5F915762A6EF80E007ECE8E /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+                               ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+                               CODE_SIGN_ENTITLEMENTS = Captura/Captura.entitlements;
+                               CODE_SIGN_STYLE = Automatic;
+                               COMBINE_HIDPI_IMAGES = YES;
+                               CURRENT_PROJECT_VERSION = 1;
+                               DEVELOPMENT_ASSET_PATHS = "\"Captura/Preview Content\"";
+                               DEVELOPMENT_TEAM = S68NHQVJXW;
+                               ENABLE_HARDENED_RUNTIME = YES;
+                               ENABLE_PREVIEWS = YES;
+                               GENERATE_INFOPLIST_FILE = YES;
+                               INFOPLIST_KEY_NSHumanReadableCopyright = "";
+                               LD_RUNPATH_SEARCH_PATHS = (
+                                       "$(inherited)",
+                                       "@executable_path/../Frameworks",
+                               );
+                               MARKETING_VERSION = 1.0;
+                               PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.Captura;
+                               PRODUCT_NAME = "$(TARGET_NAME)";
+                               SWIFT_EMIT_LOC_STRINGS = YES;
+                               SWIFT_VERSION = 5.0;
+                       };
+                       name = Debug;
+               };
+               B5F915772A6EF80E007ECE8E /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+                               ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+                               CODE_SIGN_ENTITLEMENTS = Captura/Captura.entitlements;
+                               CODE_SIGN_STYLE = Automatic;
+                               COMBINE_HIDPI_IMAGES = YES;
+                               CURRENT_PROJECT_VERSION = 1;
+                               DEVELOPMENT_ASSET_PATHS = "\"Captura/Preview Content\"";
+                               DEVELOPMENT_TEAM = S68NHQVJXW;
+                               ENABLE_HARDENED_RUNTIME = YES;
+                               ENABLE_PREVIEWS = YES;
+                               GENERATE_INFOPLIST_FILE = YES;
+                               INFOPLIST_KEY_NSHumanReadableCopyright = "";
+                               LD_RUNPATH_SEARCH_PATHS = (
+                                       "$(inherited)",
+                                       "@executable_path/../Frameworks",
+                               );
+                               MARKETING_VERSION = 1.0;
+                               PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.Captura;
+                               PRODUCT_NAME = "$(TARGET_NAME)";
+                               SWIFT_EMIT_LOC_STRINGS = YES;
+                               SWIFT_VERSION = 5.0;
+                       };
+                       name = Release;
+               };
+               B5F915792A6EF80E007ECE8E /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+                               BUNDLE_LOADER = "$(TEST_HOST)";
+                               CODE_SIGN_STYLE = Automatic;
+                               CURRENT_PROJECT_VERSION = 1;
+                               DEVELOPMENT_TEAM = S68NHQVJXW;
+                               GENERATE_INFOPLIST_FILE = YES;
+                               MACOSX_DEPLOYMENT_TARGET = 14.0;
+                               MARKETING_VERSION = 1.0;
+                               PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.CapturaTests;
+                               PRODUCT_NAME = "$(TARGET_NAME)";
+                               SWIFT_EMIT_LOC_STRINGS = NO;
+                               SWIFT_VERSION = 5.0;
+                               TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Captura.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Captura";
+                       };
+                       name = Debug;
+               };
+               B5F9157A2A6EF80E007ECE8E /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+                               BUNDLE_LOADER = "$(TEST_HOST)";
+                               CODE_SIGN_STYLE = Automatic;
+                               CURRENT_PROJECT_VERSION = 1;
+                               DEVELOPMENT_TEAM = S68NHQVJXW;
+                               GENERATE_INFOPLIST_FILE = YES;
+                               MACOSX_DEPLOYMENT_TARGET = 14.0;
+                               MARKETING_VERSION = 1.0;
+                               PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.CapturaTests;
+                               PRODUCT_NAME = "$(TARGET_NAME)";
+                               SWIFT_EMIT_LOC_STRINGS = NO;
+                               SWIFT_VERSION = 5.0;
+                               TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Captura.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Captura";
+                       };
+                       name = Release;
+               };
+               B5F9157C2A6EF80E007ECE8E /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+                               CODE_SIGN_STYLE = Automatic;
+                               CURRENT_PROJECT_VERSION = 1;
+                               DEVELOPMENT_TEAM = S68NHQVJXW;
+                               GENERATE_INFOPLIST_FILE = YES;
+                               MARKETING_VERSION = 1.0;
+                               PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.CapturaUITests;
+                               PRODUCT_NAME = "$(TARGET_NAME)";
+                               SWIFT_EMIT_LOC_STRINGS = NO;
+                               SWIFT_VERSION = 5.0;
+                               TEST_TARGET_NAME = Captura;
+                       };
+                       name = Debug;
+               };
+               B5F9157D2A6EF80E007ECE8E /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+                               CODE_SIGN_STYLE = Automatic;
+                               CURRENT_PROJECT_VERSION = 1;
+                               DEVELOPMENT_TEAM = S68NHQVJXW;
+                               GENERATE_INFOPLIST_FILE = YES;
+                               MARKETING_VERSION = 1.0;
+                               PRODUCT_BUNDLE_IDENTIFIER = pizza.unlimited.CapturaUITests;
+                               PRODUCT_NAME = "$(TARGET_NAME)";
+                               SWIFT_EMIT_LOC_STRINGS = NO;
+                               SWIFT_VERSION = 5.0;
+                               TEST_TARGET_NAME = Captura;
+                       };
+                       name = Release;
+               };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+               B5F915492A6EF80D007ECE8E /* Build configuration list for PBXProject "Captura" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               B5F915732A6EF80E007ECE8E /* Debug */,
+                               B5F915742A6EF80E007ECE8E /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+                       defaultConfigurationName = Release;
+               };
+               B5F915752A6EF80E007ECE8E /* Build configuration list for PBXNativeTarget "Captura" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               B5F915762A6EF80E007ECE8E /* Debug */,
+                               B5F915772A6EF80E007ECE8E /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+                       defaultConfigurationName = Release;
+               };
+               B5F915782A6EF80E007ECE8E /* Build configuration list for PBXNativeTarget "CapturaTests" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               B5F915792A6EF80E007ECE8E /* Debug */,
+                               B5F9157A2A6EF80E007ECE8E /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+                       defaultConfigurationName = Release;
+               };
+               B5F9157B2A6EF80E007ECE8E /* Build configuration list for PBXNativeTarget "CapturaUITests" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               B5F9157C2A6EF80E007ECE8E /* Debug */,
+                               B5F9157D2A6EF80E007ECE8E /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+                       defaultConfigurationName = Release;
+               };
+/* End XCConfigurationList section */
+       };
+       rootObject = B5F915462A6EF80D007ECE8E /* Project object */;
+}
diff --git a/Captura.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Captura.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644 (file)
index 0000000..919434a
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:">
+   </FileRef>
+</Workspace>
diff --git a/Captura.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Captura.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644 (file)
index 0000000..18d9810
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>IDEDidComputeMac32BitWarning</key>
+       <true/>
+</dict>
+</plist>
diff --git a/Captura.xcodeproj/xcuserdata/rbdr.xcuserdatad/xcschemes/xcschememanagement.plist b/Captura.xcodeproj/xcuserdata/rbdr.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644 (file)
index 0000000..bc179b2
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>SchemeUserState</key>
+       <dict>
+               <key>Captura.xcscheme_^#shared#^_</key>
+               <dict>
+                       <key>orderHint</key>
+                       <integer>0</integer>
+               </dict>
+       </dict>
+</dict>
+</plist>
diff --git a/Captura/Assets.xcassets/AccentColor.colorset/Contents.json b/Captura/Assets.xcassets/AccentColor.colorset/Contents.json
new file mode 100644 (file)
index 0000000..eb87897
--- /dev/null
@@ -0,0 +1,11 @@
+{
+  "colors" : [
+    {
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}
diff --git a/Captura/Assets.xcassets/AppIcon.appiconset/Contents.json b/Captura/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644 (file)
index 0000000..3f00db4
--- /dev/null
@@ -0,0 +1,58 @@
+{
+  "images" : [
+    {
+      "idiom" : "mac",
+      "scale" : "1x",
+      "size" : "16x16"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "2x",
+      "size" : "16x16"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "1x",
+      "size" : "32x32"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "2x",
+      "size" : "32x32"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "1x",
+      "size" : "128x128"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "2x",
+      "size" : "128x128"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "1x",
+      "size" : "256x256"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "2x",
+      "size" : "256x256"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "1x",
+      "size" : "512x512"
+    },
+    {
+      "idiom" : "mac",
+      "scale" : "2x",
+      "size" : "512x512"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}
diff --git a/Captura/Assets.xcassets/Contents.json b/Captura/Assets.xcassets/Contents.json
new file mode 100644 (file)
index 0000000..73c0059
--- /dev/null
@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}
diff --git a/Captura/Captura.entitlements b/Captura/Captura.entitlements
new file mode 100644 (file)
index 0000000..fe097f1
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>com.apple.developer.aps-environment</key>
+       <string>development</string>
+       <key>com.apple.developer.icloud-container-identifiers</key>
+       <array/>
+       <key>com.apple.developer.icloud-services</key>
+       <array>
+               <string>CloudKit</string>
+       </array>
+       <key>com.apple.security.app-sandbox</key>
+       <true/>
+       <key>com.apple.security.files.user-selected.read-only</key>
+       <true/>
+</dict>
+</plist>
diff --git a/Captura/CapturaApp.swift b/Captura/CapturaApp.swift
new file mode 100644 (file)
index 0000000..b0ccf32
--- /dev/null
@@ -0,0 +1,20 @@
+//
+//  CapturaApp.swift
+//  Captura
+//
+//  Created by Ruben Beltran del Rio on 7/24/23.
+//
+
+import SwiftUI
+import SwiftData
+
+@main
+struct CapturaApp: App {
+
+    var body: some Scene {
+        WindowGroup {
+            ContentView()
+        }
+        .modelContainer(for: Item.self)
+    }
+}
diff --git a/Captura/ContentView.swift b/Captura/ContentView.swift
new file mode 100644 (file)
index 0000000..63fa7b8
--- /dev/null
@@ -0,0 +1,57 @@
+//
+//  ContentView.swift
+//  Captura
+//
+//  Created by Ruben Beltran del Rio on 7/24/23.
+//
+
+import SwiftUI
+import SwiftData
+
+struct ContentView: View {
+    @Environment(\.modelContext) private var modelContext
+    @Query private var items: [Item]
+    
+    var body: some View {
+        NavigationView {
+            List {
+                ForEach(items) { item in
+                    NavigationLink {
+                        Text("Item at \(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard))")
+                    } label: {
+                        Text(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard))
+                    }
+                }
+                .onDelete(perform: deleteItems)
+            }
+            .toolbar {
+                ToolbarItem {
+                    Button(action: addItem) {
+                        Label("Add Item", systemImage: "plus")
+                    }
+                }
+            }
+            Text("Select an item")
+        }
+    }
+
+    private func addItem() {
+        withAnimation {
+            let newItem = Item(timestamp: Date())
+            modelContext.insert(newItem)
+        }
+    }
+
+    private func deleteItems(offsets: IndexSet) {
+        withAnimation {
+            for index in offsets {
+                modelContext.delete(items[index])
+            }
+        }
+    }
+}
+
+#Preview {
+    ContentView()
+        .modelContainer(for: Item.self, inMemory: true)
+}
diff --git a/Captura/Item.swift b/Captura/Item.swift
new file mode 100644 (file)
index 0000000..22587d8
--- /dev/null
@@ -0,0 +1,18 @@
+//
+//  Item.swift
+//  Captura
+//
+//  Created by Ruben Beltran del Rio on 7/24/23.
+//
+
+import Foundation
+import SwiftData
+
+@Model
+final class Item {
+    var timestamp: Date
+    
+    init(timestamp: Date) {
+        self.timestamp = timestamp
+    }
+}
diff --git a/Captura/Preview Content/Preview Assets.xcassets/Contents.json b/Captura/Preview Content/Preview Assets.xcassets/Contents.json
new file mode 100644 (file)
index 0000000..73c0059
--- /dev/null
@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}
diff --git a/CapturaTests/CapturaTests.swift b/CapturaTests/CapturaTests.swift
new file mode 100644 (file)
index 0000000..3ba4ac0
--- /dev/null
@@ -0,0 +1,36 @@
+//
+//  CapturaTests.swift
+//  CapturaTests
+//
+//  Created by Ruben Beltran del Rio on 7/24/23.
+//
+
+import XCTest
+@testable import Captura
+
+final class CapturaTests: XCTestCase {
+
+    override func setUpWithError() throws {
+        // Put setup code here. This method is called before the invocation of each test method in the class.
+    }
+
+    override func tearDownWithError() throws {
+        // Put teardown code here. This method is called after the invocation of each test method in the class.
+    }
+
+    func testExample() throws {
+        // This is an example of a functional test case.
+        // Use XCTAssert and related functions to verify your tests produce the correct results.
+        // Any test you write for XCTest can be annotated as throws and async.
+        // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
+        // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
+    }
+
+    func testPerformanceExample() throws {
+        // This is an example of a performance test case.
+        self.measure {
+            // Put the code you want to measure the time of here.
+        }
+    }
+
+}
diff --git a/CapturaUITests/CapturaUITests.swift b/CapturaUITests/CapturaUITests.swift
new file mode 100644 (file)
index 0000000..f8747d1
--- /dev/null
@@ -0,0 +1,41 @@
+//
+//  CapturaUITests.swift
+//  CapturaUITests
+//
+//  Created by Ruben Beltran del Rio on 7/24/23.
+//
+
+import XCTest
+
+final class CapturaUITests: XCTestCase {
+
+    override func setUpWithError() throws {
+        // Put setup code here. This method is called before the invocation of each test method in the class.
+
+        // In UI tests it is usually best to stop immediately when a failure occurs.
+        continueAfterFailure = false
+
+        // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
+    }
+
+    override func tearDownWithError() throws {
+        // Put teardown code here. This method is called after the invocation of each test method in the class.
+    }
+
+    func testExample() throws {
+        // UI tests must launch the application that they test.
+        let app = XCUIApplication()
+        app.launch()
+
+        // Use XCTAssert and related functions to verify your tests produce the correct results.
+    }
+
+    func testLaunchPerformance() throws {
+        if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
+            // This measures how long it takes to launch your application.
+            measure(metrics: [XCTApplicationLaunchMetric()]) {
+                XCUIApplication().launch()
+            }
+        }
+    }
+}
diff --git a/CapturaUITests/CapturaUITestsLaunchTests.swift b/CapturaUITests/CapturaUITestsLaunchTests.swift
new file mode 100644 (file)
index 0000000..4edb6b3
--- /dev/null
@@ -0,0 +1,32 @@
+//
+//  CapturaUITestsLaunchTests.swift
+//  CapturaUITests
+//
+//  Created by Ruben Beltran del Rio on 7/24/23.
+//
+
+import XCTest
+
+final class CapturaUITestsLaunchTests: XCTestCase {
+
+    override class var runsForEachTargetApplicationUIConfiguration: Bool {
+        true
+    }
+
+    override func setUpWithError() throws {
+        continueAfterFailure = false
+    }
+
+    func testLaunch() throws {
+        let app = XCUIApplication()
+        app.launch()
+
+        // Insert steps here to perform after app launch but before taking a screenshot,
+        // such as logging into a test account or navigating somewhere in the app
+
+        let attachment = XCTAttachment(screenshot: app.screenshot())
+        attachment.name = "Launch Screen"
+        attachment.lifetime = .keepAlways
+        add(attachment)
+    }
+}