The Objective-C way to get the assetIdentifier would be something like
(void)selectPressed:(id)sender{
		PHPhotoLibrary *photoLibrary = [PHPhotoLibrary sharedPhotoLibrary];
		PHPickerConfiguration *config = [[PHPickerConfiguration alloc] initWithPhotoLibrary: photoLibrary];
		config.selectionLimit = 1;
		config.filter = [PHPickerFilter videosFilter];
		PHPickerViewController *pickerViewController = [[PHPickerViewController alloc] initWithConfiguration:config];
		pickerViewController.delegate = self;
		[self presentViewController:pickerViewController animated:YES completion:nil];
}
(void)picker:(PHPickerViewController *)picker didFinishPicking:(NSArray<PHPickerResult *> *)results{
		[picker dismissViewControllerAnimated:YES completion:nil];	
		for (PHPickerResult *result in results) {
				NSArray *assetIdentifiers = @[result.assetIdentifier];
				PHFetchResult *assetResults = [PHAsset fetchAssetsWithLocalIdentifiers:assetIdentifiers options:nil];
				// Do something with the assetResults if you have Photos Library access
		}
}
Topic:
Media Technologies
SubTopic:
Photos & Camera
Tags: