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 thereversed
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
- RandomAccessCollection+BinarySearch - implementation of
Binary Search
algorithm
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
- UIScreen+InterfaceOrientation - interace orientation for the current
UIScreen
UIView
- UIView+CACorners - convenience extension for setting and getting round corners
- UIView+BezierRoundedCorners - yet another extension for rounding corners
- UIApplication+SafeArea - adds support for
safe layout area
insets, if supported byiOS
version
NSLayoutConstraint
- NSLayoutConstraint+Animation - allows a constraint to be animated when
animated
flag is a set totrue
(default isfalse
)
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