Post

Replies

Boosts

Views

Activity

Reply to Will FlatBuffers API be made available?
It's hard to specify requirements when there is no more information available. I current use Protobufs, but if Apple has a built in implementation of FlatBuffers that is available it makes more sense to use it unless there is something lacking in the implementation. I will file an enhancement request with what little information I have. (FB14055509) btw, why make such a big deal about FlatBuffers in the session video if its strictly an internal implementation detail? If there was no intent to make it available to others it seems an irrelevant to the primary content of the session video.
Topic: App & System Services SubTopic: General Tags:
Jun ’24
Reply to New Swiftui Text timer not counting down
I am trying to use the following in a widget of mine that sometimes needs to show seconds counting down. Text(.now, format:.timer(countingDownIn: Date.now..<Date.now.addingTimeInterval(55), showsHours: false, maxFieldCount: 1)) If I sent maxFieldCount to 2 I see minutes and seconds ("55:03") but if I set it to 1 I see "55 seconds" instead. I expected to see something like "03" Oh, I also see the it's not counting down as previously mentioned. I was trying to use this instead, but cannot get rid of the minutes so I see values like "00:55" Text(timerInterval: Date.now...Date(timeInterval: 120, since: .now), countsDown: true, showsHours: false) I am trying these since my original widget code was using a timeline that would cause an update every second (if seconds needed to be displayed) but that caused flashing especially if the contrast between background and foreground colors is high.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24
Reply to DiffableDataSource failing to reconfigure cell
Sorry for the lack of additional details, but boss says I can't post any IP :( I hear what you are saying regarding what could happen in your Widgets example. We should not be in that situation, but I will triple check with our data folks to make sure the id we are using is not changing. However, if you look at the following snippet you can see that I check to make sure the itemIdentifiers array contains the item immediately before calling reconfigureItems() method. I did verify that we only operate on the items when on the main queue so there should be no threading issues. I also see the same rare crash when I was using the reloadItems() method. I will continue to scratch my head to see what is going on, but it sounds like you are saying there probably is not a problem with reconfigureItems(). Would that be accurate? var snapshot = dataSource.snapshot() if snapshot.itemIdentifiers.contains(leadModel) { snapshot.reconfigureItems([leadModel]) dataSource.apply(snapshot, animatingDifferences: true) }
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’23
Reply to SwiftData Configurations for Private and Public CloudKit
Can someone from Apple say whether or not SwiftData will support private, public, and shared databases when it goes live with iOS 17? Or any information regarding when it will have support in the future? I don't see the value in migrating "some" of my CoreData code to SwiftData as it just means I have two different APIs to worry about, and others on my team will have to learn both in order to support persistence. Thanks.
Aug ’23
Reply to Xcode 26.2 Not Remembering Coding Intelligence Model Provider
Xcode 26.3 solved the issue.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Xcode 26.2 Not Remembering Coding Intelligence Model Provider
I forgot to mention I did file a radar, FB21363738
Replies
Boosts
Views
Activity
Dec ’25
Reply to Xcode 26.2 Not Remembering Coding Intelligence Model Provider
Xcode downloaded by Apple Developer site. Xcode 26.2 (17C52) The issue happens constantly - whenever I exit Xcode and re-open it later the new Model Provider I created is gone.
Replies
Boosts
Views
Activity
Dec ’25
Reply to SwiftUI `onOpenURL` lacks `referrerURL` and `annotation` present in NSUserActivity
Me too! FB15107497
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Will FlatBuffers API be made available?
It's hard to specify requirements when there is no more information available. I current use Protobufs, but if Apple has a built in implementation of FlatBuffers that is available it makes more sense to use it unless there is something lacking in the implementation. I will file an enhancement request with what little information I have. (FB14055509) btw, why make such a big deal about FlatBuffers in the session video if its strictly an internal implementation detail? If there was no intent to make it available to others it seems an irrelevant to the primary content of the session video.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to New Swiftui Text timer not counting down
I am trying to use the following in a widget of mine that sometimes needs to show seconds counting down. Text(.now, format:.timer(countingDownIn: Date.now..<Date.now.addingTimeInterval(55), showsHours: false, maxFieldCount: 1)) If I sent maxFieldCount to 2 I see minutes and seconds ("55:03") but if I set it to 1 I see "55 seconds" instead. I expected to see something like "03" Oh, I also see the it's not counting down as previously mentioned. I was trying to use this instead, but cannot get rid of the minutes so I see values like "00:55" Text(timerInterval: Date.now...Date(timeInterval: 120, since: .now), countsDown: true, showsHours: false) I am trying these since my original widget code was using a timeline that would cause an update every second (if seconds needed to be displayed) but that caused flashing especially if the contrast between background and foreground colors is high.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to App Store Mac Catalyst warning; asking for a minimum version of macOS that doesn't exist
I've checked all 3rd parties dependencies and none of them have changed. I am wondering if its related to us recently bumping up the minimum iOS version from 15 to 16.4, like as if maybe it implicitly bumped the version of Catalyst?
Replies
Boosts
Views
Activity
May ’24
Reply to App Store Mac Catalyst warning; asking for a minimum version of macOS that doesn't exist
We've starting get this warning all of a sudden a couple of weeks ago as well. It says we start 13.0, but it claims it really requires 13.3 -- have not been able to determine what changed on our end to prompt such a new warning.
Replies
Boosts
Views
Activity
May ’24
Reply to What role/permissions/privileges needed to get emails regarding app review submissions
I heard nothing from Apple yet - luckily I was able to talk the right person to make me and admin which gets everything.
Replies
Boosts
Views
Activity
Apr ’24
Reply to How to find usages of Reason Required API?
Along the same lines, is there a correct location in a Swift Package where the PrivacyInfo.xcprivacy should go so that it can be read correctly Apple? I am seeing it in a few different locations after a Quick Look at some packages.
Replies
Boosts
Views
Activity
Mar ’24
Reply to How to find usages of Reason Required API?
That is certainly what most people will do. So sad... Kind of defeats the purpose. Thanks for the link to your handy-dandy tool
Replies
Boosts
Views
Activity
Mar ’24
Reply to UIButton image not honoring dynamic type changes
Thanks. I can't remember the details but I did eventually figure it out. My original post is 3 years old and I have not figured out how to delete/close a post.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to DiffableDataSource failing to reconfigure cell
Sorry for the lack of additional details, but boss says I can't post any IP :( I hear what you are saying regarding what could happen in your Widgets example. We should not be in that situation, but I will triple check with our data folks to make sure the id we are using is not changing. However, if you look at the following snippet you can see that I check to make sure the itemIdentifiers array contains the item immediately before calling reconfigureItems() method. I did verify that we only operate on the items when on the main queue so there should be no threading issues. I also see the same rare crash when I was using the reloadItems() method. I will continue to scratch my head to see what is going on, but it sounds like you are saying there probably is not a problem with reconfigureItems(). Would that be accurate? var snapshot = dataSource.snapshot() if snapshot.itemIdentifiers.contains(leadModel) { snapshot.reconfigureItems([leadModel]) dataSource.apply(snapshot, animatingDifferences: true) }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to SwiftData Configurations for Private and Public CloudKit
Can someone from Apple say whether or not SwiftData will support private, public, and shared databases when it goes live with iOS 17? Or any information regarding when it will have support in the future? I don't see the value in migrating "some" of my CoreData code to SwiftData as it just means I have two different APIs to worry about, and others on my team will have to learn both in order to support persistence. Thanks.
Replies
Boosts
Views
Activity
Aug ’23
Reply to New ColorResource and ImageResource not available in Swift package
Update: Just grabbed Xcode 15 beta 5 and it does kind of work. I can at least get the asset symbols generated for the package, so UIColor(resource: .myblue) now works inside the package. I still cannot use UIColor.myblue from inside the package. Progress!
Replies
Boosts
Views
Activity
Jul ’23