Add Motion API sample for Xcode