add swift and dashboard part, sample