Post

Replies

Boosts

Views

Activity

Reply to Toolbar buttons disappearing when showing a navigation split view as a sheet
Even better workaround: struct DetailsView: View { @Environment(\.dismiss) private var dismiss @Binding var selectedFolder: Folder? var body: some View { VStack { if let folder = selectedFolder { Text(folder.name) } else { Text("No selection") } } .toolbar { ToolbarItem(placement: .cancellationAction) { Button { dismiss() } label: { Text("Cancel") } .id(UUID()) } ToolbarItem(placement: .confirmationAction) { Button { dismiss() } label: { Text("Save") } .id(UUID()) } } } }
Jan ’24
Reply to Toolbar buttons disappearing when showing a navigation split view as a sheet
Found a workaround: struct DetailsView: View { @Environment(\.dismiss) private var dismiss @Binding var selectedFolder: Folder? @Environment(\.scenePhase) private var scenePhase @State var refreshID = UUID() var body: some View { VStack { if let folder = selectedFolder { Text(folder.name) } else { Text("No selection") } } .onChange(of: scenePhase) { _, newPhase in refreshID = UUID() } .toolbar { ToolbarItem(placement: .cancellationAction) { Button { dismiss() } label: { Text("Cancel") } .id(refreshID) } ToolbarItem(placement: .confirmationAction) { Button { dismiss() } label: { Text("Save") } .id(refreshID) } } } } Forcing an ID refresh seems to work but still, this should be fixed.
Jan ’24
Reply to Link family sharing transactions?
Here's our use case: instead of a non-consumable IAP (NCIAP), we went with a non-Renewing Subscription (NRS), which doesn't support Family Sharing for some odd reason? Is this by feature, by the way or just an omission? So in order to "fix" this, we created a free NCIAP, available only to users that purchased the NRS so that they can "upgrade" for free and share their purchase with their family. The issue we have is that the purchaser could potentially get a refund for the NRS. In such case, we can detect that refund and invalidate the free NCIAP on the purchaser devices but not for those who share the purchase. As far as I know, there's no way to link the NCIAP with the purchaser in order to validate the transaction ID and invalidate it in case of a refund. Or, is there some other workaround to achieve this? Thanks!
Dec ’23
Reply to Unable to export Strings Catalog
Hi, sorry for the late reply. Notifications were on for that thread but off in my profile for some reason. And for some odd reason, export/import is now working. I have no idea why or how. The only thing I can think of is either the derived data was is an odd state (even if I cleared it several times) or it occurred because some languages were incomplete or perhaps there was an issue in one of the languages? Now that all languages are complete (manually copied strings over), import and export now works. Odd. I'll file a bug report if the issue occurs again.
Nov ’23
Reply to Unable to build project for localization string extraction
Exporting and importing worked exactly once for me, then it stopped working for no apparent reason. No changes were made in the project settings. Disabling "Localization Export Supported" doesn't help. It seems Xcode has some issue with a subproject that doesn't even include any localization. I'm going to have to spend a week importing hundreds of strings in 10 different languages manually.
Oct ’23
Reply to Sections in SwiftUI Tables?
I could use a List but it's not as powerful as a Table. I want to achieve something similar that you can find with Finder. It's most likely on Apple's list (no pun intended) already but had other priorities. Let's hope for iOS 18 and macOS 15!
Oct ’23