Releases: trifork/TriforkSwiftExtensions
2.0.2
2.0.1
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
Bumped deployment target to iOS 11, to avoid Known Issue in Xcode 13, where Combine fails to build when archiving for armv7.
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
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
1.5.0
1.4.0
This version contains breaking changes!
- ποΈ Removed all deprecated functions (#69)
Replacement:String.allMatches(withRegularExpression pattern: String) -> [String]
matches(regEx pattern: String) -> [String]
Replacement:String.matches(withRegularExpression regExp: String) -> Bool
isMatching(regEx regExp: String, options: NSRegularExpression.Options = []) -> Bool
Replacement:UIView.circle()
roundVerticalEdges()
androundHorizontalEdges()
- βοΈ Renamed
andUIView.roundForHorizontalEdges()
toUIView.roundForVerticalEdges
roundHorizontalEdges()
androundVerticalEdges()
- π Added new
convinience init
forUIView
to settranslatesAutoresizingMaskIntoConstraints
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
1.3.2
1.3.1
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