Closed longseespace closed 1 year ago
You should be able to fix that by explicitly setting the automatic tab view style:
TabView {
// ...
}
.tabViewStyle(.automatic)
Does that work in your case? I will add that modifier to the tab content in the SettingsKit package so that one does not have to add it manually.
Ah right. I'm so dumb. Thank you!
I actually needed some time to figure that out, I don't think it's that obvious...
In SettingsKit 0.1.13, the tab view style of every tab's content is set to automatic
by default, because the buggy behavior you've encountered does not make sense. You can now remove the explicit .tabViewStyle(.automatic)
in your case, @longseespace. Thanks for opening the issue!
Overview
I wanted to render a TabView within the SettingContent but it doesn't seem to work. Any idea why?
Here is my code:
I wanted to achieve something like this: