I would start by modifying an existing sample app:
https://developer.apple.com/documentation/vision/detecting_objects_in_still_images
Post
Replies
Boosts
Views
Activity
Hello,
This is the developer forum.
For non-developer issues, you need to post here: https://discussions.apple.com/welcome
Spammer, please ignore
Drag and drop an image into Assets.xcassets in your project. I used "SoccerBall.png".
Then call it in ContentView like this:
(Note that you should not include the file extension in Image. Maybe that's why yours isn't working. Try using Image("IMG_3984"))
import SwiftUI
import RealityKit
import RealityKitContent
struct ContentView: View {
var body: some View {
VStack {
//Model3D(named: "Scene", bundle: realityKitContentBundle)
// .padding(.bottom, 50)
Text("Hello, world!")
Image("SoccerBall").resizable().scaledToFit()
}
.padding()
}
}
#Preview(windowStyle: .automatic) {
ContentView()
}
I can't remember but when I did this, I had to go to software update and reinstall the non-beta version of iOS.
Once you remove the beta profile, go to Software update and it should let you 'update' to the non-beta version.
Sorry, it's been a while since I did this. I can't remember exact steps.
Google says: https://support.apple.com/en-us/108763
If you create a simple test app and run it, does it work on the same device?
Seems like they are: https://forums.swift.org/t/is-equal-to/31121
I prefer to use the latter and I also prefer to use parentheses when in doubt.
If drag and drop doesn't work for some reason, you can always host a file online and navigate to it using Safari on the Simulator.
Safari should allow you to download the file and save it to the Files app.
I was able to drag and drop a pdf file from Finder onto the Simulator.
Once I did that, it launched the Files app and allowed me to save it to "On my iPhone" in the Files app.
I'm using Xcode 15.2 but on Ventura.
I think it's all browser-based so he should be able to do this on a Windows computer.
Worst case, you can register an Apple ID for him and use it with his permission, but you'll have to give him the credentials and ownership.
Having worked with many Enterprise customers, it's best to ask the client to enroll and setup the developer program, and then add you to it.
That way, once your contract ends, the client can continue to manage the app in the App Store.
I believe you're looking for RegEx:
https://developer.apple.com/documentation/swift/regex
You can set the background color to something but I don't know if you can remove it:
UISegmentedControl.appearance().backgroundColor = .red
Seems buggy for sure.
How about if you try adding a new plist or storyboard? Do those show up?