Skip to content

v0.7.0#98

Merged
SD10 merged 47 commits into
masterfrom
v0.7.0
Sep 10, 2017
Merged

v0.7.0#98
SD10 merged 47 commits into
masterfrom
v0.7.0

Conversation

@SD10

@SD10 SD10 commented Sep 3, 2017

Copy link
Copy Markdown
Member

TODO:
Rename MessageType -> Message still can't decide
Rename MessageData -> MessageType still can't decide
Map AvatarPosition -> UIRectCorner for tail??? low priority
Provide ability to move top label / bottom label inside message bubble painful
Add shouldDisplayCellTopLabel & shouldDisplayCellBottomLabel (maybe?) too early

  • Add images for other tail styles
  • Fix pesky MessageInputBar display bug
  • Provide date utility for creating message header label
  • Review cell/header/footer registration
  • Create default DateHeaderView???
  • Move btm/top message label text to MessagesDataSource protocol
  • Create constants for ReusableViewIdentifiers
  • Rename MessagesDisplayDataSource -> MessagesDisplayDelegate
  • Move avatarPosition to MessagesLayoutDelegate
  • Remove messageLabelDelegate and make MessageCellDelegate conform to MessageLabelDelegate
  • Size cellTopLabel & cellBottomLabel to fit
  • Allow the ability to adjust cellTopLabel & cellBottomLabel position based on cell contents
  • Remove layout incomingAvatarSize & outgoingAvatarSize in favor of avatarSize(for:indexPath:)
  • Remove bottomLabelExtendsPastAvatar and topLabelExtendsPastAvatar and fix calcs
  • Add shouldDisplayFooter method
  • Rename AvatarPosition -> AvatarAlignment
  • Rename CellLabelPosition -> LabelAlignment
  • Remove message direction
  • Add avatarsAlwaysLeading & avatarsAlwaysTrailing
  • Review defaults
  • Update podspec

@SD10 SD10 added this to the 0.7.0 milestone Sep 3, 2017
Comment thread Sources/MessageStyle.swift Outdated
return nil
case .bubble, .bubbleOutline:
break
case .bubbleTail(let edge), .bubbleTailOutline(let edge):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

"edge" -> "corner"


cell.avatarView.set(avatar: avatar)
cell.messageLabel.textColor = textColor
cell.messageContainerView.backgroundColor = messageColor

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We probably want to set this to the messageColor still if the style is .none

return .up
default:
fatalError("Invalid UIRectCorner. Only supports: .topLeft, .bottomLeft, .topRight, .bottomRight")
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not hard to replace this with an enum that will prevent this from even being a possible issue

@codecov-io

codecov-io commented Sep 3, 2017

Copy link
Copy Markdown

Codecov Report

Merging #98 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #98   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          77     77           
=====================================
  Hits           77     77
Impacted Files Coverage Δ
Tests/MessagesDisplayDataSourceTests.swift 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0350493...2831bac. Read the comment docs.

@MessageKitBot

Copy link
Copy Markdown

@SD10 You should work on setting me up 😂

@SD10 SD10 changed the title [WIP] v0.7.0 v0.7.0 Sep 10, 2017
@SD10 SD10 merged commit 674373a into master Sep 10, 2017
@SD10 SD10 deleted the v0.7.0 branch September 10, 2017 12:45
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.

5 participants