Create .spi.yml
Create a .spi.yml file and commit it to the root of the package’s repository, telling swiftpackageindex.com build system which targets have documentation.
https://blog.swiftpackageindex.com/posts/auto-generating-auto-hosting-and-auto-updating-docc-documentation/
OSInfo
Cross-platform Swift Package to report the operating system
name
andversion
on which the app is runningKey Aspects:
UIDevice
vs.WKInterfaceDevice
vs.ProcessInfo
)Note:
OS.current
is equivalent toOS(underlyingMacOS: true)
OS()
is equivalent toOS(underlyingMacOS: false)