A way to populate Picker and then use this data to populate another data model with relationship

My problem is that I have two Models in my app – Car and Refuel. First one is to contain just a name of a car. User can have few cars. When a user refuels a tank and wants to log it, he selects a car from those previously saved and fills out the rest of the data. The issue that I’m having, is that my app crashes when I try to save a model (probably because I’m setting the relationship wrong).

First error I’m getting when selecting a Car from a picker is:
Picker: the selection "RefuelApp.Car" is invalid and does not have an associated tag, this will give undefined results.

The second one is when I’m closing the sheet (when the data should be saved):

//In Refuel.swift
@Relationship var car: Car
{
    @storageRestrictions(accesses: _$backingData, initializes: _car)
    init(initialValue) {
        _$backingData.setValue(forKey: .car, to: initialValue)
        _car = _SwiftDataNoType()
    }
    get {
        _$observationRegistrar.access(self, keyPath: .car)
        return self.getValue(forKey: .car)
    }
    set {
        _$observationRegistrar.withMutation(of: self, keyPath: .car) {
            self.setValue(forKey: .car, to: newValue) // <----- Thread 1: EXC_BREAKPOINT (code=1, subcode=0x1cc1641e0)
        }
    }
}

Here is some sample code:

RefuelEditView.swift

import SwiftUI
import SwiftData

struct RefuelEditView: View {
    @Environment(.dismiss) private var dismiss
    @Environment(.modelContext) private var modelContext
    
    @Query private var cars: [Car]
    @Bindable var refill: Refuel
    
    let isNew: Bool
    @State private var selectedCar: Car
    
    init(refill: Refuel, car: Car = Car(), isNew: Bool = false) {
        self.refill = refill
        self.isNew = isNew
        self.selectedCar = car
    }
    
    var body: some View {
        Form {
            Section(header: Text("Car")) {
                Picker(selection: $selectedCar, label: Text("Car")) {
                    Text("--None--").tag(nil as Car?)
                    ForEach(cars) { car in
                        Text(car.name).tag(car) // <----- Do not know if this is a correct way to populate a picker
                    }
                }
            }
            Section(header: Text("Refuel details")) {
                DatePicker(selection: .init(projectedValue: $refill.timestamp), label: { Text("Date") })
                HStack{
                    LabeledContent("Odometer") {
                        TextField("km", value: $refill.odo, format: .number.grouping(.automatic))
                            .keyboardType(.decimalPad)
                    }
                }
            }
       }
       .navigationTitle(isNew ? "New Refuel" : "Refuel")
        .toolbar {
            if isNew {
                ToolbarItem(placement: .confirmationAction) {
                    Button("Done") {
                        let item = refill
                        item.car = selectedCar // <----- I guess this is where I try to save it in a wrong way
                        modelContext.insert(item)
                        dismiss()
                    }
                }
                ToolbarItem(placement: .cancellationAction) {
                    Button("Cancel") {
                        modelContext.delete(refill)
                        dismiss()
                    }
                }
            }
        }
    }
}

Car.swift

import Foundation
import SwiftData

@Model
final class Car: Identifiable {
    let id = UUID()
    var name: String
    @Relationship(deleteRule: .cascade, inverse: Refuel.car) var refuels: [Refuel]?
    
    init() {
        self.name = ""
    }
    
    init(name: String) {
        self.name = name
    }
}

Refulel.swift

import Foundation
import SwiftData

@Model
final class Refuel: Identifiable {
    let id = UUID()
    @Relationship var car: Car
    var timestamp: Date
    private var odo_backend: Double = 0
    
    init(car: Car) {
        self.car = car
        self.odo_backend = 0
        self.timestamp = .now
    }
    
    init(car: Car, timestamp: Date, odo: Double) {
        self.car = car
        self.odo_backend = odo
        self.timestamp = timestamp
    }
}

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật