Is is possible to opt-out from having the automatic menu show up on a long press in navigation bar back button on iOS 14?
Search results for
[tags:wwdc20-10673]
13 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Is there a way to specify where the backBarButtonItem.menu gets its label from for a screen. The WWDC video says that it selects the best from title, backButtonTitle and backbarbuttonItem.title. We want to specify that it comes from backButtonTitle because for some of our screens we set navigationItem.backBarButtonItem = UIBarButtonItem(title: , style: .plain, target: nil, action: nil) it seems to always use the backBarButton.title if it is there so we are getting an empty string in our back button context menu.
Hamdan
UIContextMenuInteraction got a new property with iOS 14 for Specifying Menu Appearance (that's the name of the section in the docs): https://developer.apple.com/documentation/uikit/uicontextmenuinteraction?changes=latest_minor However, this property is ready-only! Is it read only by design or mistake? If it's by design, why the name of the section in the docs suggests we're able to specify the menu appearance?
From the Designing with iOS Menus - https://developer.apple.com/videos/play/wwdc2020/10205 and Building with iOS Menus - https://developer.apple.com/videos/play/wwdc2020/10052/, it was clear that we should replacing many of our action sheets with menus. I couldn't find how to do that with SwiftUI though. The only thing that I am seeing is still .contextMenu, which would appear after a long press. Am I missing something, or does SwiftUI lack support for this new approach?
I've already commented on another question about this - https://developer.apple.com/forums/thread/652943, but just re-posting with the appropriate session tag in case that helps with visibility. UIDatePicker doesn't appear to render correctly when returned as an inputView, even when the .wheels style is explicitly configured. Sample project is here: https://github.com/UberJason/DatePickerWheels
Is there a way to customize the UIDatePicker when using in 'compact' mode, such that we can set a clear backgroundColor? I don't want to show the gray pill background, just the text. I've tried setting the backgroundColor to 'clear', but that didn't work.
The prior version of UIDatePicker allowed for a countdown mode, if I wanted to ask the user for a duration, not a specific date or time - i.e., to select 2 hours 30 minutes for an event duration. Does the new DatePicker support this behavior?
Is it possible to present a Context Menu alongside software keyboard? I'm trying to present context menu via tapping a button while locking focus on a UITextField in the meantime. But found out whenever the context menu is presented, keyboard is automatically dismissed. Even strangely, canResignFirstResponder() and resignFirstResponder() are not called at all. Sample code: class TextField: UITextField { override var canResignFirstResponder: Bool { print(#function) return false } override func resignFirstResponder() -> Bool { print(#function) return false } } class ViewController: UIViewController { @IBOutlet var textField: UITextField! @IBOutlet var button: UIButton! override func viewDidLoad() { super.viewDidLoad() button.menu = UIMenu(title: , children: [ UIAction(title: Hello) { _ in } ]) button.showsMenuAsPrimaryAction = true } override var disablesAutomaticKeyboardDismissal: Bool { print(#function) return true } }
Our app allows users to set anniversaries: think of a birthday as an example. This means that the user needs to be able to enter a day-month-year date or a day-month date. At present we have to synthesise a clone of UIDatePicker which allows ---- as an additional year after 2020. Does the new UIDatePicker have any ability to make the year optional?
When implementing the collectionView(_, contextMenuConfigurationForItemAt, point) in the UICollectionView delegate, how to specify that the menu should appear in the UIContextMenuInteractionAppearance.compact as the Files app does in iOS 14? And a followup question: how do I display a submenu from said compact menu when using a collection view?
The minuteInterval in compact mode does not work, value is always set to 1
How can I stop some one from controlling all my devices in my home? I think they are in my iCloud and I can’t remove them