Skip to content

Conversation

@ra1028
Copy link
Owner

@ra1028 ra1028 commented Oct 23, 2019

TODO

  • Enable self-sizing
  • Add ReferenceSizeComponentWrapper.
  • Remove Component.intrinsicContentSize(for:) added in RC5
  • Add or remove tests.
  • Update README and docs

Checklist

Description

SwiftUI can't support self-sizing, but we can one approach that calculating the size of content at the appearing event with GeometryReader in background.

Related Issue

N/A

Motivation and Context

Further clear and intuitive API for the Carbon component in the SwiftUI.

Impact on Existing Code

Remove Component.intrinsicContentSize(for:) added in RC5

Screenshots (if appropriate)

struct KyotoTop_Previews: PreviewProvider {
    static var previews: some View {
        KyotoTop()
    }
}

@ra1028 ra1028 force-pushed the swiftui-self-sizing branch from d8d7231 to b6da679 Compare October 24, 2019 18:48
@ra1028 ra1028 force-pushed the swiftui-self-sizing branch from b6da679 to 7bb0b2f Compare October 25, 2019 19:28
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.

2 participants