File tree 2 files changed +7
-7
lines changed
mlx-swift-examples.xcodeproj
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import MLXVLM
9
9
import PhotosUI
10
10
import SwiftUI
11
11
12
- #if os(iOS)
12
+ #if os(iOS) || os(visionOS)
13
13
typealias PlatformImage = UIImage
14
14
#else
15
15
typealias PlatformImage = NSImage
@@ -63,7 +63,7 @@ struct ContentView: View {
63
63
VStack {
64
64
if let selectedImage {
65
65
Group {
66
- #if os(iOS)
66
+ #if os(iOS) || os(visionOS)
67
67
Image ( uiImage: selectedImage)
68
68
. resizable ( )
69
69
#else
@@ -99,7 +99,7 @@ struct ContentView: View {
99
99
}
100
100
101
101
HStack {
102
- #if os(iOS)
102
+ #if os(iOS) || os(visionOS)
103
103
PhotosPicker (
104
104
selection: $selectedItem,
105
105
matching: PHPickerFilter . any ( of: [
@@ -249,7 +249,7 @@ struct ContentView: View {
249
249
private func generate( ) {
250
250
Task {
251
251
if let selectedImage = selectedImage {
252
- #if os(iOS)
252
+ #if os(iOS) || os(visionOS)
253
253
let ciImage = CIImage ( image: selectedImage)
254
254
await llm. generate ( prompt: prompt, image: ciImage ?? CIImage ( ) , videoURL: nil )
255
255
#else
@@ -449,7 +449,7 @@ class VLMEvaluator {
449
449
}
450
450
}
451
451
452
- #if os(iOS)
452
+ #if os(iOS) || os(visionOS)
453
453
struct TransferableVideo: Transferable {
454
454
let url : URL
455
455
Original file line number Diff line number Diff line change 1051
1051
CURRENT_PROJECT_VERSION = 1;
1052
1052
DEBUG_INFORMATION_FORMAT = dwarf;
1053
1053
DEVELOPMENT_ASSET_PATHS = "\"Applications/VLMEval/Preview Content\"";
1054
- DEVELOPMENT_TEAM = YQZQG7N4WG ;
1054
+ DEVELOPMENT_TEAM = J5CY9Q9UP5 ;
1055
1055
ENABLE_PREVIEWS = YES;
1056
1056
ENABLE_USER_SCRIPT_SANDBOXING = YES;
1057
1057
GCC_C_LANGUAGE_STANDARD = gnu17;
1117
1117
CURRENT_PROJECT_VERSION = 1;
1118
1118
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1119
1119
DEVELOPMENT_ASSET_PATHS = "\"Applications/VLMEval/Preview Content\"";
1120
- DEVELOPMENT_TEAM = YQZQG7N4WG ;
1120
+ DEVELOPMENT_TEAM = J5CY9Q9UP5 ;
1121
1121
ENABLE_NS_ASSERTIONS = NO;
1122
1122
ENABLE_PREVIEWS = YES;
1123
1123
ENABLE_USER_SCRIPT_SANDBOXING = YES;
You can’t perform that action at this time.
0 commit comments