Releases: FlineDev/HandySwift
Releases · FlineDev/HandySwift
3.0.0
Addedge
- New
Withable
protocol to init/copy objects and set properties in a convenient way on a single line.
Changed
- Upgraded to Swift 5 & Xcode 10.2.
Removed
- Remove
ExpressibleByStringLiteral
conformance ofRegex
type to only allow initialization viainit(_:options:) throws
interface.
2.8.0
Added
- New
NSRange(_:in:)
initializer for converting fromRange<String.Index>
- New
sum
computed property onSequence
types likeArray
- New
average
computed property onCollection
types withInt
orDouble
elements like[Int]
- New
fullRange
andfullNSRange
computed properties onString
Changed
- Made some APIs available in wider contexts (like
sample
inRandomAccessCollection
instead ofArray
)
2.6.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
New Features
- A
SortedArray
can now be initialized with anySequence
type - New mutating methods were added, like
insert(newElement:)
andinsert(contentsOf:)
Changed / Renamed Features
- Changes to reflect naming scheme in
Array
class in the classSortedArray
, namely:firstMatchingIndex()
was renamed toindex(where:)
subArray(toIndex:)
was renamed toprefix(upTo:)
subArray(fromIndex:)
was renamed tosuffix(from:)
- The global
delay()
method now takes a typealiasedDispatchTimeInterval
and QOS class (optional) Int(randomBelow:)
now is an optional initializer instead of returning 0 in error cases- Some more small naming changes according to the Great Swift 3 Rename
- e.g.
.strip
was renamed to.stripped()
,.mergedWith()
to.merged(with:)
etc.
- e.g.
Removed Features
- UI-related extensions were extracted to their own project: HandyUIKit, namely:
UIColor
extension- CoreGraphics extensions (
CGRect
,CGPoint
,CGSize
)
- The global
delay
method can't take.main
as its dispatch level- instead it defaults to the
.main
thread if no QOS class is specified
- instead it defaults to the