Any notable changes to this project will be documented in this file.
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.
- Instead of assigning the
UIStatusBarStyle
, useEKAttributes.StatusBar
to define the status bar. - The benefit is an absolute control over the status bar appearance.
- New statuses:
.hidden
- Hides the status bar.inferred
- Infer the style from the previous style.
Added Carthage Support
The text of the text-fields is accessible after tapping the button using EKFormMessageView
.
Use output
property inside EKProperty.TextFieldContent
.
Keyboard support can be enabled using EKAttributes.PositionConstraints.KeyboardRelation
enum.
// 10pt bottom offset from keyboard and at least 5pts from the screen edge while the keyboard is displayed.
attributes.positionConstraints.keyboardRelation = .bind(offset: .init(bottom: 10, screenEdgeResistance: 5))
Inquire if SwiftEntryKit is currently displaying an entry:
if SwiftEntryKit.isCurrentlyDisplaying {
/* Do Something */
}
EKProperty.LabelStyle
replaced EKProperty.Label
.