-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from r-token/3.0
Version 3.0
- Loading branch information
Showing
51 changed files
with
2,519 additions
and
1,756 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 12 additions & 22 deletions
34
CatchUp-SwiftUI.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,15 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "PhoneNumberKit", | ||
"repositoryURL": "https://github.com/marmelroy/PhoneNumberKit.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "5c8c906036dd44d0ac6d721c5fd0bf5602d1ff0e", | ||
"version": "3.2.0" | ||
} | ||
}, | ||
{ | ||
"package": "SwiftUIKit", | ||
"repositoryURL": "https://github.com/youjinp/SwiftUIKit.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "16dcc576034f92e3e3429e820e52f414f7f800cd", | ||
"version": "0.0.11" | ||
} | ||
"originHash" : "d01b822f6446cef501cebe37b5b78101e0a82173bb523ee64501d3331d40b50c", | ||
"pins" : [ | ||
{ | ||
"identity" : "phonenumberkit", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/marmelroy/PhoneNumberKit.git", | ||
"state" : { | ||
"revision" : "ee5d7114934e60812c9b47c333f01b67d002be2d", | ||
"version" : "3.7.10" | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} | ||
], | ||
"version" : 3 | ||
} |
81 changes: 81 additions & 0 deletions
81
CatchUp-SwiftUI.xcodeproj/xcshareddata/xcschemes/CatchUp-SwiftUI.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1530" | ||
version = "2.2"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<AutocreatedTestPlanReference> | ||
</AutocreatedTestPlanReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
shouldAutocreateTestPlan = "YES"> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "F48E37ED22C455C3008B0B8B" | ||
BuildableName = "CatchUp.app" | ||
BlueprintName = "CatchUp-SwiftUI" | ||
ReferencedContainer = "container:CatchUp-SwiftUI.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
<CommandLineArgument | ||
argument = "-com.apple.CoreData.CloudKitDebug 0" | ||
isEnabled = "YES"> | ||
</CommandLineArgument> | ||
<CommandLineArgument | ||
argument = "-com.apple.CoreData.Logging.stderr 0" | ||
isEnabled = "YES"> | ||
</CommandLineArgument> | ||
</CommandLineArguments> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "F48E37ED22C455C3008B0B8B" | ||
BuildableName = "CatchUp.app" | ||
BlueprintName = "CatchUp-SwiftUI" | ||
ReferencedContainer = "container:CatchUp-SwiftUI.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
CatchUp-SwiftUI/Assets.xcassets/LaunchScreenBackgroundColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0x00", | ||
"green" : "0x00", | ||
"red" : "0x00" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0x00", | ||
"green" : "0x00", | ||
"red" : "0x00" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// CatchUpApp.swift | ||
// CatchUp-SwiftUI | ||
// | ||
// Created by Ryan Token on 3/3/24. | ||
// Copyright © 2024 Token Solutions. All rights reserved. | ||
// | ||
|
||
import SwiftData | ||
import SwiftUI | ||
|
||
@main | ||
struct CatchUpApp: App { | ||
// use the SQLite file created by Core Data originally, instead of SwiftData's default.store file | ||
let url = URL.applicationSupportDirectory.appending(path: "CatchUp-SwiftUI.sqlite") | ||
let modelContainer: ModelContainer | ||
|
||
@State private var dataController = DataController() | ||
|
||
init() { | ||
do { | ||
modelContainer = try ModelContainer( | ||
for: SelectedContact.self, | ||
configurations: ModelConfiguration(url: url)) | ||
} catch { | ||
fatalError("Failed to initialize model container.") | ||
} | ||
} | ||
|
||
var body: some Scene { | ||
WindowGroup { | ||
NavigationSplitView { | ||
HomeScreen() | ||
} detail: { | ||
if let selectedContact = dataController.selectedContact { | ||
DetailScreen(contact: selectedContact) | ||
} else { | ||
NoContactSelectedScreen() | ||
} | ||
} | ||
.environment(dataController) | ||
.accentColor(.orange) | ||
} | ||
.modelContainer(modelContainer) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?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.security.app-sandbox</key> | ||
<true/> | ||
<key>com.apple.security.files.user-selected.read-only</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// DataController.swift | ||
// CatchUp-SwiftUI | ||
// | ||
// Created by Ryan Token on 3/31/24. | ||
// Copyright © 2024 Token Solutions. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
@Observable | ||
class DataController { | ||
var selectedContact: SelectedContact? | ||
} |
Oops, something went wrong.