From 972b7f79cf3dd3e1496eadafd201a9e5b8dc8918 Mon Sep 17 00:00:00 2001 From: Ralf Ebert Date: Mon, 26 Jul 2021 19:38:06 +0200 Subject: [PATCH 1/2] Fix example in readme to use .classic(color: .yellow) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 78992b6..8377924 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ See the [Example](./FocusEntity-Example) for a full working example as can be se - After installing, import `FocusEntity` to your .swift file - Create an instance of FocusEntity: -
```let focusSquare = FocusEntity(on: self.arView, style: .classic)``` +
```let focusSquare = FocusEntity(on: self.arView, style: .classic(color: .yellow))```

(Optional)
- Set `focusSquare.delegate` to an object which conforms to `FocusEntityDelegate` if you wish to get callbacks for when the FocusEntity changes state. - Optionally, you may select to use one of 3 visual styles: classic, color, and material. From 6932f0af2c213d2aa641b5345314ad2a47720a84 Mon Sep 17 00:00:00 2001 From: Max Cobb <5754073+maxxfrazer@users.noreply.github.com> Date: Tue, 27 Jul 2021 08:48:39 +0100 Subject: [PATCH 2/2] add `focus: .classic` option to example --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8377924..c182bd2 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ See the [Example](./FocusEntity-Example) for a full working example as can be se - After installing, import `FocusEntity` to your .swift file - Create an instance of FocusEntity: +
```let focusSquare = FocusEntity(on: self.arView, focus: .classic)``` +
or
```let focusSquare = FocusEntity(on: self.arView, style: .classic(color: .yellow))```

(Optional)
- Set `focusSquare.delegate` to an object which conforms to `FocusEntityDelegate` if you wish to get callbacks for when the FocusEntity changes state.