eleev/extensions-kit

The next 1.7.0 update

eleev opened this issue · 0 comments

eleev commented

The next update will bring support for the following extensions & improvements (the list is in development and will be changing):

Foundation

Functions

  • FunctionalComposition - is a functions that implements Functional Composition concept which allows to combine multiple functions and chain them together, in order to transform data. Consider the following construction: (doubleNumbers ->> squareNumbers ->> convertToStringArray)(array) which returns a processed array by linearly composing the functions (rather that nesting the function calls). Also the extension includes the reversed operator that composes functions in reversed order.

Data Structures

  • Lens - the update brings support for the refactored generic placeholder names (C->Whole, V->Part, U->Subpart)

Collection

  • Collection+SafeSubscript - safely checks whether the collection is able to retreive an element for the given Index, otherwise it will return nil

MutableCollection

  • MutableCollection+Shuffle - the implementation of shuffle algorithm had some performance issues - it was re-implemented from scratch

RandomAccessCollection

UIKit

Implemented custom proxy for CACornerMask struct called UICorner that is embedded into UIView. The struct allows to more conveniently encode and decode rounded corners for CoreAnimation.

UIScreen

UIView

NSLayoutConstraint

SpriteKit

SKScene

  • SKScene+ReferenceNodeFix - a small fix that resolves the default behavior for nodes that were referenced from differnet .sks files. The thing is that they do not launch their animations by default, so this small hack fixes this issue