Hello, i have a route with many points for routes:
@Model
public class Route(){
public id: UUID = UUID()
var name: String
var desc: String
var points: [Point] = []
}
@Model
public class Point(){
public id: UUID = UUID()
var speed: double
var route : Route
}
when I like to add point. route.point.append(point) I get all ways this error:
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x1cc1698ec)
my Xcode version 15.3