Skip to content

Releases: FlineDev/HandySwift

2.8.0

11 Feb 16:46
Compare
Choose a tag to compare

Added

  • New NSRange(_:in:) initializer for converting from Range<String.Index>
  • New sum computed property on Sequence types like Array
  • New average computed property on Collection types with Int or Double elements like [Int]
  • New fullRange and fullNSRange computed properties on String

Changed

  • Made some APIs available in wider contexts (like sample in RandomAccessCollection instead of Array)

2.6.0

22 Apr 14:35
Compare
Choose a tag to compare

New Features

  • New swifty Regex type built on top of the NSRegularExpression API.

2.4.0

26 Sep 08:26
Compare
Choose a tag to compare

Update to Swift 4 & Xcode 9

2.3.0

26 Apr 12:56
Compare
Choose a tag to compare

New Features

  • New sort(stable:), sorted(stable:), sort(by:stable:) and sorted(by:stable:) methods for Array type to support stable sorting in Swift

2.2.0

18 Feb 15:53
Compare
Choose a tag to compare

New Features

  • A new TimeInterval extension with unit based pseudo-init methods and getters

2.1.0

13 Feb 16:10
Compare
Choose a tag to compare

New Features

  • A new DispatchTimeInterval extension with timeInterval conversion method

2.0.0

30 Jan 22:34
Compare
Choose a tag to compare

New Features

  • A SortedArray can now be initialized with any Sequence type
  • New mutating methods were added, like insert(newElement:) and insert(contentsOf:)

Changed / Renamed Features

  • Changes to reflect naming scheme in Array class in the class SortedArray, namely:
    • firstMatchingIndex() was renamed to index(where:)
    • subArray(toIndex:) was renamed to prefix(upTo:)
    • subArray(fromIndex:) was renamed to suffix(from:)
  • The global delay() method now takes a typealiased DispatchTimeInterval 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.

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

1.4.0

11 Jan 17:05
Compare
Choose a tag to compare

New:

  • combinations(with:) method on Arrays for creating cartesian products

1.3.0

18 Sep 11:05
Compare
Choose a tag to compare

Updates the entire project to be compatible with Xcode 8 and Swift 3.

1.1.0

07 Jun 06:03
Compare
Choose a tag to compare

New:

  • Global delay(bySeconds:) { ... } method with optional dispatch level

Removed:

  • Support for OS X 10.9 (10.10+ is the new requirement)