Post

Replies

Boosts

Views

Activity

Reply to How to use the new Text timer formats?
Hi, DTS Engineer, That works, thank you, but it still needs improvement. This Text can only be one line in my View, and it's currently showing "21 weeks, 5 da...". I need it to say "21w 5d". AFAICS the string is computed in the Text then displayed. Is there a way of intercepting this string and formatting it as I need? Without a simple way of formatting the output this will probably involve a lot of stupid string replacements to replace " week" and " weeks" with "w", and then I have to handle it for other languages, too. And I have to remove that comma. As I mentioned above, we really need to be able to format this sort of string. There doesn't seem to be any reason why we are forced to use this one particular format.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
Reply to Incorrect JSON Format with JSONEncoder
Can you show us what Response is? That's what you're decoding the JSON into. Also, can you change this to something else? I don't like the re-use of the data variable, and it might be an issue later: guard let data = data else { return } // Maybe: guard let jsonData = data else { return } If not, it's good to clear it up anyway :)
Topic: App & System Services SubTopic: General Tags:
Jul ’24
Reply to Will this app's plan pass the review?
What makes your app any different to, say, just using a Maps app that has those locations listed? When I search Apple Maps for restaurants, it shows restaurants near me. Would it do the same thing your app wants to do? If your "concept cafés" don't show up in Apple Maps, it's likely that Apple objects to that sort of content, and they wouldn't allow an app. Any app has to have some functional use to its users. If you're just surfacing a list of cafés, then it offers nothing new.
Jul ’24
Reply to tab icon in iPadOS 18 tab bar
I think this is the style of the new tab bar. Icons are shown if your app runs on an iPhone - as you've seen - and also if you have a sidebar. If you use the sidebarAdaptable tab view style, like this: TabView { // Some tabs } .tabViewStyle(.sidebarAdaptable) ... that shows the icons when the user taps to move the tab bar to the side bar, so it doesn't fix your issue. I don't think there is a fix for your issue. I would recommend you raise a Feedback Report and make a suggestion to have icons shown in the tab bar. You can do so here: https://www.apple.com/feedback/ then post the FB number here.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’24
Reply to Problem with display brightness on iOS 18 beta 4
The Developer Forums aren't really the right place to raise bugs in a new version of an OS. Apple's engineers aren't reading through these pages waiting to see if anyone's found a bug before they fix it. These forums are for third-party developers writing apps for Apple's platforms to discuss issues with their code. You need to raise each issue you find separately at https://www.apple.com/feedback/ You can post the FB numbers here if you want, so that others can link to them.
Jul ’24
Reply to NavigationStack path out of sync with UI
I wonder if it's anything to do with the description in the developer documentation: Calling this method may invalidate all saved indices of this collection. Do not rely on a previously stored index value after altering a collection with any operation that can change its length. Would path.remove(at: path.count - 1) be better?
Topic: UI Frameworks SubTopic: SwiftUI
Jul ’24
Reply to iOS 18 beta 4 loss of network connection
Did you take a local backup (i.e. one stored on your Mac, not iCloud) before you installed the iOS 18 beta? If so, downgrading your iPhone to iOS 17.x should allow you to restore from that local backup. If you only backed up to iCloud, when you go to restore from the backup, doesn't it list the available backups? One of them should be the one from before you installed iOS 18. Can you maybe show us a screenshot of what options you're being offered?
Jul ’24