Skip to content

Releases: thatfactory/device

0.2.2

04 Mar 16:21
fc0a4f7

Choose a tag to compare

What's Changed

  • Moved API usage documentation from README.md into symbol-level DocC comments in Sources/Device.
  • Added Swift usage examples to orientation, screenSize, os(), type(), currentType(), and platformDisplayName docs.
  • Added explicit @available annotations for UIKit-dependent APIs so platform availability is encoded in the API itself.
  • Added a DocC catalog page at Sources/Device/Device.docc/Device.md.
  • Added build_docs and deploy_docs jobs to .github/workflows/release.yml.
  • Added a DocC badge to README.md and reduced README API docs in favor of generated documentation.
  • Added swift-docc-plugin to Package.swift to support generate-documentation in release CI.
  • Updated .gitignore to include repository-level ignored artifacts such as .swiftpm/configuration/registries.json and /public-check/.

Notes

  • This release is the intended DocC-enabled package release for the latest master changes.

0.2.1

04 Mar 16:20
d6aa125

Choose a tag to compare

What's Changed

  • Moved API usage documentation from README.md into symbol-level DocC comments in Sources/Device.
  • Added Swift usage examples to orientation, screenSize, os(), type(), currentType(), and platformDisplayName docs.
  • Added explicit @available annotations for UIKit-dependent APIs so platform availability is encoded in the API itself.
  • Added a DocC catalog page at Sources/Device/Device.docc/Device.md.
  • Added build_docs and deploy_docs jobs to .github/workflows/release.yml.
  • Added a DocC badge to README.md and reduced README API docs in favor of generated documentation.
  • Added swift-docc-plugin to Package.swift to support generate-documentation in release CI.
  • Updated .gitignore to include repository-level ignored artifacts such as .swiftpm/configuration/registries.json and /public-check/.

Notes

  • This release keeps runtime behavior unchanged while moving docs to DocC-first API documentation and enabling automated docs deployment.

Device 0.2.0

04 Mar 13:35
d6aa125

Choose a tag to compare

Device 0.2.0

Added

  • Added Device.currentType() to retrieve the current DeviceType without manually creating an instance.
  • Added DeviceType.platformDisplayName for stable user-facing platform labels (iOS, macOS, tvOS, watchOS, visionOS, Unknown).

Tests

  • Added coverage for Device.currentType() known-case behavior.
  • Added mapping coverage for DeviceType.platformDisplayName.

Docs

  • Updated README.md with usage examples and API table entries for the new platform APIs.

0.1.1

04 Jan 23:37
c6e05ae

Choose a tag to compare

Fix unknown typo in docs/tests.

0.1.0

10 Dec 17:01
f2f4f8c

Choose a tag to compare

Update references