Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonnickel/fb15680632-swiftuimacos-tabview-sidebaradaptable-labelnotselectable
https://github.com/simonnickel/fb15680632-swiftuimacos-tabview-sidebaradaptable-labelnotselectable
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonnickel/fb15680632-swiftuimacos-tabview-sidebaradaptable-labelnotselectable
- Owner: simonnickel
- Created: 2024-11-04T19:44:06.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T19:45:22.000Z (3 months ago)
- Last Synced: 2024-12-16T16:06:20.483Z (about 1 month ago)
- Language: Swift
- Size: 226 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FB15680632 - SwiftUI macOS: TabView sidebarAdaptable clicking label does not select
## Scenario
A macOS app with SwiftUI using a TabView with .tabViewStyle(.sidebarAdaptable).
## Issue
When clicking the text of an item in the sidebar, the item does not get selected. Only when clicking on the background, the selection works.
## Example codeThe example shows a TabView that is displayed as a SplitView on macOS.
![screenshot](./screenshot.png)
## Tested on
- Xcode Version 16.1 (16B40) on macOS 15.1 (24B83)