I don't think SWiftUI supports custom Animation, so wrap if !arrayOfCustomType.isEmpty block inside withAnimation. This will apply the easeInOut animation for the adding and/or removing items from arrayOfCustomType also,
if !arrayOfCustomType.isEmpty
withAnimation
easeInOut
arrayOfCustomType