Skip to content

Conversation

cillyfly
Copy link
Owner

format style change

contentView.addSubview(view)
let w = Int(frame.size.width)
if contentViews.count > 0 {
let previewsView = contentViews.last
Copy link
Owner Author

Choose a reason for hiding this comment

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

can be together

)
} else {
view.easy.layout(
Left(0)
Copy link
Owner Author

Choose a reason for hiding this comment

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

can using easy layout api

previewsView or SupreView


}
func scrollViewDidEndDecelerating(_: UIScrollView) {
pageIndex = Int(contentOffset.x / bounds.size.width)
Copy link
Owner Author

Choose a reason for hiding this comment

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

consider bounds.size.with == 0

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.

1 participant