This commit is contained in:
fmodf 2024-07-16 13:56:06 +02:00
parent 36d030b696
commit efaaf0a4dc
3 changed files with 0 additions and 15 deletions

View file

@ -16,5 +16,4 @@ enum SharingAction: Stateable {
case galleryItemsUpdated(items: [SharingGalleryItem])
case cameraCaptured(media: Data, type: SharingCameraMediaType)
// case flushCameraCaptured
}

View file

@ -12,14 +12,6 @@ extension SharingState {
case .setGalleryAccess(let 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):
state.galleryItems = items

View file

@ -17,9 +17,6 @@ struct SharingState: Stateable {
var isCameraAccessGranted: Bool
var isGalleryAccessGranted: Bool
// var cameraCapturedMedia: Data
// var cameraCapturedMediaType: SharingCameraMediaType
var galleryItems: [SharingGalleryItem]
}
@ -30,9 +27,6 @@ extension SharingState {
isCameraAccessGranted = false
isGalleryAccessGranted = false
// cameraCapturedMedia = Data()
// cameraCapturedMediaType = .photo
galleryItems = []
}
}