TrashCanView

@objcMembers public final class TrashCanView: UIView

An area containing a button for an animatable trash can.

  • The trash can button

    Declaration

    Swift

    public let button = UIButton(type: .system)
  • Creates the trash can button with an image.

    Declaration

    Swift

    public required init(imageNamed imageName: String, size: CGSize? = nil)
  • Sets the amount of padding that should be added around the trash can button.

    Declaration

    Swift

    public func setButtonPadding(
        top: CGFloat, leading: CGFloat, bottom: CGFloat, trailing: CGFloat)
  • Sets the highlighted state for the trash can view.

    Declaration

    Swift

    public func setHighlighted(_ highlighted: Bool, animated: Bool)