Add Xcode code snippet