base swift working