isIosProjectPresent property
bool
get
isIosProjectPresent
Returns true if the ios/ directory exists in the project.
Use this to check if iOS support is present before attempting any iOS-specific operations.
Example
final manager = IosManager('/path/to/project');
if (!manager.isIosProjectPresent) {
print('Run "flutter create ." to add iOS support');
}
Implementation
bool get isIosProjectPresent {
return Directory(p.join(projectRoot, 'ios')).existsSync();
}