Skip to content

Commit b5a0be3

Browse files
Update README.md
1 parent 3870e47 commit b5a0be3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ view.addSubview(slider!)
7070
### Members and Methods
7171
#### MSCircularSlider
7272
- `delegate`: takes a class conforming to MSCircularSliderDelegate and handles delegation - default nil
73-
note: please check the _Protocols_ segment below for more info about the abstract delegation model used
73+
- note: please check the _Protocols_ segment below for more info about the abstract delegation model used
7474
- `minimumValue`: the value the slider takes at angle 0° - default 0.0
7575
- `maximumValue`: the value the slider takes at maximumAngle - default 100.0
7676
- `currentValue`: the value the slider has at the current angle - default 0.0
@@ -79,26 +79,26 @@ view.addSubview(slider!)
7979
- `filledColor`: the color shown for the part "filled" by the handle - default .darkGrey
8080
- `unfilledColor`: the color shown for the "unfilled" part of the circle - default .lightGrey
8181
- `rotationAngle`: the rotation transformation angle of the entire slider view - default calculated so that the _gap_ is facing downwards
82-
note: the slider adds an inverted rotational transformation to all of its subviews to cancel any applied rotation
82+
- note: the slider adds an inverted rotational transformation to all of its subviews to cancel any applied rotation
8383
- `handleType`: indicates the type of the handle - default .largeCircle
8484
- `handleColor`: the handle's color - default .darkGrey
8585
- `handleEnlargementPoints`: the number of points the handle is larger than lineWidth - default 10
86-
note: this property only applies to handles of types .largeCircle or .doubleCircle
86+
- note: this property only applies to handles of types .largeCircle or .doubleCircle
8787
- `handleHighlightable`: indicates whether the handle should _highlight_ (becomes semitransparent) while being pressed - default true
8888
- `labels`: the string array that contains all labels to be displayed in an evenly-distributed manner - default [ ]
89-
note: all changes to this array will not be applied instantly unless they go through the assignment operator (=). To perform changes, use the provided methods below
89+
- note: all changes to this array will not be applied instantly unless they go through the assignment operator (=). To perform changes, use the provided methods below
9090
- `labelColor`: the color applied to the displayed labels - default .black
9191
- `snapToLabels`: indicates whether the handle should _snap_ to the nearest label upon handle-release - default false
9292
- `labelFont`: the font applied to the displayed labels - default .systemFont(ofSize: 12)
9393
- `labelOffset`: the number of point labels are pushed off away from the slider's center - default 0.0
94-
note: a negative number can be used to draw the labels inwards towards the center
94+
- note: a negative number can be used to draw the labels inwards towards the center
9595
- `markerCount`: indicates the number of markers to be displayed in an evenly-distributed manner - default 0
9696
- `markerColor`: the color applied to the displayed markers - default .darkGrey
9797
- `markerPath`: an optional UIBezierPath to draw custom-shaped markers instead of the standard ellipse markers - default nil
9898
- `markerImage`: an optional UIImage to be drawn instead of the standard ellipse markers - default nil
99-
note: markerPath takes precedence over markerImage, so if both members are set, the images will not be drawn
99+
- note: markerPath takes precedence over markerImage, so if both members are set, the images will not be drawn
100100
- `snapToMarkers`: indicates whether the handle should _snap_ to the nearest marker upon handle-release - default false
101-
note: if both snapToMarkers and snapToLabels are true, the handle will be snapped to the nearest marker
101+
- note: if both snapToMarkers and snapToLabels are true, the handle will be snapped to the nearest marker
102102
- `addLabel(_ string: String)`: adds a string to the labels array and triggers required drawing methods
103103
- `changeLabel(at index: Int, string: String)`: replaces the label's string at the given index with the provided string
104104
- `removeLabel(at index: Int)`: removes the string from the labels array at the given index
@@ -107,7 +107,7 @@ view.addSubview(slider!)
107107
Inherits from MSCircularSlider with the following differences
108108
109109
- `delegate`: takes a class conforming to MSDoubleHandleCircularSliderDelegate and handles delegation - default nil
110-
note: please check the _Protocols_ segment below for more info about the abstract delegation model used
110+
- note: please check the _Protocols_ segment below for more info about the abstract delegation model used
111111
- `minimumHandlesDistance`: indicates the minimum arc length between the two handles - default 10.0
112112
- `secondCurrentValue`: the current value of the second handle - default calculated from 60° angle
113113
- `snapToLabels`: from the super class - overridden and made unavailable
@@ -117,7 +117,7 @@ Inherits from MSCircularSlider with the following differences
117117
Inherits from MSCircularSlider with the following differences
118118
119119
- `gradientColors`: the colors array upon which the gradient is calculated (as ordered in the array) - default [.lightGray, .blue, .darkGray]
120-
note: all changes to this array will not be applied instantly unless they go through the assignment operator (=). To perform changes, use the provided methods below
120+
- note: all changes to this array will not be applied instantly unless they go through the assignment operator (=). To perform changes, use the provided methods below
121121
- `addColor(_ color: UIColor)`: adds a color to the gradientColors array and triggers required drawing methods
122122
- `changeColor(at index: Int, newColor: UIColor)`: replaces the color at the given index with the provided newColor
123123
- `removeColor(at index: Int)`: removes the color from the gradientColors array at the given index

0 commit comments

Comments
 (0)