580 questions
0
votes
1
answer
30
views
macOS 13.2 UITextField misalignment when tapped
The test field was originally centered. However, as I tap on it, it was brought to the left.
This UI issue occurs on macOS 13.2, built on My Mac(Designed for iPad), while running on iPad is totally ...
1
vote
1
answer
2k
views
TestFlight claims new version of iOS app can't support macOS 11 on Apple Silicon, only 12. Why?
I'm updating one of my iOS apps, which I also have set to allow distribution on the Mac app store, for Apple Silicon.
My app has a deployment target of iOs 9.0, so its quite backwards compatible. Yet, ...
1
vote
0
answers
404
views
xcodebuild 14.2 create xcframework doesn't recognize mac catalyst static library build in rust
So I've build the following fat binary
➜ wallet-core git:(m/rust_fix) ✗ lipo -detailed_info build/local/catalyst/libwallet_core_rs.a
Fat header in: build/local/catalyst/libwallet_core_rs.a
fat_magic ...
1
vote
1
answer
459
views
Maui Picker popup width and item clipping on Mac Catalyst
On Mac Catalyst the Maui Picker control is implemented as a swiftui-style picker in a popup. Item labels that are longer that about 18 characters (on my non-retina mac) are right-clipped and have an ...
1
vote
0
answers
497
views
Google MLKit and Mac Catalyst
I would like to provide a desktop (Catalyst/MacOS) version of a successful iOS App. My App uses MLKit Translate. I installed the current version of MLKit via cocoa pods in the usual way (pod file):
...
0
votes
1
answer
204
views
How to preserve split view divider configuration in Mac Catalyst app?
Mac apps that have a sidebar (Mail, Finder, etc) allow you to resize its width, and that width is preserved across app launches. You enable this behavior in an AppKit app by assigning autosaveName on ...
1
vote
1
answer
615
views
Add buttons to Titlebar/Toolbar next to triple-dot-menu in macCatalyst in SwiftUI
I am trying to create a toolbar for my macCatalyst app in SwiftUI.
On Mac my toolbar should be in the same line as the tripleDotMenu (red, orange, green).
Next to it I want to have my different ...
1
vote
1
answer
178
views
Getting trouble when hovering a custom segmented control in swift
I tried to create custom segmented control which should change its look if you are hovering it. But it does not work as I expected.
Here's the code (I am sorry that it is that long but I already made ...
0
votes
1
answer
208
views
macOS Catalyst App system menu issue Help is unavailable
I have a macOS Catalyst app and I am having issues with the system menu. I would like to keep the Help menu and the search bar. I would like to remove an option from the menu as I get the follow error....
1
vote
0
answers
190
views
How to find type in objective-c enclosed by 'TARGET_OS_MACCATALYST' from swift file?
I'm working on porting an iOS application to macCatalyst. On the macCatalyst version, I constructed an NSToolbar in objective-c because it was the only way I find out to get the position of the ...
3
votes
1
answer
371
views
Strange Transparent View Appears Beneath Textfield in Mac Catalyst App
I'm in the process of creating a Mac Catalyst app from my existing iOS app. My problem is this strange transparent view that appears beneath my secure textfields. It appears when the textfield gets ...
3
votes
1
answer
409
views
Is there a way to quit an app without force quitting on Mac Catalyst using the .sheet modifier?
Whenever I use the .sheet modifier on my Mac Catalyst/SwiftUI-based app, the red cross button is disabled and the only way to quit the app is to force quit it.
Is there any workaround to enable the ...
0
votes
0
answers
147
views
Mac Catalyst app not respecting HomeKit Privacy usage description in Info.plist
I'm writing a Mac app using Catalyst, that uses HomeKit to control some accessories.
When running from Xcode there are no issues, it works fine, however when running any other way – directly from ...
2
votes
3
answers
3k
views
.net Maui WebView.EvaluateJavaScriptAsync return data from JavaScript callback
I have a .net WPF app where I am using a WebView2 control to render a node.js app. The node.js app is fairly simple and contains a few async functions that call out to a rest API and using a callback ...
1
vote
1
answer
226
views
Mac-catalyst set Window max and minimum size in objective-c
I have Mac-catalyst app. I would like to know options to set the max or minimum size of a window in objective-c.
Here is an example in swift
UIApplication.shared.connectedScenes.compactMap { $0 as? ...
0
votes
1
answer
208
views
Get "File Save" to Populate "Open Recent" Menu
It's easy to populate the Open Recent menu following the advice from here
UIDocument.open() automatically adds opened files to the "Open Recents" menu
However, File Save out of the Sandbox ...
0
votes
1
answer
902
views
Use xcodebuild to build an iOS app to run on the mac using the "Designed for iPhone" variant
I want to build a "Designed for iPhone" app to run on an Apple Silicon Mac.
running xcodebuild -showdestinations gives me a fitting destination
{ platform:macOS, arch:arm64, variant:Designed ...
2
votes
1
answer
2k
views
How to use UIMenuBuilder to insert new menu in menu bar in Mac Catalyst app
You can use UIMenuBuilder to create a menu bar on iPadOS that’s similar to the traditional menu bar from macOS. You can insert key commands into standard menus such as Edit or you can create your own ...
1
vote
0
answers
235
views
canPerformAction not called in Mac Catalyst app until app enters background
I have a Mac Catalyst application with a layout like
UISplitViewController
|
|––––– Sidebar
|
|
|––––– List VC
| |
| *on tap*
| |
|––––– ...
3
votes
1
answer
1k
views
SwiftUI NavigationSplitView sidebar button location
I'm trying to use the new NavigationSplitView in SwiftUI but somehow, the Sibebar button renders differently between a Mac and Mac Catalyst
var body: some View {
NavigationSplitView {
...
10
votes
0
answers
1k
views
Tap Outside to Dismiss Modally Presented View in Mac Catalyst
I'm presenting a modal view controller in my Mac Catalyst / iOS app. iOS has the ability to swipe the modally presented view down to dismiss, or simply tap outside the presented view.
It would appear ...
-1
votes
1
answer
368
views
NSSavePanel for Mac Catalyst?
Objective: a sandboxed application for Mac Catalyst. I need to create a file for writing data on external drive.
As far as I understand, there should be some kind of dialog which grants permission to ...
0
votes
0
answers
372
views
How to make Sidebar row remember its previous detail view progress for split view SwiftUI Mac catalyst?
I am creating Split View with NavigationView in SwiftUI MacCatalyst. In sidebar (master view), I have two rows: 'Add' and 'Profile'. Tapping on them changes the detail view.
Suppose I click on 'Add' ...
1
vote
1
answer
550
views
On macOS, UIDevice.current.userInterfaceIdiom returning .iPadOS
On macOS 12.4, when calling UIDevice.current.userInterfaceIdiom from Mac Catalyst, it returns .iPadOS when the Scale Interface to Match iPad setting is enabled:
However, if this setting is changed to ...
0
votes
1
answer
213
views
How can I force Mac Catalyst to use my "Toggle Sidebar" UIKeyCommand shortcut?
I have a Mac Catalyst app with a sidebar that can be shown/hidden via a Mac menu. This works as expected on Catalina. However, on Monterey the menu item works but the keyboard shortcut is changed to ...