Regularity of the affinity dimension for some planar iterated function systems