Skip to content

Added custom animation support for displaying map on location messages.#210

Merged
SD10 merged 4 commits into
v0.9.0from
feature/animateDisplayLocationMessage
Oct 2, 2017
Merged

Added custom animation support for displaying map on location messages.#210
SD10 merged 4 commits into
v0.9.0from
feature/animateDisplayLocationMessage

Conversation

@etoledom

@etoledom etoledom commented Oct 1, 2017

Copy link
Copy Markdown
Contributor

No description provided.

/// - indexPath: Message's index path
/// - messagesCollectionView: The collection view requesting the information
/// - Returns: Your customized animation block.
func animationBlockForLocation(message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> ((UIView) -> Void)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think that the LocationMessageCells ContentView is a UIImageView and not a UIView? We may want to represent this in the block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure! I will change that 🙂

@SD10

SD10 commented Oct 1, 2017

Copy link
Copy Markdown
Member

@etoledom We also need a CHANGELOG entry following the same guidelines we are using in v0.9.0.

This would go under the Added section and doesn't need to be marked as a breaking change. The Added section word should act like your first word in the CHANGELOG message.

Comment thread CHANGELOG.md Outdated
- `messageLabelInsets(for:indexPath:messagesCollectionView` method to `MessagesLayoutDelegate`.
[#162](https://github.com/MessageKit/MessageKit/pull/162) by [@SD10](https://github.com/SD10).

-`animationBlockForLocation(message:indexPath:messagesCollectionView)` method to `LocationMessageDisplayDelegate` to customize the display animation of the location message's map

@SD10 SD10 Oct 1, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. Can you add a space so we have a proper bullet point? 😉
  2. Can you end every sentence with a period? 😂
  3. Can you mark the PR number with the # character?

Very nitty, I can change them after merge if you'd like. I will add these things to the CHANGELOG guidelines as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will change them, don't worry. Is good to not forget later on 😁

view.layer.transform = CATransform3DIdentity
view.alpha = 1.0
}, completion: nil)
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We may change this default animation but merging for now!

@SD10 SD10 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I appreciate you working on this @etoledom 💯

@SD10 SD10 merged commit ff9669b into v0.9.0 Oct 2, 2017
@SD10 SD10 mentioned this pull request Oct 2, 2017
24 tasks
@SD10 SD10 deleted the feature/animateDisplayLocationMessage branch October 2, 2017 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants