---
title: "drop(while:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/just/drop(while:)"
---

# drop(while:)

## Declaration

```swift
func drop(while predicate: (Output) -> Bool) -> Optional<Output>.Publisher
```

## See Also

### Applying sequence operations to elements

- [dropFirst(_:)](combine/just/dropfirst(_:).md)
- [append(_:)](combine/just/append(_:)-7eyqj.md)
- [append(_:)](combine/just/append(_:)-7sxlu.md)
- [prepend(_:)](combine/just/prepend(_:)-39e57.md)
- [prepend(_:)](combine/just/prepend(_:)-7fg73.md)
- [prefix(_:)](combine/just/prefix(_:).md)
- [prefix(while:)](combine/just/prefix(while:).md)
