forked from aparoksha/adwaita-swift
Fix instructions for macOS
This commit is contained in:
parent
24255bc015
commit
409dfb625d
@ -29,14 +29,14 @@ targets: [
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
4. On macos you may need to set the platform version. Add the following after `name: "HelloWorld",`:
|
4. On macOS you may need to set the platform version. Add the following after `name: "HelloWorld",`:
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
platforms: [.macOS(.v10_15)],
|
platforms: [.macOS(.v10_15)],
|
||||||
```
|
```
|
||||||
|
|
||||||
## Create the App
|
## Create the App
|
||||||
1. Navigate to `Sources/main.swift`.
|
1. Navigate to `Sources/main.swift`. On macOS, you may have to change the file name to something else, e.g. `HelloWorld.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.
|
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.
|
||||||
Replace `print("Hello, world!")` by your first app:
|
Replace `print("Hello, world!")` by your first app:
|
||||||
```swift
|
```swift
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user