Split Controller written in Swift