Skip to content
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

Merged
merged 10 commits into from
Oct 16, 2018
Merged

Added dialogs #1173

merged 10 commits into from
Oct 16, 2018

Conversation

OrkhanAlikhanov
Copy link
Contributor

@OrkhanAlikhanov OrkhanAlikhanov commented Oct 16, 2018

Took from #1021, added comments, updated code style, and made themeable.

Sample app:
Button.zip

Copy link
Member

@daniel-jonathan daniel-jonathan left a 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/DialogController.swift Show resolved Hide resolved
w = min(w, size.width)
}

setW(titleAreaSizeThatFits(width: size.width).width)
Copy link
Member

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 Show resolved Hide resolved
}
}

private struct Constants {
Copy link
Member

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.

Sources/iOS/Dialog.swift Outdated Show resolved Hide resolved
Sources/iOS/Dialog.swift Show resolved Hide resolved
@daniel-jonathan daniel-jonathan merged commit e26faf0 into CosmicMind:development Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants