MemeChallengeViewController

open class MemeChallengeViewController: NibViewController,
    ChallengeResponderDelegate,
    UIGestureRecognizerDelegate,
    UITextFieldDelegate,
    UIPickerViewDelegate,
UIPickerViewDataSource

Undocumented

IBOutlets

  • Textfied that is used for putting caption on a separateFromImage subtype.

    Declaration

    Swift

    @IBOutlet
    public weak var captionSeparateFromImageTextField: UITextField!
  • Textfield used for selecting font size of the caption.

    Declaration

    Swift

    @IBOutlet
    public weak var fontTextField: UITextField!
  • Button used for selecting color for the caption

    Declaration

    Swift

    @IBOutlet
    public weak var colorPickerButton: UIButton!
  • View where captions and images are being add.

    Declaration

    Swift

    @IBOutlet
    public weak var canvasView: UIView!
  • Image view for the meme to respond.

    Declaration

    Swift

    @IBOutlet
    public weak var imageView: UIImageView!
  • Textfied that is used for putting caption on a overImage subtype.

    Declaration

    Swift

    @IBOutlet
    public weak var captionTextField: UITextField!
  • Button for adding the text on the captionTextField on the canvasView.

    Declaration

    Swift

    @IBOutlet
    public weak var addButton: UIButton!
  • Parent view for overImage subtype views.

    Declaration

    Swift

    @IBOutlet
    public weak var captionEditorView: UIView!

Properties

Lifecycle

  • Undocumented

    Declaration

    Swift

    override open func dismiss(animated flag: Bool, completion: (() -> Void)? = nil)
  • Undocumented

    Declaration

    Swift

    override open func viewWillAppear(_ animated: Bool)

Initializers

  • Undocumented

    Declaration

    Swift

    public convenience init(challenge: Challenge)

Open methods

  • Declaration

    Swift

    override open func setup()
  • This sets the font, text color, and size of the selected label.

    Declaration

    Swift

    open func updateSelectedCaption()
  • Update the views when a caption was tapped.

    Declaration

    Swift

    open func selectCaption(label: UILabel)
  • Reset the view’s subviews to its original state.

    Declaration

    Swift

    open func resetViews()
  • Generate a label inside the canvasView.

    Declaration

    Swift

    open func createCaptionInsideCanvas()

Actions

  • Updates the location of the panned caption.

    Declaration

    Swift

    @objc
    open func didPanCaption(_ gestureRecognizer: UIPanGestureRecognizer)
  • Selects the tapped caption.

    Declaration

    Swift

    @objc
    open func didTapCaption(_ gestureRecognizer: UITapGestureRecognizer)
  • Resets the view.

    Declaration

    Swift

    @objc
    open func dismissKeyboard()

ChallengeResponderDelegate

  • Undocumented

    Declaration

    Swift

    open func onSuccess(with apiResponse: APIResponse<Challenge.ResponseInfo>)
  • Undocumented

    Declaration

    Swift

    open func onFailure(with error: Error)

UIGestureRecognizerDelegate

  • Undocumented

    Declaration

    Swift

    open func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool

UITextFieldDelegate

UIPickerViewDelegate

UIPickerViewDataSource