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
animatedWhether animating
 - 
                  
                  
Actions to take after reveal
Declaration
Swift
override func viewDidAppear(_ animated: Bool)Parameters
animatedWhether animating
 - 
                  
                  
Stop editing on touch
Declaration
Swift
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)Parameters
touchesUser touches
eventTouch event
 - 
                  
                  
Instrument and inject navigation
Declaration
Swift
override func prepare(for segue: UIStoryboardSegue, sender: Any?)Parameters
segueNavigation action
senderAction originator
 
- 
                  
                  
Handle a location selection
Declaration
Swift
func locationSearch(controller: RealmSearchViewController, didSelect item: Object)Parameters
controllersource of selection
itemCountry or Location selected
 
- 
                  
                  
Respond to edit beginning
Declaration
Swift
func textViewDidBeginEditing(_ textView: UITextView)Parameters
textViewActive edit target
 - 
                  
                  
Update remaining count
Declaration
Swift
func textViewDidChange(_ textView: UITextView)Parameters
textViewActive edit target
 - 
                  
                  
Respond to edit ending
Declaration
Swift
func textViewDidEndEditing(_ textView: UITextView)Parameters
textViewActive 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
modelDependencies
 - 
                  
                  
Enforce dependency injection
Declaration
Swift
func requireInjection() 
            View on GitHub
          
      AddPostVC Class Reference