Post

Replies

Boosts

Views

Activity

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.1k
Jul ’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
740
Dec ’22
App Download Size Nag Email - "Universal" device type
Whenever we submit a new release to the App Store we get a nag email from Apple that states, "The app binary listed below was 199.2 MB when you submitted it, but will be 223.9 MB once processed for the App Store. This exceeds the cellular network download size limit and may require your app to be downloaded over Wi-Fi." However, when I download the app from the App Store and have the Settings set to "Alway Ask" on my phone the alert shows 129 MB, which is matches up closely with what we see in the TestFlight metadata for all device types except "Universal". What is "Universal" device type in these days of thinning? And why is Apple apparently using that number to generate the nag email?
0
1
886
Mar ’24
Apple Music Affiliate Program gone?
I was about to finally sign up for the Apple Music affiliate program since one of my apps does provide the MusickKit Subscription Offer. However, it looks like it was renamed and restricts usage to only artists and record labels. (https://partners.applemediaservices.com) Is this correct? Can I as an indie developer not earn commission of Apple Music that I drive from my apps?
0
1
956
Mar ’24
playbackStoreID is "0" for local songs
I am trying to get the playbackStoreID via the MPMediaPickerController so I can play songs in my app. For many songs I can see and select I am getting a value of "0" for the playbackStoreID on the returned MPMediaItem. Now if I use the "Music" app I can play those songs, but since the playbackStoreID is "0" I cannot successful get them in the queue for a MPMusicPlayerController.applicationQueuePlayer What's the deal? How do I get a proper ID that I can use to get those songs played? If I cannot, how can I hide those songs from the MPMediaPickerController so a user does not think they can play those songs in my app?
0
0
573
Apr ’24
I want same microphone feature as Mail app
I have user's wondering why my apps do not have a microphone icon in search fields that let them go directly to dictation, like the iOS Mail app. I know of no feature that would allow me to accomplish the same look/behavior. Understanding that the user first has to bring up the regular keyboard then tap the microphone on the bottom of the keyboard. Apple's apps should not be using features in what appear to be standard components that us app developers don't have access to. Before I file the enhancement/bug report I just want to confirm that I am correct in my thinking.
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
782
Mar ’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:
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
May ’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
Sep ’22