Is SwiftData created specifically for SwiftUI?

Many of Apple's tutorials on SwiftData are written alongside SwiftUI, including the sample code.

Would it be a bad idea to use SwiftData separately? If I don't use SwiftUI, would it be wiser to choose a different database instead?

I found this example https://www.hackingwithswift.com/quick-start/swiftdata/how-to-use-swiftdata-with-uikit

No, SwiftData can be used with UIKit for instance, not requiring SwiftUI.

Is SwiftData created specifically for SwiftUI?
 
 
Q