---
title: "lockFocusFlipped(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsimage/lockfocusflipped(_:)"
---

# lockFocusFlipped(_:)

Prepares the image to receive drawing commands using the specified flipped state.

## Declaration

```swift
func lockFocusFlipped(_ flipped: Bool)
```

## Parameters

- `flipped`: doc://com.apple.documentation/documentation/Swift/true if the drawing context should be flipped, otherwise doc://com.apple.documentation/documentation/Swift/false.

## See Also

### Instance Methods

- [lockFocus()](appkit/nsimage/lockfocus().md)
- [unlockFocus()](appkit/nsimage/unlockfocus().md)
- [init(iconRef:)](appkit/nsimage/init(iconref:).md)
