---
title: "selectPreviousTab(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/selectprevioustab(_:)"
---

# selectPreviousTab(_:)

Selects the previous tab in the tab group in the leading direction.

## Declaration

```swift
@IBAction func selectPreviousTab(_ sender: Any?)
```

## Parameters

- `sender`: The object that initiated the action to select the previous tab.

## See Also

### Managing Window Tabs

- [allowsAutomaticWindowTabbing](appkit/nswindow/allowsautomaticwindowtabbing.md)
- [userTabbingPreference](appkit/nswindow/usertabbingpreference-swift.type.property.md)
- [tab](appkit/nswindow/tab.md)
- [tabbingIdentifier](appkit/nswindow/tabbingidentifier-swift.property.md)
- [NSWindow.TabbingIdentifier](appkit/nswindow/tabbingidentifier-swift.typealias.md)
- [addTabbedWindow(_:ordered:)](appkit/nswindow/addtabbedwindow(_:ordered:).md)
- [tabbingMode](appkit/nswindow/tabbingmode-swift.property.md)
- [tabbedWindows](appkit/nswindow/tabbedwindows.md)
- [mergeAllWindows(_:)](appkit/nswindow/mergeallwindows(_:).md)
- [selectNextTab(_:)](appkit/nswindow/selectnexttab(_:).md)
- [moveTabToNewWindow(_:)](appkit/nswindow/movetabtonewwindow(_:).md)
- [toggleTabBar(_:)](appkit/nswindow/toggletabbar(_:).md)
- [toggleTabOverview(_:)](appkit/nswindow/toggletaboverview(_:).md)
- [tabGroup](appkit/nswindow/tabgroup.md)
