Newly

public class Newly: NSObject

Newly is a drop in solution to add Twitter/Facebook/Linkedin style, new updates/tweets/posts available button. It can be used to notify user about new content availability and can other actions can be triggers using its delegate method.

  • Newly Delegate

    Declaration

    Swift

    public var delegate:NewlyDelegate?
  • Whether Newly is currently visible.

    Declaration

    Swift

    public var isUpdateVisible = Bool()
  • It defines whether Newly should hide on touch, default is true.

    Declaration

    Swift

    public var hideOnTouch = Bool()
  • Animation interval to show and hide newly on screen.

    Declaration

    Swift

    public var animationInterval:TimeInterval?
  • Height from top at which Newly should be displayed.

    Declaration

    Swift

    public var heightOffset:CGFloat?
  • Background colour for Newly

    Declaration

    Swift

    public var backgroundColor:UIColor?
  • Text colour for Newly

    Declaration

    Swift

    public var textColor:UIColor?
  • Initializers

    Declaration

    Swift

    public override init()
  • Shows Newly updates available button with animation

    Declaration

    Swift

    public func showUpdate(message:String) -> Void

    Parameters

    message

    text message to be shown in Newly update

  • Hides Newly with animation

    Declaration

    Swift

    public func hideUpdate() -> Void