All Versions
Latest Version
Avg Release Cycle
84 days
Latest Release

Changelog History
Page 4

  • v1.3.8 Changes



    • Added reloadData(_ completion: () -> Void).


    • Added reloadData(_ completion: () -> Void).



    • ๐Ÿ›  Fixed typos in README.

  • v1.3.7 Changes


    • Changed nearestHourQuarter to nearestQuarterHour. Thanks to Robert Nix for reporting.
    • โšก๏ธ Updated initializers to be optional.


    • fixed selected color in setColors method.

    โœ… ###Tests

  • v1.3.6 Changes


    • Fixed bugs in fadeIn, fadeOut and rotate(byAngle) methods. Thanks to bastianschilbe for reporting.
    • Removed isVisible property since it was causing many problems and not working correctly.
    • Added parentViewController property to return view's parent view controller.

  • v1.3.5 Changes


    ๐Ÿ›  Fixed a bug in DateExtensinos where the year was not set correctly. Thanks to songhailiang you for reporting this bug.

  • v1.3.4 Changes


    • func addConstraints(withFormat: String, views: UIView...): Add Visual Format constraints
    • func fillToSuperview(): Anchor all sides of the view into it's superview
    • func anchor(top: NSLayoutYAxisAnchor?, left: NSLayoutXAxisAnchor?, bottom: NSLayoutYAxisAnchor?, right: NSLayoutXAxisAnchor?, topConstant: CGFloat, leftConstant: CGFloat, bottomConstant: CGFloat, rightConstant: CGFloat, widthConstant: CGFloat, heightConstant: CGFloat) -> [NSLayoutConstraint]: Add anchors from any side of the current view into the specified anchors and returns the newly added constraints.
    • func anchorCenterXToSuperview(withConstant: CGFloat): Anchor center X into current view's superview with a constant margin value.
    • anchorCenterYToSuperview(constant: CGFloat): Anchor center Y into current view's superview with a constant margin value.
    • func anchorCenterSuperview(): Anchor center X and Y into current view's superview


    • kFormatted: String formatted for values over ยฑ1000 (example: 1k, -2k, 100k, 1kk, -5kk..)

    Thanks to Jonathan Bijos & zzjzz9266a for adding new extensions.

  • v1.3.1 Changes


    • โœ‚ removed duplicated contains a method
    • ๐Ÿšš use of reducing to remove duplicates (Thanks to sairamkotha)

  • v1.3 Changes

    This version adds more than 90 new extensions making it the widest extensions library available online for Swift 3 with more than 360 properties and methods for more than 35 type. โšก๏ธ This is the biggest update since library launch! We're so excited ๐Ÿค“

    Here are some changes:

    • โšก๏ธ Updated some properties and methods names to follow Swift API Design Guidelines.
    • โž• Added default values to methods parameters (where possible).
    • ๐Ÿ“š All units documentation has been re-written in Xcode,
      • Now you see "SwifterSwift: " at the beginning of description to know the source of the extension while writing your code.
      • All method parameters and return types have been documented in Xcode as well.
      • All extensions documentation has been re-written in Wiki, separating properties from methods in different tables.
    • All extensions files re-organized in separate extensions based on type (properties, methods, initializers, ..)
    • ๐Ÿ›  Fixed some bugs where some extensions were not public.
    • ๐Ÿ†• New section explaining how to add new extensions in Contributing Guidelines
    • And finally: new logo

  • v1.2.2 Changes

    ๐Ÿ†• New Extensions:

    โšก๏ธ Updated Extensions:

    • UIColorExtensions:
      • struct socialColors -> struct social

  • v1.2.1 Changes

    ๐Ÿ†• New Extensions:

    • ConvenienceExtensions:

      • func string(forKey: String): Get a string from UserDefaults
      • func integer(forKey: String): Get an integer from UserDefaults
      • func double(forKey: String): Get a double from UserDefaults
      • func float(forKey: String): Get a float from UserDefaults
      • func data(forKey: String): Get a data from UserDefaults
      • func bool(forKey: String): Get a bool from UserDefaults
      • func array(forKey: String): Get an array from UserDefaults
      • func dictionary(forKey: String): Get a dictionary from UserDefaults
    • StringExtensions:

      • func toDate(withFormat format: String): Return Date value from string of date format (if applicable).
      • var toURL: Return URL from string (if applicable).
    • UIAlertControllerExtensions:

      • addAction(title, style, isEnabled, handler): Add an action to Alert.
      • addTextField(text, placeholder, editingChangedTarget, editingChangedSelector): Add a text field to Alert.
    • UINavigationBarExtensions:

      • func setColors(background, text): Set Navigation Bar background and text colors.

    โšก๏ธ Updated Extensions:

    • ConvenienceExtensions:

      • var deviceHeight -> var screenHeight
      • var deviceWidth -> var screenWidth
    • ArrayExtensions:

      • func removeAll(item: Element) -> func removeAll(_ item: Element))
    • DateExtensions:

      • func add(component: Calendar.Component, value: Int) -> add(_ component: Calendar.Component, value: Int)
      • func adding(component: Calendar.Component, value: Int) -> adding(_ component: Calendar.Component, value: Int)
      • func changing(component: Calendar.Component, value: Int) -> changing(_ component: Calendar.Component, value: Int)
      • func isIn(current: Calendar.Component) -> isInCurrent(_ component: Calendar.Component)
    • StringExtensions:

      • func contain(string: String, caseSensitive: Bool) -> func contain(_ string: String, caseSensitive: Bool)
      • func lines() -> var lines
      • static func random(of length: Int) -> static func random(ofLength: Int)
      • func replace(string: String, with: String) -> func replace(_ substring: String, with: String)
      • func truncate(to length: Int, trailing: String?) -> func truncate(toLength: Int, trailing: String?)
      • func truncated(to length: Int, trailing: String? = "...") -> func truncated(to length: Int, trailing: String?)
    • UIButtonExtensions:

      • func imageForAllStates(image: UIImage) -> func setImageForAllStates(_ image: UIImage)
      • func titleColorForAllStates(color: UIColor) -> func setTitleColorForAllStates(_ color: UIColor)
      • func titleForAllStates(title: String) -> func setTitleForAllStates(_ title: String)
    • UIColorExtensions:

      • init(netHex:Int) -> init(hex:Int, transparency: CGFloat = 1)
    • UIImageExtensions:

      • func scaledToHeight(height: CGFloat, with orientation: UIImageOrientation?) -> scaled(toHeight: CGFloat, with orientation: UIImageOrientation?)
      • func scaledToWidth(width: CGFloat, with orientation: UIImageOrientation?) -> scaled(toWidth: CGFloat, with orientation: UIImageOrientation?)
    • UIImageViewExtensions:

      • func download(fromUrl: String?, contentMode: UIViewContentMode, placeHolder: UIImage?)) -> download(from: URL?, contentMode: UIViewContentMode, placeHolder: UIImage?, completionHandler: ((UIImage?, Error?) -> Void)?)
    • UISliderExtensions:

      • func setValue(value: Float, animated: Bool, duration: TimeInterval, completion: (() -> Void)? = nil) -> func setValue(_ value: Float, animated: Bool, duration: TimeInterval, completion: (() -> Void)?)
    • UITableViewExtensions:

      • var totalRows -> var numberOfRows
    • UITextFieldExtensions:

      • func setPlaceHolderTextColor(color: UIColor) -> func setPlaceHolderTextColor(_ color: UIColor)
    • UIViewExtensions:

      • func loadFromNibNamed(nibNamed: String, bundle : Bundle?) -> func loadFromNib(named: String, bundle : Bundle?)

    โœ‚ Removed Extensions:

    • StringExtensions:
      • var locale