-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added dialogs #1173
Added dialogs #1173
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty awesome, and only a few notes. Thank you!
Sources/iOS/DialogView.swift
Outdated
w = min(w, size.width) | ||
} | ||
|
||
setW(titleAreaSizeThatFits(width: size.width).width) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use methods like setW
, we should use setWidth
.
Sources/iOS/DialogView.swift
Outdated
} | ||
} | ||
|
||
private struct Constants { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use Constants
to guide a components design, let's put it at the top, so when it is first looked at, we can see it right away and know the mechanical configuration.
Took from #1021, added comments, updated code style, and made themeable.
Sample app:
Button.zip