A little update: After some further testing, I have found that this issue doesn't occur in an Xcode Project although it does happen in an iOS App Playground. I am participating in the Swift Student Challenge which requires an app playground to be submitted so I cannot use that workaround for this project.
Post
Replies
Boosts
Views
Activity
I have checked that because I am using an iOS playground I can't use the Observable macro as it seems to be unavailable in an iOS playground. Here is my full code for the SwiftUI view if this helps at all (P.S. I tried adding @State to goalItem but that didn't seem to do anything):
import Charts
enum ChartTimeFrame: String, CaseIterable, Identifiable {
case week, month, sixMonth, year, all
var id: Self { self }
}
struct GoalDetailView: View {
@State var goalItem: GoalItem
@State private var pickerTimeFrame: ChartTimeFrame = ChartTimeFrame.week
@State private var showLogSheet: Bool = false
@State var logScore: Double = 6.0
@State var logNotes: String = ""
@State var logDate: Date = Date.now
@Environment(\.dismiss) var dismiss
var body: some View {
VStack {
Picker("Timeframe", selection: $pickerTimeFrame) {
Text("W").tag(ChartTimeFrame.week)
Text("M").tag(ChartTimeFrame.month)
Text("6M").tag(ChartTimeFrame.sixMonth)
Text("Y").tag(ChartTimeFrame.year)
Text("ALL").tag(ChartTimeFrame.all)
}
.pickerStyle(.segmented)
.padding()
Chart {
let currentDate = Date.now
BarMark (
x: .value("Day", "Today"),
y: .value("Score", goalItem.getLogItemByDate(date: currentDate).score)
)
}
.frame(maxHeight: 225)
.padding()
Spacer()
List {
NavigationLink(destination: GoalDataList(goalItem: goalItem)) {
Text("Show All Data")
}
.navigationTitle(goalItem.name)
.toolbar {
Button("Log") {
showLogSheet.toggle()
}
.sheet(isPresented: $showLogSheet) {
// goal log sheet code
GoalLogSheet(goalItem: goalItem)
}
}
}
.scrollDisabled(true)
}
}
}
Thanks again
No, sorry for the confusion. The issue isn't fixed now. I was just stating that when I copied my code over into my post, I forgot to copy the import SwiftUI statement so I was clarifying that that wasn't the problem. This may be an issue with iOS Playgrounds but I am unsure. Thanks for your help.
I have done a little bug testing and it seems to be an issue with updating the view. If I add data to the chart via the app and then exit the view and reenter, the information will then show. How would I go about updating the view after new information has been added?
After reading a few code snippets, I have found the source of this issue. In my chart, I had this line of code: @State var goalItem: GoalItem, it should instead be @StateObject. After making that change, my code is now working normally.
Hello!
Did you update to macOS Sequoia 15.1 Beta or macOS Sequoia 15? The Apple Intelligence features are only available in macOS Sequoia 15.1 beta. Additionally, do you have an M-series MacBook required for Apple Intelligence?
Best wishes,
Jesse
Edit: Although I am able to Refactor -> Rename the class name and file name later, I am not able to do this when I create the file which is frustrating. Is there a reason for this issue?
I have submitted a bug report in the Feedback Assistant app. Its report number is FB15235341.
Hello,
Apple Intelligence is about 4GB on iPhones so it shouldn't take too long to download. Even if you are on a 5G connection, the cell service in your area could be congested depending on how many people are using the cell tower at the moment. If it isn't, many times when downloads begin on devices, it says it will take a lot longer than it actually will (at least in my experience).
If the issue continues, it is possible it is a bug of some kind because Apple Intelligence is still in the beta stage. You could also try restarting your device or trying it on WiFi.
Best wishes,
Jesse
Does your phone have an always-on display? It is possible that after this update, the always-on display was toggled back on if it was previously off.
This is currently a known issue with iOS. I have also been receiving these alerts on my iPhone. Currently, there is no workaround except for disabling weather notifications and alerts altogether. I expect that Apple will fix this in a future update (or we can just wait until it cools down in California).
You can submit a feature request in Feedback Assistant. You can learn how to submit a request here.
I am experiencing this on iOS 18.1 Beta 5 on my iPhone SE 3rd Generation.