Skip to content

Releases: FabrizioBrancati/BFKit-Swift

Face ID Support

26 Dec 17:42
Compare
Choose a tag to compare

BFKit-Swift 3.1.0

26 Dec 2017

Added

  • Added BFBiometrics struct to help handling Face ID and / or Touch ID
  • Added two new custom operators on Number extension: <> and <=> to check if a number is included in a tuple of values
  • Added isUUID(), isUUIDForAPNS() and replacingMatches(regex:, with:) to Linux in String extension

Improved

  • Improved compilation time in blur() function in UIImage extension
  • Improved debug and release code execution on BFApp struct
  • Changed generateUniqueIdentifier() to generateUniqueIdentifier(save: Bool = default) in UIDevice extension to be able to keep the generated identifier across multiple sessions, defaults to false so no changes are required
  • Updated SwiftLint to 0.24.0
  • Updated README.md to latest Carthage changes

Thanks to @tomasz-czyzak for this release

Swift 4 Support

23 Sep 13:37
Compare
Choose a tag to compare

BFKit-Swift 3.0.0

23 Sep 2017

Added

  • Added support to Swift 4 and Xcode 9
  • Added support to App Extensions
  • Added setTabBarVisible(_:, animated:, duration:) and isTabBarVisible in UIViewController extension

Improved

  • Updated SwiftLint to 0.22.0
  • Now gradient(colors:, direction:) returns a CAGradientLayer as a @discardableResult, so no changes are required

Fixed

  • Fixed a bug on substring(to:) function on String extension #32
  • Fixed non designable UIViews

Changed

  • Changed UIViewLinearGradientDirection to UIViewGradientDirection enum name and properties in UIView extension. Easy transition, rename only
  • Changed smoothLinearGradient(colors:, direction:) to smoothGradient(colors:, direction:, type: = default) to allow radial gradients in UIView extension. Easy transition, thanks to default value
  • Removed appDelegate global variable
  • Changed reversed(preserveFormat: = default) to eversed(preserveFormat:) in String extension because is used instead of reversed() original String function

Thanks to @wdcurry for this release

macOS Support

26 Jul 07:27
Compare
Choose a tag to compare

BFKit-Swift 2.6.0

26 Jul 2017

Added

  • Added macOS Support
  • Added dateSeparator and timeSeparator to init?(date:, time:) with a default value, so no changes are required
  • Added flatten<T>(_ array:) generic global function in Array extension

Improved

  • Removed Apple Watch device from UIDevice extension (Can't be used)
  • Removed support for iOS 7 in UIImage extension (Refuse)
  • Improved BFPassword struct
  • Improved tests

Fixed

  • Fixed missing style in init(frame:, style:, cellSeparatorStyle:, separatorInset:, dataSource:, delegate:) in UITableView extension
  • Fixed animate(path:, count: = default, duration:, autoreverses: = default) autoreverses
  • Fixed BFButton with a default fadeDuration value
  • Fixed wrong default duration in fade(label:, duration:, toAttributedString:) in WKInterfaceController extension

Better Gradients And Dates

04 Jul 15:24
Compare
Choose a tag to compare

BFKit-Swift 2.5.0

4 Jul 2017

Added

  • Added init?(iso8601:) and iso8601() functions to create a Date from an ISO 8601 String and vice-versa in Date & String extensions
  • Added new functions in NSAttributedString extension to handle left, right, center and justified text alignment
  • Added smoothLinearGradient(colors:, direction:) function in UIView extension that uses CGGradient instead of CAGradientLayer
  • Added iPad Pro 12.9 2nd Generation and iPad Pro 10.5 devices in UIDevice extension
  • Added fade(label:, duration: = default, toString:) and fade(label:, duration: = default, toAttributedString:) animation functions in WKInterfaceController extension
  • Added Set struct extension
  • Added append(_ value:, key:) function in Dictionary extension
  • Added init?(view:) function in UIImage extension

Improved

  • Now dateString(format: = default) in Date extension has a new locale parameter with a default value, so no changes are required
  • Now init?(parse dateString:, format: = default) in Date extension has a new locale parameter with a default value, so no changes are required
  • Updated SwiftLint to 0.20.0

Fixed

  • Fixed a bug where you cannot concatenate multiple attributed strings

Swift Package Manager Returns

31 May 22:56
Compare
Choose a tag to compare

BFKit-Swift 2.4.1

1 Jun 2017

Fixed

  • Fixed Swift Package Manager build on macOS

watchOS Support

31 May 08:48
Compare
Choose a tag to compare

BFKit-Swift 2.4.0

31 May 2017

Added

  • Added watchOS support (For specific classes, structs and extensions support refer to compatibility table)
  • Added WKInterfaceController class extension for watchOS
  • Added NSAttributedString class extension
  • Added NSPointerArray class extension
  • Added isNotEmpty in Array extension
  • Added saveLog(in:, filename:) in BFLog struct to save log in a file

Improved

  • Changed Travis CI builds
  • Use of randomInt() in UIColor and Array extensions
  • Removed Glibc library for Linux
  • Updated SwiftLint to 0.19.0

Minor (Breaking) Changes

23 Apr 15:54
Compare
Choose a tag to compare

BFKit-Swift 2.3.0

23 Apr 2017

Added

  • Added dateString(format:) in Date extension
  • Added replacingOccurrences(of:, with:) in String extension

Improved

  • Changing Sound and Font enums to be more Swifty (Xcode hints will help)
  • Updated with Swift 3.1 compatibility
  • Updated SwiftLint to 0.18.1
  • Improved tests
  • mainBundlePath in FileManager extension will now return the main bundle path if no file is specified #27

Fixed

  • Fixed an issue with randomInt() function in Number extension #26

Thanks to @on123 & @jiongge for this release

Swift 3.1 Ready

12 Mar 22:21
Compare
Choose a tag to compare

BFKit-Swift 2.2.2

12 Mar 2017

Improved

  • Minor changes to be Swift 3.1 ready

Better Log

09 Jan 23:04
Compare
Choose a tag to compare

BFKit-Swift 2.2.1

10 Jan 2017

Fixed

  • Fixed a bug in warning, error, debug and info functions in BFLog struct

Thanks to @ianrahman for this release

Cryptographically First

09 Jan 00:59
Compare
Choose a tag to compare

BFKit-Swift 2.2.0

9 Jan 2017

Added

  • Added new cryptographically secure random numbers generator with random() function in Number extension
    • Available to all Integer types, Float and Double
  • Added warning, error, debug and info functions in BFLog extension
  • Added has(_:, caseSensitive:) as alias of range(of:, caseSensitive:) in String extension

Improved

  • Increased code coverage
  • General enhancements in pasteboard functions
  • Enhancements in init(barButtonSpaceType:, width:) in UIBarButtonItem extension
  • Changed the implementation of randomInt() and randomFloat() function in Number extension
  • Updated SwiftLint to 0.15.0
  • Minor enhancements

Fixed

  • Fixed a bug in reversed(preserveFormat:) function in String extension