You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #11 from maxxfrazer/touch-updates
Release 1.3.0
- Update RUIStepper and RUISwitch to have better touch controls.
- Added hasCollided to arTouchEnded method call.
- Added tests for the above.
- Modified the default opacity background of RUIStepper
- Update indentation
- Add DocC Articles for setup + started RUIControls.
All updated methods have deprecated tags with auto-update options on the old ones.
Fixes:
- Fix padding value on RUIButton
- Fix collision shape for RUISwitch
Copy file name to clipboardExpand all lines: README.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,16 @@ The classes included in RealityUI aim to offer familiar User Interface guideline
6
6
The User Interface controls in this repository so far are made to be familiar to what people are used to with 2D interfaces, however the plan is to expand the tools on offer to new and unique controls, which are more appropriate for an Augmented Reality and Virtual Reality context.
@@ -22,8 +26,8 @@ The User Interface controls in this repository so far are made to be familiar to
22
26
## Requirements
23
27
24
28
- iOS 13 or macOS 10.15
25
-
- Swift 5.2
26
-
- Xcode 11
29
+
- Swift 5.4
30
+
- Xcode 12
27
31
28
32
## Content
29
33
@@ -56,8 +60,10 @@ All components used in RealityUI must be registered before they are used, simply
56
60
57
61
#### Activating Gestures
58
62
59
-
If you plan on using RUISwitch or RUIStepper, then you should at least enable `.tap`
60
-
RUISlider uses `.pan`, but I would just recommend using `.all` to avoid issues, as these will inevitably move around ad RealityUI develops, and will not interfere with the rest of your RealityKit scene.
63
+
Enabling RealityUI gestures can be doen by calling `RealityUI.enableGestures(.all, on: ARView)`, with `ARView` being your instance of an [ARView](https://developer.apple.com/documentation/realitykit/arview) object.
64
+
65
+
RUISlider, RUISwitch, RUIStepper and RUIButton all use `.longTouch`, and if you are adding elements that use the protocol `HasClick` you can use the gesture `.tap`.
66
+
I would just recommend using `.all` when enabling gestures, as these will inevitably move around as RealityUI develops.
0 commit comments