AddPostVC
final class AddPostVC : UIViewController
extension AddPostVC: LocationSearchDelegate
extension AddPostVC: UITextViewDelegate
extension AddPostVC: KeyboardListener
extension AddPostVC: Exposing
extension AddPostVC: InterfaceBuildable
extension AddPostVC: Injectable
Handles creation and uploading of new posts to MTP
-
Prepare for reveal
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
Parameters
animated
Whether animating
-
Actions to take after reveal
Declaration
Swift
override func viewDidAppear(_ animated: Bool)
Parameters
animated
Whether animating
-
Stop editing on touch
Declaration
Swift
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
Parameters
touches
User touches
event
Touch event
-
Instrument and inject navigation
Declaration
Swift
override func prepare(for segue: UIStoryboardSegue, sender: Any?)
Parameters
segue
Navigation action
sender
Action originator
-
Handle a location selection
Declaration
Swift
func locationSearch(controller: RealmSearchViewController, didSelect item: Object)
Parameters
controller
source of selection
item
Country or Location selected
-
Respond to edit beginning
Declaration
Swift
func textViewDidBeginEditing(_ textView: UITextView)
Parameters
textView
Active edit target
-
Update remaining count
Declaration
Swift
func textViewDidChange(_ textView: UITextView)
Parameters
textView
Active edit target
-
Respond to edit ending
Declaration
Swift
func textViewDidEndEditing(_ textView: UITextView)
Parameters
textView
Active edit target
-
Scroll view for keyboard avoidance
Declaration
Swift
var keyboardScrollee: UIScrollView? { get }
-
Expose controls to UI tests
Declaration
Swift
func expose()
-
Injection enforcement for viewDidLoad
Declaration
Swift
func requireOutlets()
-
Injected dependencies
Declaration
Swift
typealias Model = (post: PostCellModel?, mappable: Mappable?)
-
Handle dependency injection
Declaration
Swift
func inject(model: Model)
Parameters
model
Dependencies
-
Enforce dependency injection
Declaration
Swift
func requireInjection()