SwifterSwift v5.3.0 Release Notes
💥 Breaking Change
layerShadowRadiusto avoid naming collisions with subclasses properties defined in other modules e.g. UIKit. #897 by LucianoPAlmeida
layerCornerRadiusto avoid naming collisions with subclasses properties defined in other modules e.g. UIKit. #972 by Jayxiang
normalizedmethod, and basic division functions (
SCNVector3 / scalar, and
SCNVector3 /= scalar. #908 by thisIsTheFoxe
pick(keys:)to pick part of a dictionary with specified keys. #911 by MaratIbragimov
- ✅ XCTest
init?(bytes:)to make it easier to work with bytes (as
[UInt8]). #987 by thisIsTheFoxe
subscriptfor converting between
NSRange. #902 by guykogus
- Overloaded Swift's 'contains' operator (
Stringto check regex matching. #858 by VatoKo
regexEscaped, which returns an escaped string for inclusion in a regex pattern
~= regexto check directly against NSRegularExpression. Also added
replacingOccurrences(regex:template:options:searchRange:)as a more convenient way to replace NSRegularExpressions. #901 by gurgeous
Hashableelements for performance improvement. #912 by guykogus
first(where:equals:)to find the first element of the sequence with having property by given key path equals to given value. #836 by hamtiko
last(where:equals:)to find the last element of the sequence with having property by given key path equals to given value. #838 by hamtiko
isEnergyBurnedGoalMet. #875 by lhygilbert
masksToBounds(IBInspectable) extension. #877 by hamtiko
loadFromNib(withClass:), which loads a UIView of a particular type from a nib file. #885 by gurgeous
findConstraintfor finding an existing constraint. #886 by gurgeous
bottomConstraintfor finding specific constraints. #886 by gurgeous
UIView.subviews(ofType:)extension which returns all the subviews of a given type recursively in the view hierarchy rooted on the view it its called. #993 by ashercoelho
UIStackView.swap(_ view1:, _ view2:)extension which exchanges two views that are arranged in the stack. #989 by salahamassi
averageColor, which calculates the average UIColor for an entire image. #884 by gurgeous
withAlwaysOriginalTintColor(_:)returns a new version of the image with a tint color that uses the .alwaysOriginal rendering mode. #886 by [jayxiang][https://github.com/jayxiang]
revolutions(_:)to conveniently initialize measurement with corresponding unit. #936 by Shiva Huang
addToolbar(items:height:)to add a toolbar to a
UITextField. #954 by Randhir Kumar
- Added the
(unsafeString: String)initializer for
URLas a more conveniently to construct unsafe
- Added the
.coordinatesproperty, to return an array of coordinates for the provided
MKMultiPoint. #990 by @rizwankce.
Array.joined(separator:)to create a new
NSAttributedStringby concatenating the elements of the sequence, adding the given separator between each element. #985 by Roman Podymov.
attributedTitleForSelectedfor convenient work with attributed strings. #1001 by Roman Podymov.
hexStringto get a hexadecimal representation for all digest typed in
MD5Digest, ...). #1026 by Marco Eidinger.
init(light:dark:)to remove deployment target version restrictions. #844 by VincentSit.
enumto declare namespace instead of using
struct. Thus private initializer is no longer needed. #927 by Shiva Huang
init?(argbHexString:)to support the common ARGB format used in Android. #971 by yonat
showmethod as unavailable for
iOSAppExtensiontargets. #918 by LucianoPAlmeida
aspectFill(to:)to size SKSpriteNode with respect to aspect ratio. #490 by erikdrobne.
filter(by:)as deprecated in favor use of Key Path expressions as functions feature in Swift 5.3. #862 by Roman Podymov.
.coordinatesproperty, in favour of
MKMultiPointit should work fine. #990 by @rizwankce.
- CAGradientLayer extensions inaccessible through internal level protection. #856 by Den Andreychuk.
- Fixed a bug: When the length of a string is 0, calling truncated method will crash. #866 by phil zhang
String.base64Decodedmaking it a safe decode by ignore non-base64 characters. #961 by Jayxiang
- Fixed a bug:
Color.FlatUIcan be initialized. by Shiva Huang
Color.init?(hexString: String, transparency: CGFloat = 1)was not handling uppercase
0Xin hex prefix #947 by Zero.D.Saber
- Fixed a bug: