PhotosVC
class PhotosVC : UICollectionViewController
extension PhotosVC: PhotosHeaderDelegate
extension PhotosVC: PhotoCellDelegate
extension PhotosVC: UICollectionViewDelegateFlowLayout
Base class for location and user photo display
-
Whether we can select a photo
See moreDeclaration
Swift
enum Mode -
Content state to display
Declaration
Swift
var contentState: ContentState -
Mode of presentation
Declaration
Swift
var mode: PhotosVC.Mode -
Filtered queued network actions
Declaration
Swift
var queuedPhotos: [MTPPhotoRequest] -
Whether user can add a new photo
Declaration
Swift
var canCreate: Bool { get } -
Whether a new photo is queued to upload
Declaration
Swift
var isQueued: Bool { get } -
How many photos in collection
Declaration
Swift
var photoCount: Int { get } -
Photo to be edited in Add screen
Declaration
Swift
var injectPhoto: Photo? -
Retrieve an indexed photo
Declaration
Swift
func photo(at index: Int) -> PhotoParameters
indexIndex
Return Value
Photo
-
Edit or create a new photo
Declaration
Swift
func add(photo: Photo?) -
Handle dependency injection
Declaration
Swift
func inject(mode: Mode, selection: String = "", delegate: PhotoSelectionDelegate? = nil)Parameters
modePresentation mode
selectionStarting selection if any
delegateSelection delegate
-
Inform delegate of selection
Declaration
Swift
func broadcastSelection() -
Track queued photos for possible display
Declaration
Swift
func update()
-
Declaration
Swift
func addTapped() -
Declaration
Swift
func queueTapped()
View on GitHub
PhotosVC Class Reference