ObjectBox's Java api has a unique entity annotation which allows you to specify a conflict strategy
@Unique(onConflict = ConflictStrategy.REPLACE)
Does the Swift api provide similar options for its unique annotation?
Not yet. Chances are good that the next version will.