Swift Mark Function Deprecated