---
title: hasSmile
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/cifacefeature/hassmile-swift.property
---

# hasSmile

A Boolean value that indicates whether a smile is detected in the face.

## Declaration

```swift
var hasSmile: Bool { get }
```

## Discussion

Discussion To detect smiles, /CIDetector/featuresInImage:options: needs to be called with the CIDetectorSmile option set to true.

## See Also

### Identifying Facial Features

- [hasLeftEyePosition](coreimage/cifacefeature/haslefteyeposition-swift.property.md)
- [hasRightEyePosition](coreimage/cifacefeature/hasrighteyeposition-swift.property.md)
- [hasMouthPosition](coreimage/cifacefeature/hasmouthposition-swift.property.md)
- [leftEyePosition](coreimage/cifacefeature/lefteyeposition-swift.property.md)
- [rightEyePosition](coreimage/cifacefeature/righteyeposition-swift.property.md)
- [mouthPosition](coreimage/cifacefeature/mouthposition-swift.property.md)
- [leftEyeClosed](coreimage/cifacefeature/lefteyeclosed-swift.property.md)
- [rightEyeClosed](coreimage/cifacefeature/righteyeclosed-swift.property.md)
