Post

Replies

Boosts

Views

Activity

Reply to UINavigationController inside UISplitViewController's UISplitViewControllerColumnSupplementary Doesn't Appear on Mac Catalyst
So I can make the search bar and scope bar look reasonable by setting UISearchBar's backgroundImage and scopeBarBackgroundImage properties to a image of just a solid color, but my app also sets navigationItem.prompt when the UISearchController is active, and the background color of that view _UINavigationBarModernPromptView is white... Edit: setting UINavigationBarAppearance's backgroundColor allows me to get override the white background.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’22
Reply to UICollectionView List Style on Mac Catalyst: Prevent the Collection View From Changing the Selection when the Selected Row's Parent is Collapsed?
Also not sure why focus moves to the first row (0,0) when another row is collapsed with the selected and focused row. If the collapsed parent (just clicked) isn't selectable but is focusable the focus should move to the clicked row. IMO it shouldn't jump to index path 0,0. Overriding this behavior is not as straightforward since the focus API gives developer's limited control. I have to hold the clicked index path in a property and return it from -indexPathForPreferredFocusedViewInCollectionView:
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’22
Reply to UICollectionView List Style on Mac Catalyst: Prevent the Collection View From Changing the Selection when the Selected Row's Parent is Collapsed?
Actually I get the behavior I expect by default as long as the selected row isn't also focused (the collection view is configured to have the selection follow focus, which is something I want). Only thing I can think of is to manually implement the expandable row's UICellAccessoryOutlineDisclosure actionHandler, set selectionFollowsFocus to NO before I collapse the row, then set selectionFollowsFocus to YES after the animation finishes. Feels like this is way more work then it should be though.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’22
Reply to Window's title bar separator draws way out of place on Mac Catalyst, not even close to title bar location
I think if figured out what's going on. On launch my app needs to determine whether or not it should show onboarding UI based on a few conditions. While my app is making this determination, I overlay a separate UIWindow in the UIWindowScene that shows a UIActivityIndicatorView. Then if I do in fact have to show the onboarding UI, this overlayed window shows the onboarding view controller by presenting it modally. Underneath this overlayed window is my standard UIWindow. In that window hierarchy underneath there is a UINavigationController with navigation bar. It appears UIKit on macOS draws this separator line underneath the navigation bar when the window is in certain states...but the separator is bleeding through from the UIWindow that's offscreen. That UIWindow should be completely offscreen while the overlay window is the key window (and it is, except for the line separator bleeding through and causing this glitch). So if I do this: #if TARGET_OS_MACCATALYST     [self setNavigationBarHidden:YES animated:NO];     #endif The line separator issue goes away.
Topic: App & System Services SubTopic: General Tags:
Oct ’22
Reply to Search ads - $0 Spent in 3 Weeks
How is Basic going for you? Did it get any better? I started a Basic campaign recently. After the first day it seems Apple just stopped serving the ads for my Basic campaign. I also tried increasing the CPI but that hasn't been successful yet (I'm going to give it a little more time). What's weird is I can only find the Ad in the App Store on a direct search of my app name. My concern of course with that is Apple charging me for installs on a direct search of my app by name (since they place the Ad over the organic result). If the ad is being served as a result of other search queries, I haven't been able to find it. Of course if Search Ads starts getting my app valuable installs all is forgiven but I haven't really seen Basic do anything so far.
Topic: App & System Services SubTopic: General Tags:
Oct ’22
Reply to UIWindow safeAreaInset.bottom value is 20.0 on iPad even when window is presented like a "modal view controller" via UIWindowSceneActivationAction
I decided to just live with the safeAreaInset bottom value of 20.0 even when the external window scene is presented like this. Adjusted a few things to make it look better in my UI but not worth comparing the frame of the window vs the frame of the screen to detect this state, as that code is too fragile. I still think the safeAreaInset bottom should be 0 when the window scene is presented in this style.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’22