Post

Replies

Boosts

Views

Activity

Reply to Toolbar button is clipped in iOS 26
Welcome to the forum. You place both buttons as topBarLeading. Is it on purpose ? No issue if this second button is topBarTrailing The same occurs if MyButtonStyle is first: it gets clipped. Idem if MyButtonStyle is the only button: And if image is removed, Text is truncated with ellipsis… But setting a frame width for the text (or even better, the HStack) solves the problem: struct MyButtonStyle: ButtonStyle { func makeBody(configuration: Configuration) -> some View { HStack { Image(systemName: "chevron.backward") Text("Back") .frame(width: 80) // <<-- ADDED } } } So looks like that without setting the frame, frame is considered zero (or very small), probably to optimise space ? You could file a bug report.
Topic: UI Frameworks SubTopic: SwiftUI
Aug ’25
Reply to Question about Xcode
Here is the structure of a project with a Watch companion app (it was created several years ago, with Xcode 9 or 10 probably and uses WatchKit and not SwiftUI): I have highlighted the 3 info.plist the first is the usual for iOS app, in iOS section (bundle display name is 'MyApp') Second in myApp Watch (bundle display name is 'MyApp'). The content is: third info.plist in myApp Watch Extension (bundle display name is 'MyApp Watch extension'). Its content is: Note also infoPlist, which contains some localizations, with keys as CFBundleName, NSCameraUsageDescription I don't remember how they were created (I think it was automatic when creating watch companion, but you can probably recreate manually). Hope that helps.
Aug ’25
Reply to Restricting App Installation to Devices Supporting Apple Intelligence Without Triggering Game Mode
Effectively, exploring what could be done with UIRequiredDeviceCapabilities in Info.plist appears the best option. https://stackoverflow.com/questions/10191657/restrict-to-certain-ios-target-devices-for-app-store-submission May be you can find a listed capability that matches approximately with support of Apple Intelligence. But unfortunately, gaming seems to be the only one to discriminate for A17 chip. https://developer.apple.com/support/required-device-capabilities/
Aug ’25
Reply to why no "fold all" option?
My understanding is it is because folding is multi level. Unfold is easy: everything that was folded, whatever level, will unfold. But folding all: what you you keep ? Just very top level, at class level, where you see nothing more ? At the first level func ? So you should have to specify the level to make it any use. So, imagine what should be the result of a fold all and you may find it is impracticable.
Aug ’25
Reply to @State variable returns empty despite being set in .onAppear function
Finally, to give you in depth explanation about the use of @State in DataView: https://forums.swift.org/t/im-so-confused-why-state-var-inside-a-view-do-not-change-when-you-call-a-method-on-this-view-from-some-outer-view/31944/7 And you can test with a Binding: struct DataView2: View { @Binding var datum: Data2 var body: some View { Text("DataView \(datum.str)") } } calling it with DataView2(datum: $data[index]) Good continuation.
Topic: Design SubTopic: General Tags:
Aug ’25
Reply to @State variable returns empty despite being set in .onAppear function
Finally, to give you in depth explanation about the use of @State in DataView: https://forums.swift.org/t/im-so-confused-why-state-var-inside-a-view-do-not-change-when-you-call-a-method-on-this-view-from-some-outer-view/31944/7 And you can test with a Binding: struct DataView2: View { @Binding var datum: Data2 var body: some View { Text("DataView \(datum.str)") } } calling it with DataView2(datum: $data[index]) Good continuation.
Topic: Design SubTopic: General Tags:
Aug ’25
Reply to @State variable returns empty despite being set in .onAppear function
This cannot compile. data is a constant that you try to modify. let data = try Data(contentsOf: url) let jsonDecoded = try JSONDecoder().decode([Data2].self, from: data) data = jsonDecoded The code I sent was: let dataRead = try Data(contentsOf: url) let jsonDecoded = try JSONDecoder().decode([Data2].self, from: dataRead) data = jsonDecoded With these changes, your code works OK. Could you show the DataView code ?
Topic: Design SubTopic: General Tags:
Aug ’25
Reply to Toolbar button is clipped in iOS 26
Welcome to the forum. You place both buttons as topBarLeading. Is it on purpose ? No issue if this second button is topBarTrailing The same occurs if MyButtonStyle is first: it gets clipped. Idem if MyButtonStyle is the only button: And if image is removed, Text is truncated with ellipsis… But setting a frame width for the text (or even better, the HStack) solves the problem: struct MyButtonStyle: ButtonStyle { func makeBody(configuration: Configuration) -> some View { HStack { Image(systemName: "chevron.backward") Text("Back") .frame(width: 80) // <<-- ADDED } } } So looks like that without setting the frame, frame is considered zero (or very small), probably to optimise space ? You could file a bug report.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Aug ’25
Reply to Review is stuck in "In Review" status over than a day — what should I do?
It’s really important for me that the review does not get delayed further. Unfortunately, the forum is not the place to get it accelerated. By experience, the time "in review" can vary largely, from 1 hour to more than a day. I noticed that if there was a previous issue with submission, it can take a bit longer.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Question about Xcode
Here is the structure of a project with a Watch companion app (it was created several years ago, with Xcode 9 or 10 probably and uses WatchKit and not SwiftUI): I have highlighted the 3 info.plist the first is the usual for iOS app, in iOS section (bundle display name is 'MyApp') Second in myApp Watch (bundle display name is 'MyApp'). The content is: third info.plist in myApp Watch Extension (bundle display name is 'MyApp Watch extension'). Its content is: Note also infoPlist, which contains some localizations, with keys as CFBundleName, NSCameraUsageDescription I don't remember how they were created (I think it was automatic when creating watch companion, but you can probably recreate manually). Hope that helps.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Restricting App Installation to Devices Supporting Apple Intelligence Without Triggering Game Mode
Effectively, exploring what could be done with UIRequiredDeviceCapabilities in Info.plist appears the best option. https://stackoverflow.com/questions/10191657/restrict-to-certain-ios-target-devices-for-app-store-submission May be you can find a listed capability that matches approximately with support of Apple Intelligence. But unfortunately, gaming seems to be the only one to discriminate for A17 chip. https://developer.apple.com/support/required-device-capabilities/
Replies
Boosts
Views
Activity
Aug ’25
Reply to Juicy Defend - Fruit vs Robot app "waiting for review" for +6 days
Welcome to the forum. Until you receive a request from reviewer, there is nothing to do. What type of app is it ? Does it include in app purchase ? Is it a paying app ? You should also note that this forum is not an official channel to Apple, even though some Apple's engineer contribute to it. So you'd better contact support.
Replies
Boosts
Views
Activity
Aug ’25
Reply to why no "fold all" option?
My understanding is it is because folding is multi level. Unfold is easy: everything that was folded, whatever level, will unfold. But folding all: what you you keep ? Just very top level, at class level, where you see nothing more ? At the first level func ? So you should have to specify the level to make it any use. So, imagine what should be the result of a fold all and you may find it is impracticable.
Replies
Boosts
Views
Activity
Aug ’25
Reply to @State variable returns empty despite being set in .onAppear function
Finally, to give you in depth explanation about the use of @State in DataView: https://forums.swift.org/t/im-so-confused-why-state-var-inside-a-view-do-not-change-when-you-call-a-method-on-this-view-from-some-outer-view/31944/7 And you can test with a Binding: struct DataView2: View { @Binding var datum: Data2 var body: some View { Text("DataView \(datum.str)") } } calling it with DataView2(datum: $data[index]) Good continuation.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to @State variable returns empty despite being set in .onAppear function
Finally, to give you in depth explanation about the use of @State in DataView: https://forums.swift.org/t/im-so-confused-why-state-var-inside-a-view-do-not-change-when-you-call-a-method-on-this-view-from-some-outer-view/31944/7 And you can test with a Binding: struct DataView2: View { @Binding var datum: Data2 var body: some View { Text("DataView \(datum.str)") } } calling it with DataView2(datum: $data[index]) Good continuation.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to @State variable returns empty despite being set in .onAppear function
This cannot compile. data is a constant that you try to modify. let data = try Data(contentsOf: url) let jsonDecoded = try JSONDecoder().decode([Data2].self, from: data) data = jsonDecoded The code I sent was: let dataRead = try Data(contentsOf: url) let jsonDecoded = try JSONDecoder().decode([Data2].self, from: dataRead) data = jsonDecoded With these changes, your code works OK. Could you show the DataView code ?
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25