SwifterSwift v3.1.1 Release Notes

  • API Breaking

    N/A

    โœจ Enhancements

    • New NSAttributedString extensions
      • added NSAttributedString + NSAttributedString operator to return a new appended NSAttributedString.
      • added NSAttributedString += String operator to append a string to a NSAttributedString.
      • added NSAttributedString + String operator to return a new appended NSAttributedString. #218 by @LucianoPAlmeida
    • New UIColor extensions
      • added flatUI struct with all Flat UI colors. #213 by @tache
      • added coreImageColor property to return CoreImage.CIColor. #213 by @tache
      • added hsbaComponents property to get components of hue, saturation, and brightness, and alpha. #213 by @tache
      • added uInt property to get components of hue, saturation, and brightness, and alpha as UInt. #213 by @tache
    • New NSColor extensions
      • added flatUI struct with all Flat UI colors. #213 by @tache
    • New UIImage extensions
      • added tint() to get UIImage tinted with color. #213 by @tache
    • New SignedNumber extensions. #224 by @omaralbeik
      • moved abs from FloatingPointExtensions and IntExtensions
      • moved isPositive from FloatingPointExtensions and IntExtensions
      • moved isNegative from FloatingPointExtensions and IntExtensions
      • moved string from FloatingPointExtensions and IntExtensions
      • moved asLocaleCurrency from FloatingPointExtensions and IntExtensions
    • New SignedInteger extensions. #224 by @omaralbeik
      • moved isEven from IntExtensions
      • moved isOdd from IntExtensions
      • moved digits from IntExtensions
      • moved digitsCount from IntExtensions
      • moved timeString from IntExtensions
      • moved gcd(of n) from IntExtensions
      • moved lcm(of n) from IntExtensions
    • โž• Added SwifterSwift module_name to podspecs file to help solving conflicts with other 3rd party libraries. #226 by @omaralbeik
    • ๐Ÿšš Moved missing examples from the old docs. #216 by @LucianoPAlmeida
    • ๐Ÿ†• New Int extensions
      • added isPrime() to check if integer is prime number. #221 by @pvtmert
    • ๐Ÿ‘Œ Improve sum & average extensions by not relying on reduce. #225 by @SD10
    • ๐Ÿ†• New SVG logo in README! by @omaralbeik

    ๐Ÿ›  Bugfixes