https://github.com/simonnickel/fb13375399-swiftuitabbarstyle
https://github.com/simonnickel/fb13375399-swiftuitabbarstyle
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonnickel/fb13375399-swiftuitabbarstyle
- Owner: simonnickel
- Created: 2023-11-15T09:35:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-15T09:43:58.000Z (over 1 year ago)
- Last Synced: 2025-04-01T15:10:22.851Z (about 2 months ago)
- Language: Swift
- Size: 372 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FB13375399 - SwiftUI: TabView tabItem should support foregroundStyle as ShapeStyle, not just Color
## Scenario
An app has a TabView. The tabItems show an Image and Text that should be styled like normal Image and Text.
## The Issue
Setting the foregroundStyle to a gradient or color is not applied. Only tint works, but tint does not support ShapeStyle.
## Example Code
The example contains a TabView with 2 tab items.

## Tested on
- iOS 17.0