Skip to content

Commit

Permalink
fix height for tabgroup with varied elements
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed May 14, 2024
1 parent de4546a commit a5f23ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions PlatformUI/PlatformUI/Components/TabGroup/TabGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ private struct TabGroupView<ItemContent: PlatformViewModeling>: View {
}
}
}
.fixedSize(horizontal: false, vertical: true)
.animation(selectionAnimation, value: model.currentSelection)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class TabItemViewModel: PlatformViewModel, Equatable {
switch value {
case .text(let value, let edgeInsets):
return Text(value)
.frame(maxHeight: .infinity)
.themeFont(fontSize: .small)
.padding(edgeInsets)
.themeStyle(styleKey: styleKey, parentStyle: style)
Expand Down

0 comments on commit a5f23ec

Please sign in to comment.