Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-1 votes
2 answers
126 views

let results: [PHPickerResult] = [1, 2, 3] let identifiers = request.results.compactMap(\.assetIdentifier) // [1, 2, 3] let fetchResult = PHAsset.fetchAssets(withLocalIdentifiers: identifiers, options: ...
Nike Kov's user avatar
  • 14k
2 votes
0 answers
61 views

I'm building a MacOS SwiftUI app that needs to get access to the Photos library. I'm setting the value in the Info.plist: As well as file access in the Sandbox settings: struct PhotosPermissionView: ...
1 vote
0 answers
118 views

I'm working on a photos app on iOS, where I have to extract the camera information of user's photos for displaying. The problem I am facing is that the process turns out to be extremely slow and ...
Mev's user avatar
  • 1,635
0 votes
0 answers
187 views

func getAlbumAssets(albumName: String) async -> Array { var albumAssets: [AlbumAsset] = [AlbumAsset]() var albumAssetsResult = PHFetchResult<AnyObject>() let fetchOptions = PHFetchOptions() ...
4 votes
0 answers
145 views

I have an array of PHAsset (Let's say, array size is greater than 50,000), and I want to know the file size of each PHAsset. I'm trying it using PHAssetResource.assetResources but it is taking much ...
Rifat's user avatar
  • 71
1 vote
0 answers
101 views

I am trying to convert a video PHAsset to NSData for upload, but each attempt to save the data of the asset seems to lose the location metadata. Here is what I have tried: Get the AVAsset from PHAsset,...
0 votes
1 answer
389 views

When getting CreateionDate of PHAsset, the time returned is in UTC format. In order to display it correctly, so as to meet user's expectation that e.g. captured image of sunset was in the evening ...
3 votes
1 answer
4k views

I have created a way to fetch all photos and display them in a grid within a view. Upon loading the app, all seems fine, everything in the view loads properly and if I scroll through the scrollview, ...
Nat's user avatar
  • 1,922
3 votes
0 answers
210 views

This question is similar to how can I show selected image in the Photos app. I'm writing a photo gallery app that loads photos from Photos using PHImageManager.requestImage(), so for a specific low-...
0 votes
1 answer
1k views

For UIImages I am writing images with EXIF/IPTC/etc meta using Photos like: let dataBundle = mergeImageData(...) let assetChangeRequest = PHAssetCreationRequest.forAsset() let assetOptions = ...
1 vote
1 answer
971 views

I'm trying to get some photos (PHAsset's) from a user's Photos library, and convert them to UIImage's. Here's the code for fetching the assets from the library: func fetchPhotos() { ...
narner's user avatar
  • 3,221
0 votes
1 answer
110 views

I need to split video(PHAsset) to frames. Please could anyone write an extension for PHAsset for example to call function like this: extension PHAsset { func getFrame(timecode: Float) -> UIImage?...
1 vote
0 answers
179 views

I'm working on my final large portfolio project and I am attempting to create a Guess Who style game in Swift UI that allows you to upload your own images to create custom character cards. I have ...
-1 votes
1 answer
76 views

My app is successfully writing multi-gigapixel images (many billions of pixels per image). Is there a way, without reading the image as a UIImage, to add or copy the saved image to Photos? It's ...
1 vote
0 answers
219 views

After presenting the Library Picker, Trying to fetch selected video url some of the assets seems to be stored on iCloud and not locally. requestAVAssetForVideo not contains AVAsset. how to handle it? ...

15 30 50 per page
1
2 3 4 5
...
31

AltStyle によって変換されたページ (->オリジナル) /