Skip to content

Commit

Permalink
27: Set the frame with content sizes (#28)
Browse files Browse the repository at this point in the history
[27] remove etimated frame
  • Loading branch information
jsivanes authored Dec 27, 2022
1 parent ac7ce5d commit 9e8e67a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Sources/SwiftUITooltip/TooltipModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,7 @@ struct TooltipModifier<TooltipContent: View>: ViewModifier {
ZStack {
RoundedRectangle(cornerRadius: config.borderRadius)
.stroke(config.borderWidth == 0 ? Color.clear : config.borderColor)
.frame(
minWidth: contentWidth,
idealWidth: contentWidth,
maxWidth: config.width,
minHeight: contentHeight,
idealHeight: contentHeight,
maxHeight: config.height
)
.frame(width: contentWidth, height: contentHeight)
.background(
RoundedRectangle(cornerRadius: config.borderRadius)
.foregroundColor(config.backgroundColor)
Expand Down

0 comments on commit 9e8e67a

Please sign in to comment.