wip
This commit is contained in:
parent
36d030b696
commit
efaaf0a4dc
|
@ -16,5 +16,4 @@ enum SharingAction: Stateable {
|
||||||
case galleryItemsUpdated(items: [SharingGalleryItem])
|
case galleryItemsUpdated(items: [SharingGalleryItem])
|
||||||
|
|
||||||
case cameraCaptured(media: Data, type: SharingCameraMediaType)
|
case cameraCaptured(media: Data, type: SharingCameraMediaType)
|
||||||
// case flushCameraCaptured
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,6 @@ extension SharingState {
|
||||||
case .setGalleryAccess(let granted):
|
case .setGalleryAccess(let granted):
|
||||||
state.isGalleryAccessGranted = granted
|
state.isGalleryAccessGranted = granted
|
||||||
|
|
||||||
// case .cameraCaptured(let media, let type):
|
|
||||||
// state.cameraCapturedMedia = media
|
|
||||||
// state.cameraCapturedMediaType = type
|
|
||||||
//
|
|
||||||
// case .flushCameraCaptured:
|
|
||||||
// state.cameraCapturedMedia = Data()
|
|
||||||
// state.cameraCapturedMediaType = .photo
|
|
||||||
|
|
||||||
case .galleryItemsUpdated(let items):
|
case .galleryItemsUpdated(let items):
|
||||||
state.galleryItems = items
|
state.galleryItems = items
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,6 @@ struct SharingState: Stateable {
|
||||||
var isCameraAccessGranted: Bool
|
var isCameraAccessGranted: Bool
|
||||||
var isGalleryAccessGranted: Bool
|
var isGalleryAccessGranted: Bool
|
||||||
|
|
||||||
// var cameraCapturedMedia: Data
|
|
||||||
// var cameraCapturedMediaType: SharingCameraMediaType
|
|
||||||
|
|
||||||
var galleryItems: [SharingGalleryItem]
|
var galleryItems: [SharingGalleryItem]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,9 +27,6 @@ extension SharingState {
|
||||||
isCameraAccessGranted = false
|
isCameraAccessGranted = false
|
||||||
isGalleryAccessGranted = false
|
isGalleryAccessGranted = false
|
||||||
|
|
||||||
// cameraCapturedMedia = Data()
|
|
||||||
// cameraCapturedMediaType = .photo
|
|
||||||
|
|
||||||
galleryItems = []
|
galleryItems = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue