Skip to content

Releases: smartnsoft/Extra

1.3.0

09 Apr 08:57
Compare
Choose a tag to compare
Merge branch 'develop'

Extra 1.2.0

12 Oct 16:52
1356369
Compare
Choose a tag to compare

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 extension
    • applySketchShadow(...) Reproduces and applies a shadow that nearly perfectly matches the design according to Zeplin or Sketch parameters.

Extra 1.1.1

23 Feb 08:13
Compare
Choose a tag to compare

Fixes

  • Avoids ugly animated resizing during a switch of childViewControllers, by updated the frame before the transition
  • Expose the ObjectRelationDeletable protocol via public

Extra 1.1.0

23 Feb 08:10
a1504cb
Compare
Choose a tag to compare

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 extension
    • setNoPadding() method to avoids the default iOS system padding
  • UITableView extension
    • scrollToTop()
  • UIButton extension
    • configureTitle(with title: String, font: UIFont, color: UIColor, highlightedColor: UIColor? = nil)
    • configureBackground(with color: UIColor, highlightedColor: UIColor? = nil)

Additions

  • Sequence extension :
    • withoutDuplicates() method with Equatable conformance
  • UIApplication extension :
    • isLandscape() and isPortrait() methods
  • UIViewController extension
    • dismissAllPresented(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

Extra 1.0.0

17 Nov 14:27
Compare
Choose a tag to compare

API Breaking Changes

  • Swift 4 compatibility
  • Up To Realm 3.X

Extra 0.6.2

04 Sep 17:30
Compare
Choose a tag to compare

Bugfixes

  • Add constraints on Switch Child method to improve display child view display. Bad display can occurs.

0.6.1

04 Sep 08:44
Compare
Choose a tag to compare

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, didMoveToParent was missing, sorry about that.

Extra 0.6.0

22 Aug 18:40
Compare
Choose a tag to compare

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

13 May 10:21
Compare
Choose a tag to compare

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