update docs with macos platform

This commit is contained in:
Jay Wren 2024-03-27 18:05:40 -04:00
parent 4441c5ac08
commit a8abbd4caa
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -3,3 +3,4 @@
- [david-swift](https://github.com/david-swift)
- [Greg Cotten](https://github.com/gregcotten)
- [Zev Eisenberg](https://github.com/ZevEisenberg)
- [Jay Wren](https://github.com/jrwren)

View File

@ -29,6 +29,12 @@ targets: [
]
```
4. On macos you may need to set the platform version. Add the following after `name: "HelloWorld",`:
```swift
platforms: [.macOS(.v10_15)],
```
## Create the App
1. Navigate to `Sources/main.swift`.
2. An app that uses the _Adwaita_ framework has a structure that conforms to the `App` protocol. The `scene` property returns one or more windows which provide content for display. An `@main` attribute marks it as the entry point of the app.