ios samples in objective c and swift