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
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ view.addSubview(slider!)
70
70
### Members and Methods
71
71
#### MSCircularSlider
72
72
- `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
74
74
- `minimumValue`: the value the slider takes at angle 0° - default 0.0
75
75
- `maximumValue`: the value the slider takes at maximumAngle - default 100.0
76
76
- `currentValue`: the value the slider has at the current angle - default 0.0
@@ -79,26 +79,26 @@ view.addSubview(slider!)
79
79
- `filledColor`: the color shown for the part "filled" by the handle - default .darkGrey
80
80
- `unfilledColor`: the color shown for the "unfilled" part of the circle - default .lightGrey
81
81
- `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
83
83
- `handleType`: indicates the type of the handle - default .largeCircle
84
84
- `handleColor`: the handle's color - default .darkGrey
85
85
- `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
87
87
- `handleHighlightable`: indicates whether the handle should _highlight_ (becomes semitransparent) while being pressed - default true
88
88
- `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
90
90
- `labelColor`: the color applied to the displayed labels - default .black
91
91
- `snapToLabels`: indicates whether the handle should _snap_ to the nearest label upon handle-release - default false
92
92
- `labelFont`: the font applied to the displayed labels - default .systemFont(ofSize: 12)
93
93
- `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
95
95
- `markerCount`: indicates the number of markers to be displayed in an evenly-distributed manner - default 0
96
96
- `markerColor`: the color applied to the displayed markers - default .darkGrey
97
97
- `markerPath`: an optional UIBezierPath to draw custom-shaped markers instead of the standard ellipse markers - default nil
98
98
- `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
100
100
- `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
102
102
- `addLabel(_ string: String)`: adds a string to the labels array and triggers required drawing methods
103
103
- `changeLabel(at index: Int, string: String)`: replaces the label's string at the given index with the provided string
104
104
- `removeLabel(at index: Int)`: removes the string from the labels array at the given index
@@ -107,7 +107,7 @@ view.addSubview(slider!)
107
107
Inherits from MSCircularSlider with the following differences
108
108
109
109
- `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
111
111
- `minimumHandlesDistance`: indicates the minimum arc length between the two handles - default 10.0
112
112
- `secondCurrentValue`: the current value of the second handle - default calculated from 60° angle
113
113
- `snapToLabels`: from the super class - overridden and made unavailable
@@ -117,7 +117,7 @@ Inherits from MSCircularSlider with the following differences
117
117
Inherits from MSCircularSlider with the following differences
118
118
119
119
- `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
121
121
- `addColor(_ color: UIColor)`: adds a color to the gradientColors array and triggers required drawing methods
122
122
- `changeColor(at index: Int, newColor: UIColor)`: replaces the color at the given index with the provided newColor
123
123
- `removeColor(at index: Int)`: removes the color from the gradientColors array at the given index
0 commit comments