Lunch Card is almost finished, though there's one major part that will need to be addressed for it to go out of development.
As from last threads, I've implemented the Cards system, made it so you can change colors, include multiple cards, and the cards stay...until you quit the app. Restarting the app (dismissing it in App Switcher and opening it back up) doesn't save all your cards. That would be a major inconvenience, as it'd be more like an App Clip than an actual App.
I've considered Core Data, writing to a text file, etc., but (1) I can't decide which one would be more convenient and (2) I don't know how I would implement it (ex. CoreData would be hard to implement especially after almost finishing it without).
Please tell me if I need to provide more code than I have in previous threads. Here they are from most recent to earliest:
The original How to pass data... post code is pretty outdated, so I would refer to the more recent threads.
Homestretch...!
Note: CardsInfo.swift and SheetInfo.swift merged to make Info.swift:
As from last threads, I've implemented the Cards system, made it so you can change colors, include multiple cards, and the cards stay...until you quit the app. Restarting the app (dismissing it in App Switcher and opening it back up) doesn't save all your cards. That would be a major inconvenience, as it'd be more like an App Clip than an actual App.
I've considered Core Data, writing to a text file, etc., but (1) I can't decide which one would be more convenient and (2) I don't know how I would implement it (ex. CoreData would be hard to implement especially after almost finishing it without).
Please tell me if I need to provide more code than I have in previous threads. Here they are from most recent to earliest:
The original How to pass data... post code is pretty outdated, so I would refer to the more recent threads.
Homestretch...!
Note: CardsInfo.swift and SheetInfo.swift merged to make Info.swift:
Code Block // // Info.swift // Lunch Card (iOS) // // Created by Joshua Srery on 12/21/20. // Additional code by OOPer on Apple Developer Forums // import Foundation struct CardInfo: Identifiable { var name: String = "" var id: String = "" var cname: String = "" var code: String = "" } class CardsInfo: ObservableObject { @Published var newCard: CardInfo = CardInfo() @Published var cards: [CardInfo] = [] func add() { cards.append(newCard) } } class SheetInfo: ObservableObject { @Published var showSheetView = false }
I realize that this is the same situation I dealt with in my original post...I’ll start a new thread
Edit: New thread
Edit: New thread