SwiftEntryKit v0.2.4 Release Notes

  • ๐Ÿ”‹ Features

    ๐ŸŒ Explicit direction of translation animation

    EKAttributes.Animation.Translate is added an anchorPosition: AnchorPosition property:

    That means that an entry can translate from the top and exit from the bottom, and vice versa.

    /** Describes the anchor position */
    public enum AnchorPosition {
        /** Top position - the entry shows from top or exits towards the top */
        case top
        /** Bottom position - the entry shows from bottom or exits towards the bottom */
        case bottom
        /** Automatic position - the entry shows and exits according to EKAttributes.Position value. If the position of the entry is top, bottom, the entry's translation anchor is top, bottom - respectively.*/
        case automatic

    ๐ŸŒ anchorPosition is determined the direction of the translation animation and is .automatic by default, meaning that the anchor is set automatically according to its position - if the position (EKAttributes.Position) is .top / bottom, then the entry enters and exit from the top / bottom edge.