Skip to content

Commit

Permalink
Merge pull request #24 from ralfebert/patch-1
Browse files Browse the repository at this point in the history
Fix example in readme to use .classic(color: .yellow) and .classic in the right way, no new version as just docs patch
Thanks @ralfebert!
  • Loading branch information
maxxfrazer authored Jul 27, 2021
2 parents 0c7cfd8 + 6932f0a commit fc73f8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ 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:
<br>```let focusSquare = FocusEntity(on: self.arView, style: .classic)```
<br>```let focusSquare = FocusEntity(on: self.arView, focus: .classic)```
<br>or
<br>```let focusSquare = FocusEntity(on: self.arView, style: .classic(color: .yellow))```
<br><br>(Optional)<br>
- 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.
Expand Down

0 comments on commit fc73f8c

Please sign in to comment.