Releases: FabrizioBrancati/BFKit-Swift
Releases · FabrizioBrancati/BFKit-Swift
Face ID Support
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()
andreplacingMatches(regex:, with:)
to Linux in String extension
Improved
- Improved compilation time in
blur()
function in UIImage extension - Improved
debug
andrelease
code execution on BFApp struct - Changed
generateUniqueIdentifier()
togenerateUniqueIdentifier(save: Bool = default)
in UIDevice extension to be able to keep the generated identifier across multiple sessions, defaults tofalse
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
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:)
andisTabBarVisible
in UIViewController extension
Improved
- Updated SwiftLint to 0.22.0
- Now
gradient(colors:, direction:)
returns aCAGradientLayer
as a@discardableResult
, so no changes are required
Fixed
- Fixed a bug on
substring(to:)
function on String extension #32 - Fixed non designable
UIView
s
Changed
- Changed
UIViewLinearGradientDirection
toUIViewGradientDirection
enum name and properties in UIView extension. Easy transition, rename only - Changed
smoothLinearGradient(colors:, direction:)
tosmoothGradient(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)
toeversed(preserveFormat:)
in String extension because is used instead ofreversed()
original String function
Thanks to @wdcurry for this release
macOS Support
BFKit-Swift 2.6.0
26 Jul 2017
Added
- Added macOS Support
- Added
dateSeparator
andtimeSeparator
toinit?(date:, time:)
with adefault
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
BFKit-Swift 2.5.0
4 Jul 2017
Added
- Added
init?(iso8601:)
andiso8601()
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 usesCGGradient
instead ofCAGradientLayer
- Added iPad Pro 12.9 2nd Generation and iPad Pro 10.5 devices in UIDevice extension
- Added
fade(label:, duration: = default, toString:)
andfade(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 newlocale
parameter with adefault
value, so no changes are required - Now
init?(parse dateString:, format: = default)
in Date extension has a newlocale
parameter with adefault
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
BFKit-Swift 2.4.1
1 Jun 2017
Fixed
- Fixed Swift Package Manager build on macOS
watchOS Support
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
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
Swift 3.1 Ready
BFKit-Swift 2.2.2
12 Mar 2017
Improved
- Minor changes to be Swift 3.1 ready
Better Log
BFKit-Swift 2.2.1
10 Jan 2017
Fixed
- Fixed a bug in
warning
,error
,debug
andinfo
functions in BFLog struct
Thanks to @ianrahman for this release
Cryptographically First
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
andinfo
functions in BFLog extension - Added
has(_:, caseSensitive:)
as alias ofrange(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()
andrandomFloat()
function in Number extension - Updated SwiftLint to 0.15.0
- Minor enhancements
Fixed
- Fixed a bug in
reversed(preserveFormat:)
function in String extension