Specify minimum OS version in Package.swift
I’m trying to specify the minimum OS version using the platforms
field in Package.swift, but I’m getting an error:
How to use Apple’s DataDetection framework on macOS?
DataDetection is Apple’s new framework for detecting data types. On the top of the page, it says macOS 12.0+
is supported, but all of the APIs like detectPatterns(for:completionHandler:)
seem to only support iOS/iPadOS.
How to write plugin for MacOS “Look up” widget?
I want to write my own plugin for “Look up” widget, besides default dictionary. What API should I use in order to achieve my goal?