Skip to content

Releases: trifork/TriforkSwiftExtensions

2.0.2

02 Feb 11:14
dfd43f9
Compare
Choose a tag to compare

Fixes issue where String.isEmail could return true, for invalid email addresses with spaces.

2.0.1

13 Dec 14:24
e88f2ae
Compare
Choose a tag to compare

iOS 9.0 is now supported again! @ktvtrifork figured out how we could solve the problem, that was introduced by Xcode 13.

The 1.5.1 workaround version is no longer needed for projects pre iOS 11.

2.0.0

23 Sep 07:15
Compare
Choose a tag to compare

Bumped deployment target to iOS 11, to avoid Known Issue in Xcode 13, where Combine fails to build when archiving for armv7.

From Xcode 13 release notes

Swift libraries depending on Combine may fail to build for targets including armv7 and i386 architectures. (82183186, 82189214)

Workaround: Use an updated version of the library that isn’t impacted (if available) or remove armv7 and i386 support (for example, increase the deployment target of the library to iOS 11 or higher).

1.5.1 Xcode 13.0 Workaround

23 Sep 07:13
Compare
Choose a tag to compare

⚠️ WARNING: THIS VERSION IS ONLY FOR APPS WITH DEPLOYMENT TARGETS BEFORE IOS 11. THE RECOMMENDED VERSION ABOVE IOS 11 IS 2.0.0

Removed Combine code, which causes problems for targets before iOS 11. This is a work around for a known Issue in Xcode 13.0, where Combine fails to build when archiving for armv7.

From Xcode 13 release notes

Swift libraries depending on Combine may fail to build for targets including armv7 and i386 architectures. (82183186, 82189214

Workaround: Use an updated version of the library that isn’t impacted (if available) or remove armv7 and i386 support (for example, increase the deployment target of the library to iOS 11 or higher).

1.5.1

30 Nov 14:32
Compare
Choose a tag to compare
  • Conditional flatMap and zip for Publisher.

1.5.0

16 Nov 12:42
97ba904
Compare
Choose a tag to compare
  • Combine extensions! 🥳

1.4.0

01 Oct 06:51
Compare
Choose a tag to compare

This version contains breaking changes!

  • 🗑️ Removed all deprecated functions (#69)
    • String.allMatches(withRegularExpression pattern: String) -> [String] Replacement: matches(regEx pattern: String) -> [String]
    • String.matches(withRegularExpression regExp: String) -> Bool Replacement: isMatching(regEx regExp: String, options: NSRegularExpression.Options = []) -> Bool
    • UIView.circle() Replacement: roundVerticalEdges() and roundHorizontalEdges()
  • ✏️ Renamed UIView.roundForHorizontalEdges() and UIView.roundForVerticalEdges to roundHorizontalEdges() and roundVerticalEdges()
  • 👀 Added new convinience init for UIView to set translatesAutoresizingMaskIntoConstraints on construction. (#67)
  • addSubview(_ view: UIView, withEdgeInsets inset: UIEdgeInsets) to setup edge constraints to receiver when adding. (#67)
  • 📦 Package.swift now matches the iOS Deployment Version of the Xcode Project (iOS 9).

1.3.3

24 Mar 16:26
Compare
Choose a tag to compare

🚀 Added support form SPM
👷‍♂️ Added convenience init for UIStackView

1.3.2

12 Nov 13:51
Compare
Choose a tag to compare

🩺 Added isNetworkError on Error (@kdvtrifork)

1.3.1

18 Jul 11:27
Compare
Choose a tag to compare

0️⃣ UITextView.setTextContainerInsetToZero
Result extensions. Handle results directly on the object with theResult.success and Result.failure closures.
Example:

somethingThatProducesAResult()
   .success { 
      handleSuccess()
   }.failure {
      handleFailure()
}

... and return an empty Result instance by using .success() (it will pass a Void instance).
📜 Fixed bug in UIScrollView's scroll(toPage:, animated:) and added currentPage property.
📏 Added updateHeaderViewHeight to update header and footer height for UITableView
⏫ Added round(toNearest: ) on FloatingPoint
🤓 Added toAlpha() on Bool