Skip to content

2.0.0

Compare
Choose a tag to compare
@Jeehut Jeehut released this 30 Jan 22:34
· 346 commits to main since this release

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