diff --git a/Sources/SwiftUITooltip/TooltipModifier.swift b/Sources/SwiftUITooltip/TooltipModifier.swift index c1c0b38..6971510 100644 --- a/Sources/SwiftUITooltip/TooltipModifier.swift +++ b/Sources/SwiftUITooltip/TooltipModifier.swift @@ -179,14 +179,7 @@ struct TooltipModifier: 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)