Source Code for Swift and Objective C