I want to get only 'food' image from user's album.
Can I fix or set placeholder to search 'food' automatically in PHPicker ?
I just need the way that user don't need to manually enter the 'food' and search the image.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Why iOS 17's lift subject returns jagged edge and low resolution result image ?
The output quality is totally different from iOS16.
Does this just occur to beta version? or will it be the same in real iOS17 release version ?
I am writing code with PHAsset and getting this error "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)
when code PHAsset.fetchAssets(with: optionForallPhotos) is executed.
Can someone help me ?
Below is my code. I've already added Photo library access auth request in the Info.plist
class PhotoData {
private let fetchLimit: Int = 300
private let modelInputResolution: CGSize = CGSize(width: 100, height: 100)
private let imageRequestOptions = PHImageRequestOptions()
private var allPhotos: PHFetchResult<PHAsset>!
var phAssets: [PHAsset] = []
fileprivate let imageManager = PHImageManager.default()
// fileprivate let imageManager = PHCachingImageManager()
// TODO - 생성자
init() {
imageRequestOptions.isSynchronous = true
imageRequestOptions.deliveryMode = PHImageRequestOptionsDeliveryMode.highQualityFormat
imageRequestOptions.resizeMode = PHImageRequestOptionsResizeMode.exact
loadPhotosFromAlbum()
}
func loadPhotosFromAlbum() {
// load all photos
let optionForallPhotos = PHFetchOptions()
optionForallPhotos.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)]
// optionForallPhotos.fetchLimit = fetchLimit
allPhotos = PHAsset.fetchAssets(with: optionForallPhotos)
// allPhotos = PHAsset.fetchAssets(with: .image, options: nil)
}
}
I want to search for the photos of specific category from user's photo album.
In the native iOS photo app, there's a search tab and it has 'category' menu. It seems like iOS already classified user's photo into several categories.
Is there any way that I can get the classified category(or tags?) of user's photo ?