- Issue #35 Fix tvOS build error fix
- Issue #26 Audio interruption crash fix
- Issue #33 Cannot build on Xcode 14: Stored properties cannot be marked potentially unavailable with '@available' fixed;
- Issue #24 External audio stops right after fortune wheel initialization;
- Fixed issue when tap to slice can return incorrect slice index;
- Tap gesture recognizer ported to macOS;
- Issue #10 added tap gesture API to detect selected slice index via tap. For more information see API Overview;
- Refactoring;
- Issue #11: startRotationAnimation completion issue fix;
- Issue #6:
pinImageView
collision effect animation added;
- Added sound effect and haptic feedback during the rotation;
- Issue #6: animation callback added;
- Animation API refined;
- iOS Example project updated;
characterWrap
type added to theTextPreferences.LineBreakMode
;maxWidth
added to theTextPreferences
. WithmaxWdith
possible to set maximum width that will be available for text;- Fixed text margins;
- Fixed when
numberOfLines = 0
may not work properly;
- SPM macOS support added;
- Issue #8: Added background image for Slice object;
- Added support for macOS 10.11 and above;
- Added support for tvOS 9.0 and above;
TextPreferences
initialize process changed;ImagePreferences
initialize process changed;WheelPreferences
initialize process changed;SpinButtonPreferences
initialize process changed;PinImageViewPreferences
initialize process changed;AnchorImage
initialize process changed;- Fixed image
flipUpsideDown
from not working; - See migration process here: from 1.0.x to 1.x.x;
- When you using
startAnimating
method to start indefinite rotation animation, it’s possible now change optionalrotationTime
andfullRotationCountInRotationTime
parameters to change the rotation speed;
- Fixed memory leak when re-drawing the wheel;
- Fixed layout warnings;
- Fixed incorrect spinButton background image setting;
- Fixed incorrect spinButton isEnabled setting;
- Fixed incorrect content image position;
- Fixed incorrect content line position;
- Fixed incorrect slice border width;
- Fixed incorrect content position after setting circle border height;
- Fixed horizontal position in the vertical text;
- Other small improvements are made;
- Small improvements and bug fixes;
- Updated example project with rotation and animation API example;
- Pull request #4 merged;
- See migration information here: from 0.x.x to 1.0.0;
- Added rotation API:
rotate(toIndex index: Int)
,rotate(rotationOffset: CGFloat)
; - Added parameters full rotations until start deceleration and animation duration to animation API;
startAnimating(fullRotationTimeInSeconds: Int, finishIndex: Int)
changed tostartAnimating(indefiniteRotationTimeInSeconds: Int, finishIndex: Int)
- Internal code refactoring;
- Issue #2 fix;
- Text now can be separated into
lines
; - Added
line break mode
to theTextPreferences
; - Added
spacing
between lines to theTextPreferences
; - Added
alignment
to theTextPreferences
;
- Added text orientation to
TextPreferences
; preferedFontSize
removed fromTextPreferences
;flipUpsideDown
fixed;
- Fixed bug during init process;
- In
TextPreferences
,flipUpsideDown
now default value istrue
; - Playground added to
SwiftFortuneWheel
project;
startAnimating(fullRotationTimeInSeconds: Int, finishIndex: Int, _ completion:((Bool) -> Void)?)
- completion fix
- Added
line
toSlice.ContentType
andLinePreferences
. Now supports a curved line inside a slice; - Optional
backgroundColor
added toSlice
. You can now override a background color for specifiedSlice
, duringSlice
initialization; - Optional
centerImageAnchor
added toWheelPreferences
. You can now add a secondary anchor image for each slice that will be located at the center of wheel’s border; - Examples updated;
First public release