Description
We used to use FIFinderSyncController.showExtensionManagementInterface() to navigate to the corresponding Setting's path via a button in our app to make the user enable our FinderSync App. (Or user can navigate manually via "System Settings -> Privacy & Security -> Extensions -> Added Extensions" themselves in Settings.app)
But the UI is now disappearing on macOS 15.0
As a result, if user had previously enabled it, user will now be unable to disable it, and if user had not previously enabled it, user will never be able to enable it.
STEPS TO REPRODUCE
Create an empty macOS app xcodeprojc, add Finder Sync Extension and run it.
Or you can use the repo here to reproduce the issue. https://github.com/Kyle-Ye/MenuHelper
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
In the new Swift Playground App format, we can share code between an iPad's Playground and Mac's Xcode. But some key behaviors are inconsistent.
For example, using Xcode/iPad Playground to new a Test "Swift Playground App" and adding the following code.
We'll see "1" on Xcode while "2" on iPad Playground App
Test.swiftpm
struct ContentView: View {
var body: some View {
#if SWIFT_PACKAGE
Text("1") // Using Xcode to open
#else
Text("2") // Using iPad Playground App to open
#endif
}
}
I think for a Swift Playground App, they should both to be "1"
I was trying to use UIPasteboard.general.url to get some content, and I found that UIPasteboard.general.string could get the Universal Clipboard (other devices' clipboard like Mac's and iPad's) while UIPasteboard.general.url could only get the local Clipboard.
Below is a simply way to reproduce (in SwiftUI)
Button(Text("getURL")){
print("url is \(UIPasteboard.general.url)")
print("string is \(UIPasteboard.general.string)")
}
First you copy this link (actually any url string is OK) in Mac http://pic1.win4000.com/wallpaper/2019-08-05/5d47e530bcf01.jpg . And click the above button in your iOS device, you'll see something like this in your log
url is nil
string is Optional("http://pic1.win4000.com/wallpaper/2019-08-05/5d47e530bcf01.jpg")
2. Second you simply paste it into your iOS device(Universal Clipboard on) and copy it so that your local pasteboard have this content. And then click the above button in your iOS device, you'll see something like this in your log
url is Optional("http://pic1.win4000.com/wallpaper/2019-08-05/5d47e530bcf01.jpg")
string is Optional("http://pic1.win4000.com/wallpaper/2019-08-05/5d47e530bcf01.jpg")