Releases: smartnsoft/Extra
Releases · smartnsoft/Extra
1.3.0
Extra 1.2.0
API Breaking Changes
- Swift 4.2 compatibility
- Update RealmSwift dependency to v3.10+
- Shuffle collections methods removed from Extra (prefer new Swift 4.2 native methods)
New subspec : CoreAnimation
CALayer
extensionapplySketchShadow(...)
Reproduces and applies a shadow that nearly perfectly matches the design according to Zeplin or Sketch parameters.
Extra 1.1.1
Fixes
- Avoids ugly animated resizing during a switch of childViewControllers, by updated the frame before the transition
- Expose the
ObjectRelationDeletable
protocol viapublic
Extra 1.1.0
New extensions
UILabel
extension: make the UILabel width and height computed value simpler!width(fitting containerHeight: CGFloat, string: String, attributes: [NSAttributedStringKey: Any]) -> CGFloat
height(fitting containerWidth: CGFloat, string: String, attributes: [NSAttributedStringKey: Any]) -> CGFloat
UITextView
extensionsetNoPadding()
method to avoids the default iOS system padding
UITableView
extensionscrollToTop()
UIButton
extensionconfigureTitle(with title: String, font: UIFont, color: UIColor, highlightedColor: UIColor? = nil)
configureBackground(with color: UIColor, highlightedColor: UIColor? = nil)
Additions
Sequence
extension :withoutDuplicates()
method withEquatable
conformance
UIApplication
extension :isLandscape()
andisPortrait()
methods
UIViewController
extensiondismissAllPresented(animated: Bool = false, completion: (() -> Swift.Void)? = nil)
: Dismiss all presented view controllers recursively.
UIImage
:cutTile(with rect: CGRect) -> UIImage?
: cut and return a tile in the image with specified rect.scaledAspectFill(to size: CGSize) -> UIImage?
: creates a copy of the image simulating aspect fill to specified size
Object
(Realm) :- new
ObjectRelationDeletable
protocol: defines an object which can delete these relations by itself. Extend this protocol allows object to use delete and deleteAll extra methods. - new
add
,update
,delete
,deleteAll
(recursive) methods
- new
Extra 1.0.0
API Breaking Changes
- Swift 4 compatibility
- Up To Realm 3.X
Extra 0.6.2
Bugfixes
- Add constraints on Switch Child method to improve display child view display. Bad display can occurs.
0.6.1
Additions
- Missing
removeChildViewController
method, now available.
Improvements
- Rollback for the frame update of the child before adding it, base on its container bounds, as recommended.
Bugfixes
- Major code improvement : to correctly add child and switch them,
didMoveToParent
was missing, sorry about that.
Extra 0.6.0
Additions
- UIKit/UIView -
addDashedBorder(color:thickness:)
: set a dashed style to the layer's mask around the current view - UIKit/UIView -
addShadowBorder(color:size:)
: set a shadow to the current view on left, right and bottom edges - UIKit/UIView -
addBottomDivider(color:alpha:thickness:widthMultiplier:)
: add a bottom divider line to the current view
Enhancements
- tvOS compatibility
- Update Copyrights
- String
firstCapitalized()
method code update - Documentation update on ReadMe
Bugfixes
- Switch Childs view controller transition could be crash sometimes
Extra 0.5.1
First public release.
Available extensions
UIKit
- UIApplication
- UICollectionView
- UICollectionViewCell
- UIColor
- UIDevice
- UIImage
- UINavigationController
- UITableView
- UITableViewCell
- UIView
- UIViewController
Realm
- Object
- Results
- RealmSwift.List
Foundation
- String
- MutableCollection
- Sequence