Post

Replies

Boosts

Views

Created

UICollectionViewCompositionalLayout + paging + rotation == not handled correctly
Am trying to get away from using UIPageViewController for a number of reasons, not the least of which is several perennial crashes that happen occasionally that I've never been able to reproduce myself but happen enough in the wild to be noticeable. I have high hopes for the new UICollectionViewCompositionalLayout in iOS 13 SDK; have worked around the safeArea issue. However, I cannot find a way to workaround or fix the problem that occurs when I rotate the device. Before rotation things are great, paging works, etc. Then when I do rotate the device the collectionView is scrolled such that I see half of two separate cells. Basically the current cell is not handled correctly. Any ideas or suggestions? Below is my layout for reference. Its as basic as one can get.     private func createLayout() -> UICollectionViewLayout {         let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))         let item = NSCollectionLayoutItem(layoutSize: itemSize)         let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))         let group = NSCollectionLayoutGroup.vertical(layoutSize: groupSize, subitems: [item])         let section = NSCollectionLayoutSection(group: group)         section.orthogonalScrollingBehavior = .groupPaging         let layout = UICollectionViewCompositionalLayout(section: section)         return layout     } }
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
1.1k
Oct ’20
supplementaryViewProvider only getting called for first section
I have a UICollectionViewDiffableDataSource that has its supplementaryViewProvider property set to a closure that returns a header view for the cell. The closure is only getting called for the first section of the collectionView regardless of the number of sections there are, each of which do contain cells. I am using Xcode 13 beta 5.
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
1.3k
Sep ’21
iOS 15 broke Provisional Notifications
When a user receives a provisional notification they are given an option to keep receiving notifications or stopping then. If they tap "Keep" they use to get asked if they want them to be delivered prominent or quietly. Well, in iOS 15 (Xcode 13) my users are not getting that choice and the notifications are stuck in "delivered quietly" unless the user happens to change that in their Settings. This defeats the purpose of provisional notifications and I have to go back to the old way which causes the user to be interrupted in the app when I have to ask permission. I am guessing its related to the new Summary feature that recently got added by Apple. What's going on here, Apple?
1
2
1.4k
Apr ’22
CLLocationButton does not show pressed states
I am starting to use CLLocationButton in my apps, but can see an issue with its behavior. When the user taps on a UIButton it is visually noticeable that it's being tapped. Color/Alpha change, image adjusts, etc... When the user taps on a CLLocationButton there is no queues as to it being pressed. I've had several test users complain already that they think the button is not working given that the action might not result in an immediately change to the UI. Apple FB: FB10019792 Open Radar: https://openradar.appspot.com/FB10019792
2
0
1.1k
May ’22
SWHighlightCenterDelegate never gets called
I did see a checklist in another post (see below) that I did verify as being configured correctly, but my delegate never gets called. I have confirmed that my universal link is working correctly as tapping on it in Messages does cause the app to open and handle it by going to the appropriate screen. A couple of details: My universal link is new and am testing it using Developer -> Associated Domains Development I am rewriting my app using SwiftUI including @main being a struct derived from App What else am I missing? is Shared with You enabled for your app? Preferences > Messages > Shared with You and see if the toggle for your APP is enabled? is Shared with You enabled for the conversation where these universal links are shared In the conversation where the universal links are shared, is the participant a Contact? If you have sent the link, then you will need to "Pin" the link for it to surface in Shared with You.
6
0
2.3k
Jul ’22
ShareLink + Preview equals crash
I am trying to use the new ShareLink component in an app I am moving to SwiftUI. If I use the init(items: Data, subject: Text?, message: Text?) variant of the initializer all works well. However if I try to include a preview using the initializer that takes an additional parameter that is a SharePreview instance I get a crash. The crash complains about Fatal error: SWIFT TASK CONTINUATION MISUSE: data(contentType:) tried to resume its continuation more than once, throwing exportFailed! thread #2, queue = 'com.apple.root.user-initiated-qos.cooperative', stop reason = Fatal error: SWIFT TASK CONTINUATION MISUSE: data(contentType:) tried to resume its continuation more than once, throwing exportFailed! The creation of the SharePreview object itself succeeds with nothing. Its the initialization of the ShareLink object that goes boom. Any ideas? Known issue? Wait for next beta? Environment: Xcode 14 beta 2, iOS 16 beta 2, iPhone 8
4
0
2.1k
Jul ’22
Cannot get correct height for wrapped SWAttributionView
I am attempting to utilize the new SWAttributionView in SwiftUI since I am adding SharedWithYou support to one of my apps. Below is the UIViewRepresentable I created to wrap the UIKit component. I have tried many combinations of view modifiers, but have not figured out how to get the height to be just what's needed. My goal is to pin the view near the bottom trailing edge of the view containing it. If I do the same UIViewRepresentable wrapping a UILabel, for testing purposes, I can simple use .fixedSize on it and a Spacer() to get the vertical effect I am looking for. struct AttributionView: UIViewRepresentable {     var highlight: SWHighlight     func makeUIView(context: Context) -> SWAttributionView {         SWAttributionView()     }     func updateUIView(_ uiView: SWAttributionView, context: Context) {         uiView.highlight = highlight         uiView.backgroundStyle = .material       uiView.horizontalAlignment = .trailing         uiView.displayContext = .summary     } }
0
0
1.2k
Jul ’22
Getting WeatherKit error WeatherDaemon.WDSJWTAuthenticatorService.Errors
I am looking into the possibility of adding WeatherKit support to one of my apps. I have added the WeatherKit capability to my app and can see it up in the App ID configuration, the bundle ID is marked as explicit. I waited overnight just in case, but I keep just getting the following error when I run on a real device: Error Domain=WeatherDaemon.WDSJWTAuthenticatorService.Errors Code=1 "(null)" This app has been in the store for years, so I know the rest of the configuration should be fine. What am I missing?
6
0
6k
Jul ’22
WeatherQueries with start/end dates not returning forecast for those dates
try await WeatherService.shared.weather(for: sf, including: .daily(startDate: start, endDate: end)) If the start date is in the past I get an empty forecast. If start date is in the future I just get the current day's forecast. I tried with .hourly as well; got the same problem as I always get hourly data for the current day.
3
3
1.6k
Aug ’22
MKLookAround broken on split screen and stage manager
I just want to see if anyone has worked around the following issue. I did file feedback at FB11405641. Using Apple's demo app from WWDC, if I open the LookAround when on an iPad in either split screen or using Stage Manager the full screen representation is not respecting the actual size of the window. See Here are some videos showing the issue: https://www.hotngui.com/tmp/SplitScreen.mov https://www.hotngui.com/tmp/StageManager.mov
1
0
1.3k
Aug ’22
Is it possible to customize the animation when deleting items in a NSCollectionViewDataSource?
I want to use a NSCollectionViewDiffableDataSource with the newish UICollectionLayoutListConfiguration, but I have a requirement that when deleting a cell it needs to animate out from the right; ditto for when inserting items. However I see no way to control the animation. I know that the UITableViewDiffableDataSource has the defaultRowAnimation property that can be set to affect the animation - Is there an equivalent approach to controlling that of the UICollectionViewDiffableDataSource?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
767
Dec ’22
UICollectionViewCompositionalLayout + paging + rotation == not handled correctly
Am trying to get away from using UIPageViewController for a number of reasons, not the least of which is several perennial crashes that happen occasionally that I've never been able to reproduce myself but happen enough in the wild to be noticeable. I have high hopes for the new UICollectionViewCompositionalLayout in iOS 13 SDK; have worked around the safeArea issue. However, I cannot find a way to workaround or fix the problem that occurs when I rotate the device. Before rotation things are great, paging works, etc. Then when I do rotate the device the collectionView is scrolled such that I see half of two separate cells. Basically the current cell is not handled correctly. Any ideas or suggestions? Below is my layout for reference. Its as basic as one can get.     private func createLayout() -> UICollectionViewLayout {         let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))         let item = NSCollectionLayoutItem(layoutSize: itemSize)         let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))         let group = NSCollectionLayoutGroup.vertical(layoutSize: groupSize, subitems: [item])         let section = NSCollectionLayoutSection(group: group)         section.orthogonalScrollingBehavior = .groupPaging         let layout = UICollectionViewCompositionalLayout(section: section)         return layout     } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
2
Boosts
0
Views
1.1k
Activity
Oct ’20
SwiftUI support for LargeContentViewer
I see that many accessibility features have been added to the SwiftUI API, but I am unable to find support for LargeContentViewer on custom views. Is it perhaps going by a different name? Is it really not supported yet in the latest SwiftUI implementation?
Replies
2
Boosts
0
Views
829
Activity
Jun ’21
supplementaryViewProvider only getting called for first section
I have a UICollectionViewDiffableDataSource that has its supplementaryViewProvider property set to a closure that returns a header view for the cell. The closure is only getting called for the first section of the collectionView regardless of the number of sections there are, each of which do contain cells. I am using Xcode 13 beta 5.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
1.3k
Activity
Sep ’21
iOS 15 broke Provisional Notifications
When a user receives a provisional notification they are given an option to keep receiving notifications or stopping then. If they tap "Keep" they use to get asked if they want them to be delivered prominent or quietly. Well, in iOS 15 (Xcode 13) my users are not getting that choice and the notifications are stuck in "delivered quietly" unless the user happens to change that in their Settings. This defeats the purpose of provisional notifications and I have to go back to the old way which causes the user to be interrupted in the app when I have to ask permission. I am guessing its related to the new Summary feature that recently got added by Apple. What's going on here, Apple?
Replies
1
Boosts
2
Views
1.4k
Activity
Apr ’22
CLLocationButton does not show pressed states
I am starting to use CLLocationButton in my apps, but can see an issue with its behavior. When the user taps on a UIButton it is visually noticeable that it's being tapped. Color/Alpha change, image adjusts, etc... When the user taps on a CLLocationButton there is no queues as to it being pressed. I've had several test users complain already that they think the button is not working given that the action might not result in an immediately change to the UI. Apple FB: FB10019792 Open Radar: https://openradar.appspot.com/FB10019792
Replies
2
Boosts
0
Views
1.1k
Activity
May ’22
SWHighlightCenterDelegate never gets called
I did see a checklist in another post (see below) that I did verify as being configured correctly, but my delegate never gets called. I have confirmed that my universal link is working correctly as tapping on it in Messages does cause the app to open and handle it by going to the appropriate screen. A couple of details: My universal link is new and am testing it using Developer -> Associated Domains Development I am rewriting my app using SwiftUI including @main being a struct derived from App What else am I missing? is Shared with You enabled for your app? Preferences > Messages > Shared with You and see if the toggle for your APP is enabled? is Shared with You enabled for the conversation where these universal links are shared In the conversation where the universal links are shared, is the participant a Contact? If you have sent the link, then you will need to "Pin" the link for it to surface in Shared with You.
Replies
6
Boosts
0
Views
2.3k
Activity
Jul ’22
ShareLink + Preview equals crash
I am trying to use the new ShareLink component in an app I am moving to SwiftUI. If I use the init(items: Data, subject: Text?, message: Text?) variant of the initializer all works well. However if I try to include a preview using the initializer that takes an additional parameter that is a SharePreview instance I get a crash. The crash complains about Fatal error: SWIFT TASK CONTINUATION MISUSE: data(contentType:) tried to resume its continuation more than once, throwing exportFailed! thread #2, queue = 'com.apple.root.user-initiated-qos.cooperative', stop reason = Fatal error: SWIFT TASK CONTINUATION MISUSE: data(contentType:) tried to resume its continuation more than once, throwing exportFailed! The creation of the SharePreview object itself succeeds with nothing. Its the initialization of the ShareLink object that goes boom. Any ideas? Known issue? Wait for next beta? Environment: Xcode 14 beta 2, iOS 16 beta 2, iPhone 8
Replies
4
Boosts
0
Views
2.1k
Activity
Jul ’22
Cannot get correct height for wrapped SWAttributionView
I am attempting to utilize the new SWAttributionView in SwiftUI since I am adding SharedWithYou support to one of my apps. Below is the UIViewRepresentable I created to wrap the UIKit component. I have tried many combinations of view modifiers, but have not figured out how to get the height to be just what's needed. My goal is to pin the view near the bottom trailing edge of the view containing it. If I do the same UIViewRepresentable wrapping a UILabel, for testing purposes, I can simple use .fixedSize on it and a Spacer() to get the vertical effect I am looking for. struct AttributionView: UIViewRepresentable {     var highlight: SWHighlight     func makeUIView(context: Context) -> SWAttributionView {         SWAttributionView()     }     func updateUIView(_ uiView: SWAttributionView, context: Context) {         uiView.highlight = highlight         uiView.backgroundStyle = .material       uiView.horizontalAlignment = .trailing         uiView.displayContext = .summary     } }
Replies
0
Boosts
0
Views
1.2k
Activity
Jul ’22
Getting WeatherKit error WeatherDaemon.WDSJWTAuthenticatorService.Errors
I am looking into the possibility of adding WeatherKit support to one of my apps. I have added the WeatherKit capability to my app and can see it up in the App ID configuration, the bundle ID is marked as explicit. I waited overnight just in case, but I keep just getting the following error when I run on a real device: Error Domain=WeatherDaemon.WDSJWTAuthenticatorService.Errors Code=1 "(null)" This app has been in the store for years, so I know the rest of the configuration should be fine. What am I missing?
Replies
6
Boosts
0
Views
6k
Activity
Jul ’22
WeatherQueries with start/end dates not returning forecast for those dates
try await WeatherService.shared.weather(for: sf, including: .daily(startDate: start, endDate: end)) If the start date is in the past I get an empty forecast. If start date is in the future I just get the current day's forecast. I tried with .hourly as well; got the same problem as I always get hourly data for the current day.
Replies
3
Boosts
3
Views
1.6k
Activity
Aug ’22
MKLookAround broken on split screen and stage manager
I just want to see if anyone has worked around the following issue. I did file feedback at FB11405641. Using Apple's demo app from WWDC, if I open the LookAround when on an iPad in either split screen or using Stage Manager the full screen representation is not respecting the actual size of the window. See Here are some videos showing the issue: https://www.hotngui.com/tmp/SplitScreen.mov https://www.hotngui.com/tmp/StageManager.mov
Replies
1
Boosts
0
Views
1.3k
Activity
Aug ’22
Data Size Limits for CloudKit
For the life of me I cannot find any documentation that explains the limits of how much space an app can use in the Public and Private database. How to get more Public space, and how to know we need to ask the user to get more iCloud storage for their private database. Any pointers appreciated...
Replies
0
Boosts
0
Views
1.2k
Activity
Sep ’22
Is it possible to customize the animation when deleting items in a NSCollectionViewDataSource?
I want to use a NSCollectionViewDiffableDataSource with the newish UICollectionLayoutListConfiguration, but I have a requirement that when deleting a cell it needs to animate out from the right; ditto for when inserting items. However I see no way to control the animation. I know that the UITableViewDiffableDataSource has the defaultRowAnimation property that can be set to affect the animation - Is there an equivalent approach to controlling that of the UICollectionViewDiffableDataSource?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
767
Activity
Dec ’22
SwiftUI has no support for ReadableContentGuide functionality
Am working on projects that support the iPhone and the iPad. I need the functionality provided by the UIView.readableContentGuide so that on an iPad the content remains readable. Why is it not supported in SwiftUI? When will it or an equivalent be available in SwiftUI?
Replies
0
Boosts
0
Views
722
Activity
Jan ’23
Dark Mode Popularity?
I have a designer asking how popular dark mode usage is among iPhone users. Are there any legit statistics available on the subject that someone (may Apple) can point them to?
Replies
0
Boosts
0
Views
841
Activity
Feb ’23