Post

Replies

Boosts

Views

Activity

Reply to File Export from iOS - eventually import too
When I rename a file I can't seem to change the extension. For example: when I select the file and change to MyFile.csv - it writes MyFile.csv.txt is there any way to get rid of that .txt extension other than make the user delete it? I mean they could edit from .txt to .csv and macOS asks if they are sure - but I'd like to remove that step. That might be worthy of a feedback...
Topic: UI Frameworks SubTopic: SwiftUI
5h
Reply to File Export from iOS - eventually import too
It took me a little bit to realize that tapping on the "text" in the Share to Files interface provided a way to change the file name - when I share one item. In some online tutorials there was a way to set the full filename (like Export.csv) - but maybe that's only when writing to the app's file directory. Would you agree? I can't really think of a clean way to be able to name 2 files in that interface - so I fully understand why that's not available - and therefore I don't plan to proceed to a feedback for this. I should be able to combine elements so that I'm only sharing 1 item in for my original request. Could you clarify how DTS works now relative to these questions answered here on the forum? Since I did ask for a DTS - does this count as one? It doesn't matter to me right now because my dev account will renew soon. Thanks so much!
Topic: UI Frameworks SubTopic: SwiftUI
10h
Reply to File Export from iOS - eventually import too
Thanks for these answers, but I'm afraid I need a bit more help. How do you go about presenting the activityViewController? Could you show this in a small example app? I had previously written this and it does share but it creates 2 files, and doesn't present any way to rename the file. import SwiftUI import UIKit struct ContentView: View { @State private var showShareSheet = false @State private var textItem1 = "" @State private var textItem2 = "" // @State private var shareItems: [Any] = [ // "Check out this file!", // URL(fileURLWithPath: FileManager.documentsDirectory.path()) // Replace with a real file URL // ] var shareItems: [Any] { [ textItem1, textItem2 // URL(fileURLWithPath: "TinySavedItems") ] } var body: some View { VStack { TextField("enter text", text: $textItem1) .padding() TextField("enter text", text: $textItem2) .padding() Button("Share", systemImage: "square.and.arrow.up") { showShareSheet = true } .sheet(isPresented: $showShareSheet) { ActivityViewController(activityItems: shareItems) } } } struct ActivityViewController: UIViewControllerRepresentable { // Items to share (e.g., text, URLs, files) let activityItems: [Any] // Custom activities (optional) let applicationActivities: [UIActivity]? = nil // Completion handler (optional) @Environment(\.dismiss) var dismiss // Create the UIActivityViewController func makeUIViewController(context: Context) -> UIActivityViewController { let vc = UIActivityViewController( activityItems: activityItems, applicationActivities: applicationActivities ) vc.excludedActivityTypes = [ .postToFacebook, .postToTwitter ] // Handle completion (e.g., dismiss after sharing) vc.completionWithItemsHandler = { _, success, _, error in if success || error != nil { dismiss() // Close the sheet after sharing } } return vc } func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {} //doesn't do anything but is required } }
Topic: UI Frameworks SubTopic: SwiftUI
2d
Reply to Widget with Core Data guidance
Yes, I do believe a widget similar to the clock widget would definitely serve my purposes. And I see that widget works on iOS 15 and 18+ which is also what I want Is there an example app that Apple has that shows how to create that list within the widget? I may need to read through more doc's to learn how to do this. Thanks so much for your answer!
Oct ’25
Reply to Widget with Core Data guidance
One idea I thought of would be to add a flag to my CoreData that allows one date to be selected as "widget ready" then the creation of the widget could pick that up. I'm not sure this is "better" than just creating a iOS 16+ intent that allows a date & description entry as the widget is being added. One feature that would be really useful would be if the same date is selected as one that's in the database already, then the description text from the database could be offered as a default. I have no idea how I'd go about that but it sounds useful.
Sep ’25
Reply to Icon Composer questions...
When I went back to this - it doesn't seem like the .icon ever never worked at all. For now exporting the 3 files and putting them in the 3 spots in Xcode works for me. When I go to customize in the simulator (I don't have a device on iOS26!) it does pick up the right icons. Looks like my attempt above to match up file names failed, trying again. Icon Composer button = IC file name = Xcode name Default =*-iOS-Default-1024x1024(at)1x.png = Any Appearance Dark =*-iOS-Dark-1024x1024(at)1x.png =Dark Mono=*-iOS-ClearLight-1024x1024(at)1x.png=Tinted
Jun ’25
Reply to Icon Composer questions...
OK I found out how to do it - but it doesn't fully work. When you save the file in Icon Composer - THAT is the .icon file! 😲seems obvious after you know that. Don't drag it into the Asset Catalog - like you have for years and years. Just drag it into where your other files are. It will turn into an .icon. Unfortunately, All I see is the main icon. The Dark one is definitely NOT what I saved.
Jun ’25
Reply to Icon Composer questions...
They said Xcode will just read the .icon file so I assume this is only on macOS 26. I'd love to hear a confirmation of that - I'm not going to load Beta macOS. Beta Xcode was a big enough step for me. Someone asked in the group lab if the .icon files were back portable. The answer was "Yes" but I think what they meant was you can use the output of the Icon Composer back in older Xcode because they are just PNG or SVG files. (whatever you imported) I seem to remember never coming back from deleting the AppIcon asset. It's in the back of my mind as a "Bad Idea"! I think I created a new project and copied all my files back in. Probably I didn't have a recent enough commit. Xcode 26 Icon Composer Any Appearance Default Dark Dark Tinted Mono
Jun ’25
Reply to Icon Composer questions...
I figured it out: click on the document icon at the top of the right sidebar, then under platforms turn on iOS only. ( I turned off watchOS too) Then in the Export (⌘⇧E) pick iOS and change the Scale from 2x to 1x (and hit return - or it won't take effect) Then hit Export and pick your name & location. Do this again for the other 2 icons. Drag them individually into Xcode. Still doesn't answer why I don't get a .icon file. Maybe this only works on macOS 26. I'm still on macOS 15. You can store individual art and setting in each of the icons which is great. I don't see how to get the simulator to show tinted icons but I do see it switching to my Dark one.
Jun ’25
Reply to dual predicate search using CoreData
I guess my original question was answered by @deeje - I'd accept that answer but NSCompoundPredicate was spelled wrong🤓 https://stackoverflow.com/questions/31708540/swift-combining-predicates is useful reading on the topic. My follow-on question of how exactly to do that is mostly answered by "the data you compare must have the same type". My desire to add this functionality is now lower than my desire to figure out how to get SwiftUI to do this in the spot I need it. The basic Int(dateVariable) was met with some compiler error I didn't dig into.
Mar ’25
Reply to dual predicate search using CoreData
Thanks for the quick answer! Is "dateFromText" some sort of function somewhere? The compiler says it's out of scope and I don't find it in searches. I don't want to type the entire date in the search so the == seems not in the direction I want to go. I likely need to read more up on predicates before I'm ready to create this feature. I was thinking that I could type any character or word in my list and it would find that. Like if any of the dates were 2022 - I could type 22 and it would find that. It seems like I'd have to convert the date back to text to do that. Then there's the problematic issue with date formatting where a search of 22 might find the 22nd of a month in addition to the year and then there's numeric months vs. spelled out in long format...
Mar ’25
Reply to File Export from iOS - eventually import too
When I rename a file I can't seem to change the extension. For example: when I select the file and change to MyFile.csv - it writes MyFile.csv.txt is there any way to get rid of that .txt extension other than make the user delete it? I mean they could edit from .txt to .csv and macOS asks if they are sure - but I'd like to remove that step. That might be worthy of a feedback...
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
5h
Reply to File Export from iOS - eventually import too
It took me a little bit to realize that tapping on the "text" in the Share to Files interface provided a way to change the file name - when I share one item. In some online tutorials there was a way to set the full filename (like Export.csv) - but maybe that's only when writing to the app's file directory. Would you agree? I can't really think of a clean way to be able to name 2 files in that interface - so I fully understand why that's not available - and therefore I don't plan to proceed to a feedback for this. I should be able to combine elements so that I'm only sharing 1 item in for my original request. Could you clarify how DTS works now relative to these questions answered here on the forum? Since I did ask for a DTS - does this count as one? It doesn't matter to me right now because my dev account will renew soon. Thanks so much!
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
10h
Reply to File Export from iOS - eventually import too
Thanks for these answers, but I'm afraid I need a bit more help. How do you go about presenting the activityViewController? Could you show this in a small example app? I had previously written this and it does share but it creates 2 files, and doesn't present any way to rename the file. import SwiftUI import UIKit struct ContentView: View { @State private var showShareSheet = false @State private var textItem1 = "" @State private var textItem2 = "" // @State private var shareItems: [Any] = [ // "Check out this file!", // URL(fileURLWithPath: FileManager.documentsDirectory.path()) // Replace with a real file URL // ] var shareItems: [Any] { [ textItem1, textItem2 // URL(fileURLWithPath: "TinySavedItems") ] } var body: some View { VStack { TextField("enter text", text: $textItem1) .padding() TextField("enter text", text: $textItem2) .padding() Button("Share", systemImage: "square.and.arrow.up") { showShareSheet = true } .sheet(isPresented: $showShareSheet) { ActivityViewController(activityItems: shareItems) } } } struct ActivityViewController: UIViewControllerRepresentable { // Items to share (e.g., text, URLs, files) let activityItems: [Any] // Custom activities (optional) let applicationActivities: [UIActivity]? = nil // Completion handler (optional) @Environment(\.dismiss) var dismiss // Create the UIActivityViewController func makeUIViewController(context: Context) -> UIActivityViewController { let vc = UIActivityViewController( activityItems: activityItems, applicationActivities: applicationActivities ) vc.excludedActivityTypes = [ .postToFacebook, .postToTwitter ] // Handle completion (e.g., dismiss after sharing) vc.completionWithItemsHandler = { _, success, _, error in if success || error != nil { dismiss() // Close the sheet after sharing } } return vc } func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {} //doesn't do anything but is required } }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
2d
Reply to Cannot Update Age Rating
Does this age reporting requirement apply to TestFlight apps?
Replies
Boosts
Views
Activity
Dec ’25
Reply to Why is SimulatorTrampoline taking TONS of memory?
I did find that iStat menus has a setting to "Combine Processes" so it's creating sort of a compilation that explains why ActivityMonitor is different. Still, if all these simulator processes add up to 10GB it still seems like a lot.
Replies
Boosts
Views
Activity
Nov ’25
Reply to Widget with Core Data guidance
Yes, I do believe a widget similar to the clock widget would definitely serve my purposes. And I see that widget works on iOS 15 and 18+ which is also what I want Is there an example app that Apple has that shows how to create that list within the widget? I may need to read through more doc's to learn how to do this. Thanks so much for your answer!
Replies
Boosts
Views
Activity
Oct ’25
Reply to Widget with Core Data guidance
One idea I thought of would be to add a flag to my CoreData that allows one date to be selected as "widget ready" then the creation of the widget could pick that up. I'm not sure this is "better" than just creating a iOS 16+ intent that allows a date & description entry as the widget is being added. One feature that would be really useful would be if the same date is selected as one that's in the database already, then the description text from the database could be offered as a default. I have no idea how I'd go about that but it sounds useful.
Replies
Boosts
Views
Activity
Sep ’25
Reply to Icon Composer?
Oh look - it's back now in Xcode26 😏 Maybe this post could be removed by a moderator - to help keep people from finding it a good part of a decade later 🙏
Replies
Boosts
Views
Activity
Jun ’25
Reply to I can't log-in to the forums from the forums page!
My latest trick is to NOT use Safari when unlocking my developer account. Use a different browser - when I tried Chrome I get different options most times at the same points in the login.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Icon Composer questions...
When I went back to this - it doesn't seem like the .icon ever never worked at all. For now exporting the 3 files and putting them in the 3 spots in Xcode works for me. When I go to customize in the simulator (I don't have a device on iOS26!) it does pick up the right icons. Looks like my attempt above to match up file names failed, trying again. Icon Composer button = IC file name = Xcode name Default =*-iOS-Default-1024x1024(at)1x.png = Any Appearance Dark =*-iOS-Dark-1024x1024(at)1x.png =Dark Mono=*-iOS-ClearLight-1024x1024(at)1x.png=Tinted
Replies
Boosts
Views
Activity
Jun ’25
Reply to Icon Composer questions...
OK I found out how to do it - but it doesn't fully work. When you save the file in Icon Composer - THAT is the .icon file! 😲seems obvious after you know that. Don't drag it into the Asset Catalog - like you have for years and years. Just drag it into where your other files are. It will turn into an .icon. Unfortunately, All I see is the main icon. The Dark one is definitely NOT what I saved.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Icon Composer questions...
They said Xcode will just read the .icon file so I assume this is only on macOS 26. I'd love to hear a confirmation of that - I'm not going to load Beta macOS. Beta Xcode was a big enough step for me. Someone asked in the group lab if the .icon files were back portable. The answer was "Yes" but I think what they meant was you can use the output of the Icon Composer back in older Xcode because they are just PNG or SVG files. (whatever you imported) I seem to remember never coming back from deleting the AppIcon asset. It's in the back of my mind as a "Bad Idea"! I think I created a new project and copied all my files back in. Probably I didn't have a recent enough commit. Xcode 26 Icon Composer Any Appearance Default Dark Dark Tinted Mono
Replies
Boosts
Views
Activity
Jun ’25
Reply to Icon Composer questions...
I figured it out: click on the document icon at the top of the right sidebar, then under platforms turn on iOS only. ( I turned off watchOS too) Then in the Export (⌘⇧E) pick iOS and change the Scale from 2x to 1x (and hit return - or it won't take effect) Then hit Export and pick your name & location. Do this again for the other 2 icons. Drag them individually into Xcode. Still doesn't answer why I don't get a .icon file. Maybe this only works on macOS 26. I'm still on macOS 15. You can store individual art and setting in each of the icons which is great. I don't see how to get the simulator to show tinted icons but I do see it switching to my Dark one.
Replies
Boosts
Views
Activity
Jun ’25
Reply to dual predicate search using CoreData
I guess my original question was answered by @deeje - I'd accept that answer but NSCompoundPredicate was spelled wrong🤓 https://stackoverflow.com/questions/31708540/swift-combining-predicates is useful reading on the topic. My follow-on question of how exactly to do that is mostly answered by "the data you compare must have the same type". My desire to add this functionality is now lower than my desire to figure out how to get SwiftUI to do this in the spot I need it. The basic Int(dateVariable) was met with some compiler error I didn't dig into.
Replies
Boosts
Views
Activity
Mar ’25
Reply to dual predicate search using CoreData
Thanks for the quick answer! Is "dateFromText" some sort of function somewhere? The compiler says it's out of scope and I don't find it in searches. I don't want to type the entire date in the search so the == seems not in the direction I want to go. I likely need to read more up on predicates before I'm ready to create this feature. I was thinking that I could type any character or word in my list and it would find that. Like if any of the dates were 2022 - I could type 22 and it would find that. It seems like I'd have to convert the date back to text to do that. Then there's the problematic issue with date formatting where a search of 22 might find the 22nd of a month in addition to the year and then there's numeric months vs. spelled out in long format...
Replies
Boosts
Views
Activity
Mar ’25