PostsVC
class PostsVC : UITableViewController
extension PostsVC: PostHeaderDelegate
extension PostsVC: PostCellDelegate
                Base class for user and location post pages
- 
                  
                  
Whether user can add a new post
Declaration
Swift
var canCreate: Bool { get } - 
                  
                  
Whether a new post is queued to upload
Declaration
Swift
var isQueued: Bool { get } - 
                  
                  
Post to be edited in Add screen
Declaration
Swift
var injectPost: PostCellModel? - 
                  
                  
Type of view presenting this controller
Declaration
Swift
var presenter: Presenter { get } - 
                  
                  
Edit or create a new Post
Declaration
Swift
func add(post: PostCellModel?) - 
                  
                  
Present user profile
Declaration
Swift
func show(user: User)Parameters
userUser to present
 - 
                  
                  
Content state to display
Declaration
Swift
var contentState: ContentState - 
                  
                  
Data models
Declaration
Swift
var models: [PostCellModel] - 
                  
                  
Filtered queued network actions
Declaration
Swift
var queuedPosts: [MTPPostRequest] - 
                  
                  
expect descendants to call update() at endConstruct cell models
Declaration
Swift
func cellModels(from posts: [Post]) -> [PostCellModel]Parameters
postsList of posts
Return Value
List of displayable models
 - 
                  
                  
Track queued posts for possible display Expect descendants to call update() at end of viewDidLoad()
Declaration
Swift
func update() 
- 
                  
                  
Declaration
Swift
func addTapped() - 
                  
                  
Declaration
Swift
func queueTapped() 
            View on GitHub
          
      PostsVC Class Reference