FiveSheepCo / OrderedRelationship

A Swift macro taking away the pain in adding ordered relationships to SwiftData models
12 stars 1 forks source link

Add parameter `inverseRelationshipName` to customize the OrderedRelationship's inverse property #3

Closed e28eta closed 5 months ago

e28eta commented 5 months ago

The macro is currently hardcoded to superitem. Two main problems:

This PR also fixes a bug around containingClassName: the current implementation doesn't use the label, it just uses the first argument, even if that argument is one of the other labeled args.

I've added some tests around existing functionality and the new inverseRelationshipName