Post

Replies

Boosts

Views

Activity

Apply custom fonts and colors to context menus
I am looking for a way to apply custom fonts and colors to context menus. I was able to change UIAction text color with the appearance manager:[[[UILabel class] appearanceWhenContainedInInstancesOfClasses:@[NSClassFromString(@"_UIContextMenuActionView")]] setTextColor:[UIColor greenColor]];But doing the same with the font does not work for me:[[[UILabel class] appearanceWhenContainedInInstancesOfClasses:@[NSClassFromString(@"_UIContextMenuActionView")]] setFont:[UIFont systemFontOfSize:30]];Similarly I cannot find a way to apply custom colors to the separator lines between UIActions or inline UIMenus.Is there a way to do this?Thanks.John
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
2.8k
Jan ’22
Difficulty playing videos from WKWebView
I am running into a weird bug where videos embedded in WKWebViews do not appear. I get audio, but the screen goes black. A few notes: This happens on iOS 15 and the 15.1 beta, but not iOS 14.8. I have three WKWebViews in the view hierarchy. If I reduce the number of WebViews to one, I do not encounter this issue. When I encounter this issue with one WebView, playing the same video from another WebView will work. It seems to happen more often when in dark mode than in light mode. This might be an Apple bug, but I have not been successful in building a standalone app that can reproduce this.I know this isn’t a lot to go on, but if anyone has pointers or can suggest something to try I would appreciate it. Thanks. John
2
0
2.3k
Oct ’21
Adding a Quick Note via Keyboard Shortcut
In earlier iPadOS betas I used the globe-Q keyboard shortcut to create a Quick Note. This no longer works for me, and I am not sure why. I do not see the keyboard shortcut listed if I hold down the globe key. Was the keyboard shortcut removed? Could the problem be that I have a Magic Keyboard (not designed specifically for an iPad) and have the function key mapped to the globe key? John
0
0
905
Sep ’21
Apply custom fonts and colors to context menus
I am looking for a way to apply custom fonts and colors to context menus. I was able to change UIAction text color with the appearance manager:[[[UILabel class] appearanceWhenContainedInInstancesOfClasses:@[NSClassFromString(@"_UIContextMenuActionView")]] setTextColor:[UIColor greenColor]];But doing the same with the font does not work for me:[[[UILabel class] appearanceWhenContainedInInstancesOfClasses:@[NSClassFromString(@"_UIContextMenuActionView")]] setFont:[UIFont systemFontOfSize:30]];Similarly I cannot find a way to apply custom colors to the separator lines between UIActions or inline UIMenus.Is there a way to do this?Thanks.John
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
2
Boosts
0
Views
2.8k
Activity
Jan ’22
Difficulty playing videos from WKWebView
I am running into a weird bug where videos embedded in WKWebViews do not appear. I get audio, but the screen goes black. A few notes: This happens on iOS 15 and the 15.1 beta, but not iOS 14.8. I have three WKWebViews in the view hierarchy. If I reduce the number of WebViews to one, I do not encounter this issue. When I encounter this issue with one WebView, playing the same video from another WebView will work. It seems to happen more often when in dark mode than in light mode. This might be an Apple bug, but I have not been successful in building a standalone app that can reproduce this.I know this isn’t a lot to go on, but if anyone has pointers or can suggest something to try I would appreciate it. Thanks. John
Replies
2
Boosts
0
Views
2.3k
Activity
Oct ’21
Adding a Quick Note via Keyboard Shortcut
In earlier iPadOS betas I used the globe-Q keyboard shortcut to create a Quick Note. This no longer works for me, and I am not sure why. I do not see the keyboard shortcut listed if I hold down the globe key. Was the keyboard shortcut removed? Could the problem be that I have a Magic Keyboard (not designed specifically for an iPad) and have the function key mapped to the globe key? John
Replies
0
Boosts
0
Views
905
Activity
Sep ’21