Initial Commit

This commit is contained in:
breadone 2024-06-22 12:42:32 +12:00
commit 7a140ae2da
No known key found for this signature in database
14 changed files with 532 additions and 0 deletions

View File

@ -0,0 +1 @@
{"buildConfigurations":[{"buildSettings":{"ASSETCATALOG_COMPILER_APPICON_NAME":"AppIcon","ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME":"AccentColor","CODE_SIGN_STYLE":"Automatic","CURRENT_PROJECT_VERSION":"1","DEVELOPMENT_ASSET_PATHS":"\"OnCue/Preview Content\"","DEVELOPMENT_TEAM":"9MP5435PRF","ENABLE_PREVIEWS":"YES","GENERATE_INFOPLIST_FILE":"YES","INFOPLIST_KEY_UIApplicationSceneManifest_Generation":"YES","INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents":"YES","INFOPLIST_KEY_UILaunchScreen_Generation":"YES","INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad":"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight","INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone":"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight","LD_RUNPATH_SEARCH_PATHS":"$(inherited) @executable_path/Frameworks","MARKETING_VERSION":"1.0","PRODUCT_BUNDLE_IDENTIFIER":"xyz.breadone.OnCue","PRODUCT_NAME":"$(TARGET_NAME)","SWIFT_EMIT_LOC_STRINGS":"YES","SWIFT_VERSION":"5.0","TARGETED_DEVICE_FAMILY":"1,2"},"guid":"5961719cd045435316b5c2f1594b42a3c25c46821ecb42832d6a57ffd772e402","name":"Debug"},{"buildSettings":{"ASSETCATALOG_COMPILER_APPICON_NAME":"AppIcon","ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME":"AccentColor","CODE_SIGN_STYLE":"Automatic","CURRENT_PROJECT_VERSION":"1","DEVELOPMENT_ASSET_PATHS":"\"OnCue/Preview Content\"","DEVELOPMENT_TEAM":"9MP5435PRF","ENABLE_PREVIEWS":"YES","GENERATE_INFOPLIST_FILE":"YES","INFOPLIST_KEY_UIApplicationSceneManifest_Generation":"YES","INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents":"YES","INFOPLIST_KEY_UILaunchScreen_Generation":"YES","INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad":"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight","INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone":"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight","LD_RUNPATH_SEARCH_PATHS":"$(inherited) @executable_path/Frameworks","MARKETING_VERSION":"1.0","PRODUCT_BUNDLE_IDENTIFIER":"xyz.breadone.OnCue","PRODUCT_NAME":"$(TARGET_NAME)","SWIFT_EMIT_LOC_STRINGS":"YES","SWIFT_VERSION":"5.0","TARGETED_DEVICE_FAMILY":"1,2"},"guid":"5961719cd045435316b5c2f1594b42a3a1a0273d533fee7fed839ecec065f704","name":"Release"}],"buildPhases":[{"buildFiles":[{"fileReference":"5961719cd045435316b5c2f1594b42a3f40591c73326b8007750e2e390ebcc66","guid":"5961719cd045435316b5c2f1594b42a3ef434735a8d0699087ffa301155a9d1f"},{"fileReference":"5961719cd045435316b5c2f1594b42a3527d113ad7f4b41c42a5245c160bdbfd","guid":"5961719cd045435316b5c2f1594b42a321ad3caaabea919536c03417c2d0aeba"},{"fileReference":"5961719cd045435316b5c2f1594b42a3ffb81c32ee5cf74ab2ae4c709e6b1b7d","guid":"5961719cd045435316b5c2f1594b42a350b83883006d49d5d3159b7e50b29227"}],"guid":"5961719cd045435316b5c2f1594b42a34c53228d119740c71cebeffed8bd2ff2","type":"com.apple.buildphase.sources"},{"buildFiles":[],"guid":"5961719cd045435316b5c2f1594b42a3a2f5221948d9a1953312652c57e1d642","type":"com.apple.buildphase.frameworks"},{"buildFiles":[{"fileReference":"5961719cd045435316b5c2f1594b42a37ae65b31ed176c09cadbbb73206e2cc9","guid":"5961719cd045435316b5c2f1594b42a38efa1597ab0bb623777113627b8a9330"},{"fileReference":"5961719cd045435316b5c2f1594b42a3ba9a9f72b8e0c632772bf383d7eac4e6","guid":"5961719cd045435316b5c2f1594b42a3fb0f0afd53e03eecf64b56ee78d1bab4"}],"guid":"5961719cd045435316b5c2f1594b42a33d07ad248c5c020c954b79842fbf8292","type":"com.apple.buildphase.resources"}],"buildRules":[],"dependencies":[],"guid":"5961719cd045435316b5c2f1594b42a3ecbb83e53c3142c674fd3cb094653029","name":"OnCue","predominantSourceCodeLanguage":"Xcode.SourceCodeLanguage.Swift","productReference":{"guid":"5961719cd045435316b5c2f1594b42a38c26cb0daa0ae5ffd86df26c309ec4f3","name":"OnCue.app","type":"product"},"productTypeIdentifier":"com.apple.product-type.application","provisioningSourceData":[{"bundleIdentifierFromInfoPlist":"$(PRODUCT_BUNDLE_IDENTIFIER)","configurationName":"Debug","provisioningStyle":0},{"bundleIdentifierFromInfoPlist":"$(PRODUCT_BUNDLE_IDENTIFIER)","configurationName":"Release","provisioningStyle":0}],"type":"standard"}

View File

@ -0,0 +1 @@
{"guid":"42a2d83db06b7f0e6e7b48a6bebe975c","name":"OnCue","path":"/Users/pradyun/Code/Apps/OnCue/OnCue.xcodeproj/project.xcworkspace","projects":["PROJECT@v11_mod=1719016950.2133455_hash=5961719cd045435316b5c2f1594b42a3plugins=1OJSG6M1FOV3XYQCBH7Z29RZ0FPR9XDE1"]}

View File

@ -0,0 +1,353 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {
/* Begin PBXBuildFile section */
46AD30BB2C26557500486C25 /* OnCueApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46AD30BA2C26557500486C25 /* OnCueApp.swift */; };
46AD30BD2C26557500486C25 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46AD30BC2C26557500486C25 /* ContentView.swift */; };
46AD30BF2C26557500486C25 /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46AD30BE2C26557500486C25 /* Item.swift */; };
46AD30C12C26557600486C25 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 46AD30C02C26557600486C25 /* Assets.xcassets */; };
46AD30C42C26557600486C25 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 46AD30C32C26557600486C25 /* Preview Assets.xcassets */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
46AD30B72C26557500486C25 /* OnCue.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OnCue.app; sourceTree = BUILT_PRODUCTS_DIR; };
46AD30BA2C26557500486C25 /* OnCueApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnCueApp.swift; sourceTree = "<group>"; };
46AD30BC2C26557500486C25 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
46AD30BE2C26557500486C25 /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = "<group>"; };
46AD30C02C26557600486C25 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
46AD30C32C26557600486C25 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
46AD30B42C26557500486C25 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
46AD30AE2C26557500486C25 = {
isa = PBXGroup;
children = (
46AD30B92C26557500486C25 /* OnCue */,
46AD30B82C26557500486C25 /* Products */,
);
sourceTree = "<group>";
};
46AD30B82C26557500486C25 /* Products */ = {
isa = PBXGroup;
children = (
46AD30B72C26557500486C25 /* OnCue.app */,
);
name = Products;
sourceTree = "<group>";
};
46AD30B92C26557500486C25 /* OnCue */ = {
isa = PBXGroup;
children = (
46AD30BA2C26557500486C25 /* OnCueApp.swift */,
46AD30BC2C26557500486C25 /* ContentView.swift */,
46AD30BE2C26557500486C25 /* Item.swift */,
46AD30C02C26557600486C25 /* Assets.xcassets */,
46AD30C22C26557600486C25 /* Preview Content */,
);
path = OnCue;
sourceTree = "<group>";
};
46AD30C22C26557600486C25 /* Preview Content */ = {
isa = PBXGroup;
children = (
46AD30C32C26557600486C25 /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
46AD30B62C26557500486C25 /* OnCue */ = {
isa = PBXNativeTarget;
buildConfigurationList = 46AD30C72C26557600486C25 /* Build configuration list for PBXNativeTarget "OnCue" */;
buildPhases = (
46AD30B32C26557500486C25 /* Sources */,
46AD30B42C26557500486C25 /* Frameworks */,
46AD30B52C26557500486C25 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = OnCue;
productName = OnCue;
productReference = 46AD30B72C26557500486C25 /* OnCue.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
46AD30AF2C26557500486C25 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1540;
LastUpgradeCheck = 1540;
TargetAttributes = {
46AD30B62C26557500486C25 = {
CreatedOnToolsVersion = 15.4;
};
};
};
buildConfigurationList = 46AD30B22C26557500486C25 /* Build configuration list for PBXProject "OnCue" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 46AD30AE2C26557500486C25;
productRefGroup = 46AD30B82C26557500486C25 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
46AD30B62C26557500486C25 /* OnCue */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
46AD30B52C26557500486C25 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
46AD30C42C26557600486C25 /* Preview Assets.xcassets in Resources */,
46AD30C12C26557600486C25 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
46AD30B32C26557500486C25 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
46AD30BD2C26557500486C25 /* ContentView.swift in Sources */,
46AD30BF2C26557500486C25 /* Item.swift in Sources */,
46AD30BB2C26557500486C25 /* OnCueApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
46AD30C52C26557600486C25 /* 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;
IPHONEOS_DEPLOYMENT_TARGET = 17.5;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
46AD30C62C26557600486C25 /* 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;
IPHONEOS_DEPLOYMENT_TARGET = 17.5;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
46AD30C82C26557600486C25 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"OnCue/Preview Content\"";
DEVELOPMENT_TEAM = 9MP5435PRF;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = xyz.breadone.OnCue;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
46AD30C92C26557600486C25 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"OnCue/Preview Content\"";
DEVELOPMENT_TEAM = 9MP5435PRF;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = xyz.breadone.OnCue;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
46AD30B22C26557500486C25 /* Build configuration list for PBXProject "OnCue" */ = {
isa = XCConfigurationList;
buildConfigurations = (
46AD30C52C26557600486C25 /* Debug */,
46AD30C62C26557600486C25 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
46AD30C72C26557600486C25 /* Build configuration list for PBXNativeTarget "OnCue" */ = {
isa = XCConfigurationList;
buildConfigurations = (
46AD30C82C26557600486C25 /* Debug */,
46AD30C92C26557600486C25 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 46AD30AF2C26557500486C25 /* Project object */;
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@ -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>

View File

@ -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>OnCue.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

61
OnCue/ContentView.swift Normal file
View File

@ -0,0 +1,61 @@
//
// ContentView.swift
// OnCue
//
// Created by Pradyun Setti on 22/06/2024.
//
import SwiftUI
import SwiftData
struct ContentView: View {
@Environment(\.modelContext) private var modelContext
@Query private var items: [Item]
var body: some View {
NavigationSplitView {
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(placement: .navigationBarTrailing) {
EditButton()
}
ToolbarItem {
Button(action: addItem) {
Label("Add Item", systemImage: "plus")
}
}
}
} detail: {
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)
}

18
OnCue/Item.swift Normal file
View File

@ -0,0 +1,18 @@
//
// Item.swift
// OnCue
//
// Created by Pradyun Setti on 22/06/2024.
//
import Foundation
import SwiftData
@Model
final class Item {
var timestamp: Date
init(timestamp: Date) {
self.timestamp = timestamp
}
}

32
OnCue/OnCueApp.swift Normal file
View File

@ -0,0 +1,32 @@
//
// OnCueApp.swift
// OnCue
//
// Created by Pradyun Setti on 22/06/2024.
//
import SwiftUI
import SwiftData
@main
struct OnCueApp: App {
var sharedModelContainer: ModelContainer = {
let schema = Schema([
Item.self,
])
let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)
do {
return try ModelContainer(for: schema, configurations: [modelConfiguration])
} catch {
fatalError("Could not create ModelContainer: \(error)")
}
}()
var body: some Scene {
WindowGroup {
ContentView()
}
.modelContainer(sharedModelContainer)
}
}

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}