swift heritance