Post

Replies

Boosts

Views

Activity

Reply to SwiftUI raw image conversion
Revised code with raw file taken from Xcode asset (Still have the same issue) struct ContentView: View {   @State private var image: Image?   var body: some View {     VStack {       image?         .resizable()         .scaledToFit()     }     .onAppear(perform: loadImage)   }   func loadImage() {     guard let asset = NSDataAsset(name: "Rawsample") else { return }     let data = asset.data     image = Image(uiImage:UIImage(data:data)!)   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Extract raw + jpeg files from Photos
No - all the information is there - its just very difficult to access using the tools Apple provides.
Replies
Boosts
Views
Activity
May ’23
Reply to Apple Watch won't unlock Mac - MacOS beta 13.4
Yes same here
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to SwiftUI raw image conversion
Revised code with raw file taken from Xcode asset (Still have the same issue) struct ContentView: View {   @State private var image: Image?   var body: some View {     VStack {       image?         .resizable()         .scaledToFit()     }     .onAppear(perform: loadImage)   }   func loadImage() {     guard let asset = NSDataAsset(name: "Rawsample") else { return }     let data = asset.data     image = Image(uiImage:UIImage(data:data)!)   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to SwiftUI raw image conversion
Apparently the code should not have used AsyncImage for a local file - but the logic remains the same
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21