What exactly do you mean by application name token? Here is an example of my current implementation.
struct CreateExercise: AppIntent {
static var title: LocalizedStringResource = "Create Exercise"
static var parameterSummary: some ParameterSummary {
Summary("Create \(\.$name)")
}
@Parameter(title: "Exercise Name")
var name: String
func perform() async throws -> some IntentResult {
async let exercises = ExerciseQuery().suggestedEntities()
var newExercise: FEExercise?
if let user = Auth.auth().currentUser {
let creator = ExerciseCreator(uid: user.uid)
let id = try await creator.addExercise(name: name, existingExercises: exercises)
newExercise = try await ExerciseQuery().entities(for: [id.documentID]).first
return .result(value: newExercise)
}
return .result(value: newExercise)
}
}
@available(iOS 16.0, *)
struct SetgraphShortcuts: AppShortcutsProvider {
static var shortcutTileColor: ShortcutTileColor = .lime
static var appShortcuts: [AppShortcut] = [
AppShortcut(intent: RecordSet(), phrases: ["Record Set in Setgraph", "Record Set", "Log Set", "Record a Set", "Log a Set"], systemImageName: "dumbbell"),
AppShortcut(intent: CreateExercise(), phrases: ["Create Exercise in Setgraph", "Create Exercise", "New Exercise", "Create a Exercise", "Create a New Exercise"], systemImageName: "dumbbell")
]
}
Post
Replies
Boosts
Views
Activity
Here is the build log.
Here is the build log.
I'm also facing this issue. I didn't know the TabView was what was causing it. Thought I was going crazy. @DTS Engineer When do you think this could be fixed?
Same issue for me. This is the first time I've seen this.
Committing and pushing through the terminal worked. After though, there was one more file that showed up in source control (in Xcode) with "!" next to it. I was done after I committed that one. Maybe that was what was stopping Xcode. If that was the problem, Xcode should make it more clear.
I thought it had something to do with me having so many files. But I was able to commit a batch of like ~1k files in Xcode.