Same here the text cursor ][ appear on buttons and links.Also there is no way to zoom on WKWebview and PDFView on macCatalyst with a mouse, only magic pad.
Post
Replies
Boosts
Views
Activity
Same problem here. I guess Apple forgot about Catalyst printing functionality. Our office app does not print on macOS, but it does on iPhone???
I have a similar problem where I can open pdf with my app on iOS, but on macCatalyst it is not working. It was working at a time on macOS, but it has stopped working. When I do an open with, my app is not there on macOS. I have only 1 .plist and it is definitely all there in the app installed from the macOS store.
...
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>PDF File</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
</dict>
...
Does not work, I get the error : Value of type 'UIButton' has no member 'configuration'
This line of code :
var configuration = UIButton.Configuration.filled()
will generate the error : Type 'UIButton' has no member 'Configuration'
As I said above, UIButton.Configuration does not exist and it should.
Yes, my project is iOS 15 and is also Mac Catalyst. So I only have 1 code for iOS and macOS, no project settings switching.
I have Xcode 13.0, you are right, I can't set macOS 12. So I guess I must wait for Apple to fix it in the next Xcode? So eventually it will resolve itself with the solution you gave me. Thank you good sire.
Now it is working on macOS 12.0
Problem is as soon as you use anything from Configuration, everything else stop working.
There is obviously a conflict in that SDK.
2 mutually exclusive things in the same UIButton.
Also if I use configuration to set image, there is only 1 image instead of the 2 that you could set on the good old UIButton.
I will wait for Apple to make their mind about where the are going. I will let the messy storm pass.
It is now working, but everything else stop working (I am not the only one reporting that).
Every parameters of UIButton will be ignored if you use Configuration.
Also Configuration is too limited compared to good old button.
Many features missing like image for when it is pressed.
I will let Apple clean this mess before desecrating my code.
I tested further with a tool to see the https traffic (Charles).
I can do this when I start the app
urlRequest.httpShouldHandleCookies = true //Always inject cookies
Or I can do this when I start the app
urlRequest.httpShouldHandleCookies = false //Never inject cookies
But if I change it on the fly, as soon as it is set to false, even if I set it to true later, it will never inject the cookies.
urlRequest.httpShouldHandleCookies = isSendCookies //Never inject cookies
urlRequest.httpShouldHandleCookies control also the absorbtion of set-cookie, I thought it was taking the cookies from the WKWebview. My mistake, I will go hide under a rock now to hide my shame. This whole post should be deleted since it is useless.
The exact same code for iOS and macOS because Catalyst.
Using the keyboard to paste on my iPad does work correctly, but it paste twice on my Mac.
I am talking about pasting text inside and input box in a web page running on WKWebview.
No, it is still there.
Do you also have this problem? https://developer.apple.com/forums/thread/698038
Yes my Printing is allowed in app sandbox.
mackhag, you are our saviour, your solution is elegant, brilliant and simple.
Now please fix the world.
I would recommend that you put that in the code so as to not interfere with the iPad and iPhone version, because this problem does not exist on iOS.
#if targetEnvironment(macCatalyst)
//Put the mackhag fix here
#endif