diff --git a/.gitignore b/.gitignore index 93c86d3b..f5830978 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,7 @@ Carthage/Build # `pod install` in .travis.yml # # Pods/ + +# Swift Package Manager +.build/ + diff --git a/MessengerKit/Bubbles/Travamigos/MSGTravIncomingBubble.swift b/MessengerKit/Bubbles/Travamigos/MSGTravIncomingBubble.swift index 6879c4b2..c8efe947 100644 --- a/MessengerKit/Bubbles/Travamigos/MSGTravIncomingBubble.swift +++ b/MessengerKit/Bubbles/Travamigos/MSGTravIncomingBubble.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGTravIncomingBubble) class MSGTravIncomingBubble: MSGTravOutgoingBubble { override var gradientColors: [CGColor] { diff --git a/MessengerKit/Bubbles/Travamigos/MSGTravOutgoingBubble.swift b/MessengerKit/Bubbles/Travamigos/MSGTravOutgoingBubble.swift index c1bceed6..246a578e 100644 --- a/MessengerKit/Bubbles/Travamigos/MSGTravOutgoingBubble.swift +++ b/MessengerKit/Bubbles/Travamigos/MSGTravOutgoingBubble.swift @@ -9,6 +9,7 @@ import UIKit /// A bubble for outgoing messages for use in the Travamigos style. +@objc(MSGTravOutgoingBubble) class MSGTravOutgoingBubble: UITextView { var gradientLayer = CAGradientLayer() diff --git a/MessengerKit/Bubbles/iMessage/MSGTailIncomingBubble.swift b/MessengerKit/Bubbles/iMessage/MSGTailIncomingBubble.swift index a41d1f2b..7eb45997 100644 --- a/MessengerKit/Bubbles/iMessage/MSGTailIncomingBubble.swift +++ b/MessengerKit/Bubbles/iMessage/MSGTailIncomingBubble.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGTailIncomingBubble) public class MSGTailIncomingBubble: MSGTailOutgoingBubble { diff --git a/MessengerKit/Bubbles/iMessage/MSGTailOutgoingBubble.swift b/MessengerKit/Bubbles/iMessage/MSGTailOutgoingBubble.swift index 8dae762a..72352260 100644 --- a/MessengerKit/Bubbles/iMessage/MSGTailOutgoingBubble.swift +++ b/MessengerKit/Bubbles/iMessage/MSGTailOutgoingBubble.swift @@ -9,6 +9,7 @@ import UIKit /// A bubble for outgoing messages for use in the iMessage style. +@objc(MSGTailOutgoingBubble) public class MSGTailOutgoingBubble: UITextView { lazy var tailImage: UIImage = { diff --git a/MessengerKit/Collection View/Cells/Emoji/MSGEmojiCollectionViewCell.swift b/MessengerKit/Collection View/Cells/Emoji/MSGEmojiCollectionViewCell.swift index d258537b..3c981734 100644 --- a/MessengerKit/Collection View/Cells/Emoji/MSGEmojiCollectionViewCell.swift +++ b/MessengerKit/Collection View/Cells/Emoji/MSGEmojiCollectionViewCell.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGEmojiCollectionViewCell) class MSGEmojiCollectionViewCell: MSGMessageCell { @IBOutlet weak var textLabel: UILabel! diff --git a/MessengerKit/Collection View/Cells/Emoji/MSGIncomingEmojiCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Emoji/MSGIncomingEmojiCollectionViewCell.xib index 3835f036..be193d59 100644 --- a/MessengerKit/Collection View/Cells/Emoji/MSGIncomingEmojiCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Emoji/MSGIncomingEmojiCollectionViewCell.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Cells/Emoji/MSGOutgoingEmojiCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Emoji/MSGOutgoingEmojiCollectionViewCell.xib index d695ffd5..f646eee9 100644 --- a/MessengerKit/Collection View/Cells/Emoji/MSGOutgoingEmojiCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Emoji/MSGOutgoingEmojiCollectionViewCell.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Cells/Media/MSGImageCollectionViewCell.swift b/MessengerKit/Collection View/Cells/Media/MSGImageCollectionViewCell.swift index 680f22a0..8b51203c 100644 --- a/MessengerKit/Collection View/Cells/Media/MSGImageCollectionViewCell.swift +++ b/MessengerKit/Collection View/Cells/Media/MSGImageCollectionViewCell.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGImageCollectionViewCell) class MSGImageCollectionViewCell: MSGMessageCell { @IBOutlet weak var imageView: UIImageView! diff --git a/MessengerKit/Collection View/Cells/Media/MSGIncomingImageCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Media/MSGIncomingImageCollectionViewCell.xib index d41a40ad..7167f8a1 100644 --- a/MessengerKit/Collection View/Cells/Media/MSGIncomingImageCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Media/MSGIncomingImageCollectionViewCell.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Cells/Media/MSGOutgoingImageCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Media/MSGOutgoingImageCollectionViewCell.xib index dc356e20..3e453103 100644 --- a/MessengerKit/Collection View/Cells/Media/MSGOutgoingImageCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Media/MSGOutgoingImageCollectionViewCell.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Cells/Text/Travamigos/MSGIncomingTravCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Text/Travamigos/MSGIncomingTravCollectionViewCell.xib index f0b34737..06476c17 100644 --- a/MessengerKit/Collection View/Cells/Text/Travamigos/MSGIncomingTravCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Text/Travamigos/MSGIncomingTravCollectionViewCell.xib @@ -12,14 +12,14 @@ - + - + diff --git a/MessengerKit/Collection View/Cells/Text/Travamigos/MSGOutgoingTravCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Text/Travamigos/MSGOutgoingTravCollectionViewCell.xib index 5ddbe1cd..90a3f3f1 100644 --- a/MessengerKit/Collection View/Cells/Text/Travamigos/MSGOutgoingTravCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Text/Travamigos/MSGOutgoingTravCollectionViewCell.xib @@ -12,14 +12,14 @@ - + - + diff --git a/MessengerKit/Collection View/Cells/Text/Travamigos/MSGTravCollectionViewCell.swift b/MessengerKit/Collection View/Cells/Text/Travamigos/MSGTravCollectionViewCell.swift index 6800902a..5380ffe7 100644 --- a/MessengerKit/Collection View/Cells/Text/Travamigos/MSGTravCollectionViewCell.swift +++ b/MessengerKit/Collection View/Cells/Text/Travamigos/MSGTravCollectionViewCell.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGTravCollectionViewCell) open class MSGTravCollectionViewCell: MSGMessageCell { @IBOutlet weak var bubbleWidthConstraint: NSLayoutConstraint! diff --git a/MessengerKit/Collection View/Cells/Text/iMessage/MSGIncomingTailCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Text/iMessage/MSGIncomingTailCollectionViewCell.xib index 9d0588a7..5568b57d 100644 --- a/MessengerKit/Collection View/Cells/Text/iMessage/MSGIncomingTailCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Text/iMessage/MSGIncomingTailCollectionViewCell.xib @@ -12,7 +12,7 @@ - + @@ -22,7 +22,7 @@ - + diff --git a/MessengerKit/Collection View/Cells/Text/iMessage/MSGOutgoingTailCollectionViewCell.xib b/MessengerKit/Collection View/Cells/Text/iMessage/MSGOutgoingTailCollectionViewCell.xib index ba7de826..955b7629 100644 --- a/MessengerKit/Collection View/Cells/Text/iMessage/MSGOutgoingTailCollectionViewCell.xib +++ b/MessengerKit/Collection View/Cells/Text/iMessage/MSGOutgoingTailCollectionViewCell.xib @@ -12,7 +12,7 @@ - + @@ -22,7 +22,7 @@ - + diff --git a/MessengerKit/Collection View/Cells/Text/iMessage/MSGTailCollectionViewCell.swift b/MessengerKit/Collection View/Cells/Text/iMessage/MSGTailCollectionViewCell.swift index f005f820..ad6cc79a 100644 --- a/MessengerKit/Collection View/Cells/Text/iMessage/MSGTailCollectionViewCell.swift +++ b/MessengerKit/Collection View/Cells/Text/iMessage/MSGTailCollectionViewCell.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGTailCollectionViewCell) open class MSGTailCollectionViewCell: MSGMessageCell { @IBOutlet public weak var bubble: MSGTailOutgoingBubble! diff --git a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionFooter.swift b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionFooter.swift index 35a1f939..9b9b1a7c 100644 --- a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionFooter.swift +++ b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionFooter.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGTravCollectionViewSectionFooter) class MSGTravCollectionViewSectionFooter: MSGSectionReusableView { @IBOutlet weak var avatarImageView: UIImageView! diff --git a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionHeader.swift b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionHeader.swift index ee1b8960..8abd236c 100644 --- a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionHeader.swift +++ b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravCollectionViewSectionHeader.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGTravCollectionViewSectionHeader) class MSGTravCollectionViewSectionHeader: MSGSectionReusableView { @IBOutlet weak var label: UILabel! diff --git a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionFooter.xib b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionFooter.xib index 33a1357c..fb73db72 100644 --- a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionFooter.xib +++ b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionFooter.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionHeader.xib b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionHeader.xib index 3477a0eb..de56330d 100644 --- a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionHeader.xib +++ b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravIncomingCollectionViewSectionHeader.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionFooter.xib b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionFooter.xib index 3527854e..eb632b31 100644 --- a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionFooter.xib +++ b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionFooter.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionHeader.xib b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionHeader.xib index 80485b24..4da95805 100644 --- a/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionHeader.xib +++ b/MessengerKit/Collection View/Header Footers/Travamigos/MSGTravOutgoingCollectionViewSectionHeader.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageFooterView.swift b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageFooterView.swift index 59ab6479..cc0b4b5e 100644 --- a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageFooterView.swift +++ b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageFooterView.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGImessageFooterView) class MSGImessageFooterView: MSGSectionReusableView { @IBOutlet weak var label: UILabel! diff --git a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageHeaderView.swift b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageHeaderView.swift index a6b2cd0c..70367e18 100644 --- a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageHeaderView.swift +++ b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageHeaderView.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGImessageHeaderView) class MSGImessageHeaderView: MSGSectionReusableView { @IBOutlet weak var label: UILabel! diff --git a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingFooterView.xib b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingFooterView.xib index c177b64c..6f84f33d 100644 --- a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingFooterView.xib +++ b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingFooterView.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingHeaderView.xib b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingHeaderView.xib index 0b5d6d86..26b9396d 100644 --- a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingHeaderView.xib +++ b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageIncomingHeaderView.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingFooterView.xib b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingFooterView.xib index 60dd1d34..254639f4 100644 --- a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingFooterView.xib +++ b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingFooterView.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingHeaderView.xib b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingHeaderView.xib index a43d1168..69ef7445 100644 --- a/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingHeaderView.xib +++ b/MessengerKit/Collection View/Header Footers/iMessage/MSGImessageOutgoingHeaderView.xib @@ -12,7 +12,7 @@ - + diff --git a/MessengerKit/Input/MSGPlaceholderTextView.swift b/MessengerKit/Input/MSGPlaceholderTextView.swift index 7dd55051..7d7e41ec 100644 --- a/MessengerKit/Input/MSGPlaceholderTextView.swift +++ b/MessengerKit/Input/MSGPlaceholderTextView.swift @@ -11,6 +11,7 @@ import UIKit /// A text view that supports a placeholder. /// /// (I really should open a radar to request a native control). +@objc(MSGPlaceholderTextView) open class MSGPlaceholderTextView: UIView { /// The actual text view being used diff --git a/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.swift b/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.swift index 548692b7..7aa4d55d 100644 --- a/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.swift +++ b/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.swift @@ -8,6 +8,7 @@ import UIKit +@objc(MSGImessageInputView) open class MSGImessageInputView: MSGInputView { override open class var nib: UINib? { diff --git a/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.xib b/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.xib index 46c03f8d..123624d4 100644 --- a/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.xib +++ b/MessengerKit/Input/Styles/iMessage/MSGImessageInputView.xib @@ -12,15 +12,15 @@ - + - + -