This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- OpenAI integration and developer settings - Gated behind a flag (default off) I introduced a dependency on a keychain interfacing library, I was tempted to avoid it but the direct interface to keychain immediately made me understand why everyone is using a library. AI features can be enabled from the Developer Settings menu: <img width="383" alt="image" src="https://github.com/subconsciousnetwork/subconscious/assets/5009316/82a54ea2-bf01-46bd-8af8-e389d2a675a2"> https://github.com/subconsciousnetwork/subconscious/assets/5009316/2868e602-2bcb-4c8e-bb1a-5c3ab0804847
- Loading branch information
1 parent
3260c01
commit c5761ec
Showing
18 changed files
with
768 additions
and
97 deletions.
There are no files selected for viewing
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
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
25 changes: 0 additions & 25 deletions
25
xcode/Subconscious/Shared/Components/Deck/Cards/ActionCardView.swift
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
30 changes: 30 additions & 0 deletions
30
xcode/Subconscious/Shared/Components/Deck/Cards/RewardCardView.swift
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,30 @@ | ||
// | ||
// RewardCardView.swift | ||
// Subconscious (iOS) | ||
// | ||
// Created by Ben Follington on 27/12/2023. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
struct RewardCardView: View { | ||
var message: String | ||
|
||
var body: some View { | ||
VStack { | ||
Text(message) | ||
.font(.title) | ||
.italic() | ||
} | ||
.padding(DeckTheme.cardPadding) | ||
.frame( | ||
minWidth: DeckTheme.cardSize.width, | ||
minHeight: DeckTheme.cardSize.height | ||
) | ||
.foregroundStyle(message.themeColor.toHighlightColor()) | ||
.background(message.themeColor.toColor()) | ||
.cornerRadius(DeckTheme.cornerRadius) | ||
.transition(.push(from: .bottom)) | ||
} | ||
} |
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
Oops, something went wrong.