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
{{ message }}
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
Copy file name to clipboardexpand all lines: CHANGELOG.md
+27-8
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,29 @@
1
-
# Version 1.4.3 (latest)
1
+
# Version 1.5.0 (latest)
2
+
3
+
#### Highlight: Major refactoring and making properties safer/easier to use.
4
+
5
+
- Refactored the `ringStyle` property to `ibRingStyle` and made unavailable for use with code (see below)
6
+
- Refactored `outerRingCapStyle`, and `innerRingCapStyle` into new properties and made them unavailable for code use. As these properties will only be used for interface builder, while I patiently wait for Apple to allow enums in IBInspectable properties
7
+
- Added new `ringStyle` which uses new type `UICircularProgressRingStyle` enum to make it easier and safer to assign a style to the progress ring
8
+
- Added new `outCapStyle` and `inCapStyle` enum properties of type `CGCapStyle` which again, allow for easer and safer assignment of progress ring cap styles in code.
9
+
- Refactored most of the source code to maintain a max line width of 80, cause I'm insane like that
10
+
- Updated documentation
11
+
12
+
##### Breaking Changes in 1.5.0
13
+
14
+
Due to the refactoring, any code which previously used these properties will have to use the new enumerations provided (sorry).
15
+
16
+
Also, since the `ringStyle` property was changed to `ibRingStyle` then any customized ring style inside of Interface Builder will need to be updated to use the new property, you may see a warning from interface builder. To fix these warnings: Go into the class inspector of the view, under `User Defined Run Time Attributes` remove any of the `ringStyle` values. Then refresh the views by doing `Editor -> Refresh Views`
17
+
18
+
19
+
20
+
# Version 1.4.3
2
21
3
22
- Fix deprecation warning in new Xcode version from using `M_PI`
4
23
5
24
# Version 1.4.2
6
25
7
-
- Add new `fullCircle` property to the `UICircularProgressRingView`. Which removes the confusion of setting a valid end angle. For example previously if you wanted a full circle and you wanted the progress to start from the top you could do `startAngle = -90` however this would also require you to subtract 90 from the end angle, since the default is 360. This was not fully understood by some users. Now you have the option using `fullCircle` to set and forget the `startAngle` and the `endAngle` will automagically be corrected for you, thus always giving you a full circle with your desired start ange.
26
+
- Add new `fullCircle` property to the `UICircularProgressRingView`. Which removes the confusion of setting a valid end angle. For example previously if you wanted a full circle and you wanted the progress to start from the top you could do `startAngle = -90` however this would also require you to subtract 90 from the end angle, since the default is 360. This was not fully understood by some users. Now you have the option using `fullCircle` to set and forget the `startAngle` and the `endAngle` will automagically be corrected for you, thus always giving you a full circle with your desired start angle.
8
27
- Update some Xcode unit tests
9
28
- Update documentation to include new `fullCircle` property
10
29
@@ -18,7 +37,7 @@ With the addition of the `fullCircle` property which is `true` by default anyone
18
37
19
38
#### Breaking API Changes in 1.4.1
20
39
21
-
Nothing really, but previously if you had not set the `valueIndicator` property then there would be no value indicator shown to the right of the value. This was not inteded and has been fixed in this release. If you prefer to have no value indicator, you must now explicitly set the property to empty
40
+
Nothing really, but previously if you had not set the `valueIndicator` property then there would be no value indicator shown to the right of the value. This was not intended and has been fixed in this release. If you prefer to have no value indicator, you must now explicitly set the property to empty
22
41
23
42
```swift
24
43
ring.valueIndicator=""
@@ -37,7 +56,7 @@ ring.valueIndicator = ""
37
56
38
57
__Why was this done?__
39
58
40
-
This made sense to do because it was slightly confusing how to accomplish fonts and interface builder since apple does not add support for `IBDesignable` fonts. I've decided to sacrifice the interface builder support for code only font management, because this leads to safer use of fonts since the view is no longer handeling the creation of `UIFont` itself. This also adds more customization to the view since previously you could only change the font size and font. Now users can do whatever is allowed with UIFont, such as using defined font families, etc.
59
+
This made sense to do because it was slightly confusing how to accomplish fonts and interface builder since apple does not add support for `IBDesignable` fonts. I've decided to sacrifice the interface builder support for code only font management, because this leads to safer use of fonts since the view is no longer handleing the creation of `UIFont` itself. This also adds more customization to the view since previously you could only change the font size and font. Now users can do whatever is allowed with UIFont, such as using defined font families, etc.
41
60
42
61
# Version 1.3.0
43
62
@@ -73,10 +92,10 @@ This made sense to do because it was slightly confusing how to accomplish fonts
73
92
74
93
# Version 1.1.8
75
94
76
-
- Remove overriden`draw(rect:)` method to avoid any issues with performance and iOS drawing
95
+
- Remove overridden`draw(rect:)` method to avoid any issues with performance and iOS drawing
77
96
- Implemented `prepareForInterfaceBuilder` to still allow for IB designing
78
97
79
-
- Remove strong refrence to delegate
98
+
- Remove strong reference to delegate
80
99
- UICircularProgressRingDelegate is now a class protocol
81
100
- UICircularProgressRingDelegate inside of UICircularProgressRingView is now weak to avoid retain cycle
82
101
@@ -96,12 +115,12 @@ Thanks to [@DeepAnchor](https://github.com/DeepAnchor) for the fix!
96
115
97
116
Lower required iOS version to iOS 8.0
98
117
99
-
- Lower podspec for compatability with iOS 8.0
118
+
- Lower podspec for compatibility with iOS 8.0
100
119
- Lower project deployment target to 8.0
101
120
102
121
# Version 1.1.5
103
122
104
-
Fix inaccesible ring value thanks to [@DaveKim](https://github.com/davekim)
123
+
Fix inaccessible ring value thanks to [@DaveKim](https://github.com/davekim)
105
124
106
125
- Update delegate method parameters for more Swift like method names/parameters
0 commit comments