Skip to content

Add View+FrameSize#153

Merged
olejnjak merged 3 commits intomainfrom
swiftui/view+frame-size
Apr 14, 2025
Merged

Add View+FrameSize#153
olejnjak merged 3 commits intomainfrom
swiftui/view+frame-size

Conversation

@LukasHromadnik
Copy link
Contributor

Add frame modifier that can take CGSize instead of width and height

Checklist

  • Added tests (if applicable)

@LukasHromadnik LukasHromadnik self-assigned this Dec 6, 2024
}

public func frame(size: CGSize, alignment: Alignment) -> some View {
frame(width: size.width, height: size.height, alignment: alignment)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we have some asserts in the variant without alignment, so we should rather be consistent and have in both variants or omit it.

@olejnjak
Copy link
Member

olejnjak commented Feb 4, 2025

@LukasHromadnik 🙄

@olejnjak
Copy link
Member

olejnjak commented Apr 3, 2025

@LukasHromadnik 🙏 🙄

@LukasHromadnik LukasHromadnik force-pushed the swiftui/view+frame-size branch from 68b70b7 to 4bc8f89 Compare April 14, 2025 05:57
@olejnjak olejnjak merged commit 6342c9e into main Apr 14, 2025
6 checks passed
@olejnjak olejnjak deleted the swiftui/view+frame-size branch April 14, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants