Changelog History
Page 2
-
v2.0.0 Changes
November 04, 2017API breaking changes
- ๐ Xcode 9 and Swift 4 support
- Removing
String.length
, starting with swift 4, you can directly userString.count
โจ Enhancements
- Each
UIButton
'sUIControlState
will be translated when usingtranslateSubviews
- UIApplicationExtension (iOS only)
public static func delegate<T: UIApplicationDelegate>(_ type: T.Type) -> T?
- NSMutableAttributedString:
public static func font(inText text: String, font: SwiftyFont, afterOcurrence occurence: String) -> NSMutableAttributedString public func font(_ font: SwiftyFont, afterOcurrence occurence: String) public static func font(inText text: String, font: SwiftyFont, occurences searchString: String) -> NSMutableAttributedString public func font(_ font: SwiftyFont, occurences searchString: String)
๐ Bugfixes
- ๐ Make Array subscript public
- No more duplicate letter when using String's
capitalizedFirst
-
v1.0.0 Changes
March 17, 2017In order to reach 1.0, SwiftyUtils got a huge cleanup:
- Removing extensions /classes that didn't fit in the library's spirit
- Renaming methods to make them more Swifty
- Introducing dozens of new extensions
- โ Adding a few missing tests
- โก๏ธ Updating the docs
- ...
๐ Since that release contains a lot of changes we won't details them all.
๐ We are really sorry to introduce that many breaking changes, but it was a mandatory cost to release 1.0! Also, the future release should have none (or a very low number) breaking changes and a lot of new features ๐
Many thanks to Sweepr777 for reviewing all the PRs!
-
v0.7.0 Changes
January 15, 2017API breaking changes
- โก๏ธ Some APIs have been updated to follow the Swift 3 API guidelines, check out the README for more information
โจ Enhancements
๐ Note: Take a look into the README to see the details of all the following enhancements
- UILabelExtension (iOS only)
public func setLineHeight(_ lineHeight: CGFloat)
- CGRectExtension
public var x: CGFloat public var y: CGFloat public func with(x: CGFloat) -> CGRect public func with(y: CGFloat) -> CGRect public func with(width: CGFloat) -> CGRect public func with(height: CGFloat) -> CGRect public func with(origin: CGPoint) -> CGFloat public func with(size: CGSize) -> CGFloat
- UIViewExtension and NSViewExtension
public var x: CGFloat public var y: CGFloat public var width: CGFloat public var height: CGFloat
-
v0.6.0 Changes
November 18, 2016API breaking changes
NSDate
is now used asDate
โจ Enhancements
๐ Note: Take a look into the README to see the details of all the following enhancements
๐ New protocols available:
- Iteratable
๐ New extensions:
- CGFloatLiteral (Integer / Float extension):
public var f: CGFloat
- Array
subscript(safe index: Int) -> Element?
- Sugar syntax for
Date
Too many things to be described here... check the README
- UILabelExtension (iOS only)
func isTruncated() -> Bool func setText(_ text: String, truncatedText: String)
๐ New extensions for macOS:
- NSView:
func convertLocalizables()
-
v0.5.0 Changes
September 14, 2016API breaking changes
- ๐ Swift 3 support. README is up to date, please report if you find any diffs
- โก๏ธ Some APIs have been updated to be more swifty, check out the README for more information
๐ Classes removed:
- Async
๐ Extensions removed:
- ๐ป {UI/NS}Color:
convenience init(hex: String, alpha: Float)
- UIDevice:
class func deviceModel() -> String
โจ Enhancements
๐ Note: Take a look into the README to see the details of all the following enhancements
- ๐ watchOS support
๐ New classes:
- โ UITesting
- โ UnitTesting
๐ New iOS classes:
- Simulator
๐ New extensions:
- Color:
var redComponent: Int var greenComponent: Int var blueComponent: Int var alpha: CGFloat
- String:
init?(value: Float, maxDigits: Int) init?(value: Double, maxDigits: Int)
- Bundle (now available for the fourth platforms):
var appName: String var appVersion: String var appBuild: String var schemes: String var mainScheme: String
๐ New iOS extensions:
- UIStoryboard:
static var main: UIStoryboard
- UISwitch:
func toggle(animated: Bool = true)
- UIImage:
var original: UIImage var template: UIImage
-
v0.4.0 Changes
September 11, 2016API breaking changes
- โก๏ธ Color extension initializer has been updated:
convenience init?(hexString: String) convenience init?(hexString: String, alpha: Float)
becomes
convenience init(hex: String) convenience init(hex: String, alpha: Float)
โจ Enhancements
๐ Note: Take a look into the README to see the details of all the following enhancements
๐ New protocols available:
- Then
- ๐ NSBundle is now available for macOS
๐ New extensions:
- Color:
func darker(amount: CGFloat = 0.25) -> SwiftyColor func lighter(amount: CGFloat = 0.25) -> SwiftyColor
- UIImage:
func filled(with color: UIColor?) -> UIImage
-
v0.3.0 Changes
May 19, 2016API breaking changes
- Creating an UIImage from UIColor is now more swifty:
UIImage(color: .orangeColor())
instead ofUIImage.imageWithTintColor(.orangeColor())
โจ Enhancements
๐ Note: Take a look into the README to see the details of all the following enhancements
๐ New extensions:
- NSNotificationCenter:
func postNotification(name name: String, object: AnyObject? = nil, userInfo: [NSObject : AnyObject]? = nil, queue: dispatch_queue_t)
๐ New iOS extensions:
- UIAlertController:
static func show(title title: String, message: String, cancelTitle: String = "OK")
- UIApplication:
func topViewController() -> UIViewController?
- UIDevice
func forceRotation(orientation: UIInterfaceOrientation)
- Creating an UIImage from UIColor is now more swifty:
-
v0.2.0 Changes
May 09, 2016โจ Enhancements
๐ Note: Take a look into the README to see the details of all the following enhancements
๐ New extensions:
- CollectionType:
func shuffle()
- MutableCollectionType:
func shuffleInPlace()
- NSLayoutConstraint:
func applyMultiplier(multiplier: CGFloat, toView: SwiftyView)
- NSURL:
func addSkipBackupAttribute()
- NSRange:
init(rangeOf textToFind: String, in text: String)
๐ New iOS extensions:
- UIViewController:
func deletePreviousViewControllers() func setupBackButton(hidden hidden: Bool = false, title: String = "", backIndicatorImage: UIImage? = nil, tintColor: UIColor? = UIColor.whiteColor()) func setupRightBarView(view: UIView) func setupLeftBarView(view: UIView)
-
v0.1.0 Changes
April 24, 2016First version