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
CALayerextensionapplySketchShadow(...)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
ObjectRelationDeletableprotocol viapublic
Extra 1.1.0
New extensions
UILabelextension: make the UILabel width and height computed value simpler!width(fitting containerHeight: CGFloat, string: String, attributes: [NSAttributedStringKey: Any]) -> CGFloatheight(fitting containerWidth: CGFloat, string: String, attributes: [NSAttributedStringKey: Any]) -> CGFloat
UITextViewextensionsetNoPadding()method to avoids the default iOS system padding
UITableViewextensionscrollToTop()
UIButtonextensionconfigureTitle(with title: String, font: UIFont, color: UIColor, highlightedColor: UIColor? = nil)configureBackground(with color: UIColor, highlightedColor: UIColor? = nil)
Additions
Sequenceextension :withoutDuplicates()method withEquatableconformance
UIApplicationextension :isLandscape()andisPortrait()methods
UIViewControllerextensiondismissAllPresented(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
ObjectRelationDeletableprotocol: 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
removeChildViewControllermethod, 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,
didMoveToParentwas 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