Improved the app for watch
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"-sdk"
|
||||
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk"
|
||||
"-target"
|
||||
"arm64-apple-ios17.5-simulator"
|
||||
"arm64-apple-ios17.0-simulator"
|
||||
"-enable-bare-slash-regex"
|
||||
"-module-cache-path"
|
||||
"/Users/pradyun/Library/Developer/Xcode/DerivedData/ModuleCache.noindex"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -4,7 +4,19 @@
|
||||
"Localizable": [
|
||||
{
|
||||
"comment": "",
|
||||
"key": "Hello, World!"
|
||||
"key": "Card %lld"
|
||||
},
|
||||
{
|
||||
"comment": "",
|
||||
"key": "Add Item"
|
||||
},
|
||||
{
|
||||
"comment": "",
|
||||
"key": "Cue Cards"
|
||||
},
|
||||
{
|
||||
"comment": "",
|
||||
"key": "Teleprompter"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -8,10 +8,71 @@ import struct SwiftUI.EmptyView
|
||||
import protocol SwiftUI.View
|
||||
import SwiftUI
|
||||
|
||||
extension CardsView {
|
||||
@_dynamicReplacement(for: deleteItems(offsets:)) private func __preview__deleteItems(offsets: IndexSet) {
|
||||
#sourceLocation(file: "/Users/pradyun/Code/Apps/OnCue/OnCue/View/CardsView.swift", line: 67)
|
||||
withAnimation {
|
||||
project.cards.remove(atOffsets: offsets)
|
||||
try! ctx.save()
|
||||
}
|
||||
|
||||
#sourceLocation()
|
||||
}
|
||||
}
|
||||
|
||||
extension CardsView {
|
||||
@_dynamicReplacement(for: addNewCard(txt:)) private func __preview__addNewCard(txt: String) {
|
||||
#sourceLocation(file: "/Users/pradyun/Code/Apps/OnCue/OnCue/View/CardsView.swift", line: 61)
|
||||
let card = OCCard(content: txt, index: (project.sortedCards.last?.index ?? __designTimeInteger("#6455.[1].[6].[0].value.arg[1].value.[0]", fallback: -1)) + __designTimeInteger("#6455.[1].[6].[0].value.arg[1].value.[1]", fallback: 1)) // adds one to the index, unless there arent any cards in which case default to 0
|
||||
project.cards.append(card)
|
||||
try! ctx.save()
|
||||
|
||||
#sourceLocation()
|
||||
}
|
||||
}
|
||||
|
||||
extension CardsView {
|
||||
@_dynamicReplacement(for: body) private var __preview__body: some View {
|
||||
#sourceLocation(file: "/Users/pradyun/Code/Apps/OnCue/OnCue/View/CardsView.swift", line: 14)
|
||||
Text(/*@START_MENU_TOKEN@*/__designTimeString("#16575.[1].[1].property.[0].[0].arg[0].value", fallback: "Hello, World!")/*@END_MENU_TOKEN@*/)
|
||||
#sourceLocation(file: "/Users/pradyun/Code/Apps/OnCue/OnCue/View/CardsView.swift", line: 19)
|
||||
List {
|
||||
ForEach(project.sortedCards) { card in
|
||||
Section {
|
||||
VStack(alignment: .trailing) {
|
||||
Text(card.content)
|
||||
}
|
||||
.frame(minHeight: __designTimeInteger("#6455.[1].[5].property.[0].[0].arg[0].value.[0].arg[1].value.[0].arg[0].value.[0].modifier[0].arg[0].value", fallback: 150))
|
||||
} header: {
|
||||
Text("Card \(card.index + __designTimeInteger("#6455.[1].[5].property.[0].[0].arg[0].value.[0].arg[1].value.[0].arg[1].value.[0].arg[0].value.[1].value.arg[0].value.[0]", fallback: 1))")
|
||||
}
|
||||
}
|
||||
.onDelete(perform: deleteItems)
|
||||
}
|
||||
.listStyle(.sidebar)
|
||||
.navigationTitle(project.name)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .topBarTrailing) {
|
||||
Button(action: { addNewCard.toggle() }) {
|
||||
Label(__designTimeString("#6455.[1].[5].property.[0].[0].modifier[3].arg[0].value.[0].arg[1].value.[0].arg[1].value.[0].arg[0].value", fallback: "Add Item"), systemImage: __designTimeString("#6455.[1].[5].property.[0].[0].modifier[3].arg[0].value.[0].arg[1].value.[0].arg[1].value.[0].arg[1].value", fallback: "plus"))
|
||||
}
|
||||
}
|
||||
ToolbarItem(placement: .topBarTrailing) {
|
||||
Menu {
|
||||
NavigationLink(destination: {ProjectSlideshowView(project: project)}) {
|
||||
Label(title: { Text(__designTimeString("#6455.[1].[5].property.[0].[0].modifier[3].arg[0].value.[1].arg[1].value.[0].arg[0].value.[0].arg[1].value.[0].arg[0].value.[0].arg[0].value", fallback: "Cue Cards"))}, icon: {Image(systemName: __designTimeString("#6455.[1].[5].property.[0].[0].modifier[3].arg[0].value.[1].arg[1].value.[0].arg[0].value.[0].arg[1].value.[0].arg[1].value.[0].arg[0].value", fallback: "rectangle.stack")) })
|
||||
}
|
||||
NavigationLink(destination: {TeleprompterView(project: project)}) {
|
||||
Label(title: { Text(__designTimeString("#6455.[1].[5].property.[0].[0].modifier[3].arg[0].value.[1].arg[1].value.[0].arg[0].value.[1].arg[1].value.[0].arg[0].value.[0].arg[0].value", fallback: "Teleprompter"))}, icon: {Image(systemName: __designTimeString("#6455.[1].[5].property.[0].[0].modifier[3].arg[0].value.[1].arg[1].value.[0].arg[0].value.[1].arg[1].value.[0].arg[1].value.[0].arg[0].value", fallback: "note.text")) })
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: __designTimeString("#6455.[1].[5].property.[0].[0].modifier[3].arg[0].value.[1].arg[1].value.[0].arg[1].value.[0].arg[0].value", fallback: "play.fill"))
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $addNewCard) {
|
||||
AddNewCardView(completionHandler: addNewCard)
|
||||
}
|
||||
|
||||
#sourceLocation()
|
||||
}
|
||||
@@ -19,9 +80,7 @@ extension CardsView {
|
||||
|
||||
import struct OnCue.CardsView
|
||||
#Preview {
|
||||
let project = OCProject(name: "Test Project")
|
||||
|
||||
return CardsView(project: project)
|
||||
return CardsView(project: OCProject(name: "Test", color: "FF00FF"))
|
||||
}
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -2,6 +2,10 @@
|
||||
"source": "/Users/pradyun/Code/Apps/OnCue/OnCue/View/CardsView.swift",
|
||||
"tables": {
|
||||
"Localizable": [
|
||||
{
|
||||
"comment": "",
|
||||
"key": "Card %lld"
|
||||
},
|
||||
{
|
||||
"comment": "",
|
||||
"key": "Add Item"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,12 @@
|
||||
{
|
||||
"source": "/Users/pradyun/Code/Apps/OnCue/OnCue/View/ProjectSlideshowView.swift",
|
||||
"tables": {},
|
||||
"tables": {
|
||||
"Localizable": [
|
||||
{
|
||||
"comment": "",
|
||||
"key": "%lld"
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,6 +2,6 @@
|
||||
"tables" : {
|
||||
|
||||
},
|
||||
"version" : 1,
|
||||
"source" : "ExtractedAppShortcutsMetadata"
|
||||
"source" : "ExtractedAppShortcutsMetadata",
|
||||
"version" : 1
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -18,7 +18,7 @@
|
||||
</data>
|
||||
<key>Watch/OnCuePresenter Watch App.app/OnCuePresenter Watch App</key>
|
||||
<data>
|
||||
UU684MBd4CvDKaO2k+Nqb1IKFDM=
|
||||
u0mJHZ4rzjazKHh6tGjZitsxViE=
|
||||
</data>
|
||||
<key>Watch/OnCuePresenter Watch App.app/PkgInfo</key>
|
||||
<data>
|
||||
@@ -42,7 +42,7 @@
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
0mSD4rUQJbEGpgPY6sPXJsoOt+uveOCKMQW19f+rb/4=
|
||||
4TG+82Q+EecT8HozPPTEtbrCFMgey/BMr5zspD8I72Q=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Watch/OnCuePresenter Watch App.app/PkgInfo</key>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user