wip
This commit is contained in:
parent
01f45af8f3
commit
21ca70d747
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "logo.png",
|
"filename" : "logo2.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"platform" : "ios",
|
"platform" : "ios",
|
||||||
"size" : "1024x1024"
|
"size" : "1024x1024"
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 86 KiB |
Binary file not shown.
After Width: | Height: | Size: 99 KiB |
|
@ -1,12 +1,15 @@
|
||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "ConvLogo.png",
|
"filename" : "logo2_wo_bg.png",
|
||||||
"idiom" : "universal"
|
"idiom" : "universal"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
"author" : "xcode",
|
"author" : "xcode",
|
||||||
"version" : 1
|
"version" : 1
|
||||||
|
},
|
||||||
|
"properties" : {
|
||||||
|
"template-rendering-intent" : "original"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 74 KiB |
BIN
ConversationsClassic/Resources/Assets/Images.xcassets/logo.imageset/logo2_wo_bg.png
vendored
Normal file
BIN
ConversationsClassic/Resources/Assets/Images.xcassets/logo.imageset/logo2_wo_bg.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 148 KiB |
|
@ -13,23 +13,23 @@ class MediaManager: ObservableObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func fetchPhotos() {
|
private func fetchPhotos() {
|
||||||
// let fetchOptions = PHFetchOptions()
|
let fetchOptions = PHFetchOptions()
|
||||||
// fetchOptions.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)]
|
fetchOptions.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)]
|
||||||
// let assets = PHAsset.fetchAssets(with: .image, options: fetchOptions)
|
let assets = PHAsset.fetchAssets(with: .image, options: fetchOptions)
|
||||||
//
|
|
||||||
// let manager = PHImageManager.default()
|
let manager = PHImageManager.default()
|
||||||
// let option = PHImageRequestOptions()
|
let option = PHImageRequestOptions()
|
||||||
// option.isSynchronous = true
|
option.isSynchronous = true
|
||||||
//
|
|
||||||
// assets.enumerateObjects { asset, _, _ in
|
assets.enumerateObjects { asset, _, _ in
|
||||||
// manager.requestImage(for: asset, targetSize: CGSize(width: 100, height: 100), contentMode: .aspectFit, options: option) { image, _ in
|
manager.requestImage(for: asset, targetSize: CGSize(width: 100, height: 100), contentMode: .aspectFit, options: option) { image, _ in
|
||||||
// if let image = image {
|
if let image = image {
|
||||||
// DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
// self.photos.append(image)
|
self.photos.append(image)
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setupCameraFeed() {
|
private func setupCameraFeed() {
|
||||||
|
|
|
@ -41,9 +41,10 @@ targets:
|
||||||
UILaunchStoryboardName: launchscreen.storyboard
|
UILaunchStoryboardName: launchscreen.storyboard
|
||||||
NSAppTransportSecurity:
|
NSAppTransportSecurity:
|
||||||
NSAllowsArbitraryLoads: true
|
NSAllowsArbitraryLoads: true
|
||||||
|
NSPhotoLibraryUsageDescription: Allow app to send photo from gallery in attachments
|
||||||
|
NSCameraUsageDescription: Allow app to take picture from camera and send it in atachments
|
||||||
# UIViewControllerBasedStatusBarAppearance: NO
|
# UIViewControllerBasedStatusBarAppearance: NO
|
||||||
# UIStatusBarStyle: UIStatusBarStyleLightContent
|
# UIStatusBarStyle: UIStatusBarStyleLightContent
|
||||||
# NSCameraUsageDescription: Required for document and facial capture
|
|
||||||
# NSFaceIDUsageDescription: Required for accessing to account info
|
# NSFaceIDUsageDescription: Required for accessing to account info
|
||||||
# UIUserInterfaceStyle: Light
|
# UIUserInterfaceStyle: Light
|
||||||
CFBundleDisplayName: Conversations
|
CFBundleDisplayName: Conversations
|
||||||
|
|
Loading…
Reference in a new issue