Hi,
i programmed an app the uses MultipeerConnectivity to connect iOS-Devices to exchange Video-Files from the camera (https://pellepepper.my.canva.site/jumpcontrol). In general the solution works fine but I have some challenges:
The connection is pretty stable when there are only few other devices around. It seems to become more fragile when there are more other iOS-Devices in the area
Testing of the App worked with several meters of distance (up to 10). In real environments of athletics venues the solution is only stable in a region of about 2 meters
It seems that newer iOS-Releases make the connection more unstable. Last weekend we used it with iOS 18-Devices on older hardware, what worked fine. Integrating an iOS 26 device made trouble. Working on iPhone 13 with iOS 26 is hardly not usable.
What can I do to improve stability of the connection and therefore the App. What are the metrics to look for? Is there something I can do on the code base to make to connection more stable?
Many thx
Rainer
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
I tried to migrate some code to SwiftData and Observable...doing this I wanted to mark a ViewModel-Class with @observable but get errors when using it in combination with didSet.
What's wrong with it?!
@Observable struct LADVAthletes {
var queryName : String = "" {
didSet {
guard oldValue != queryName else { return }
guard queryName.count < 2 else {
athletesList.removeAll()
return
}
}
}
var athletesList : [Athlete] = [Athlete]()
}
I get multiple Errors saying
"Cannot find 'oldValue' in scope"
"Instance member 'queryName' cannot be used on type 'LADVAthletes'; ....
And so on...
What's wrong with it?!