foundation models swift example