Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Bubble not show #181

Open
girishghoda opened this issue Dec 30, 2017 · 2 comments
Open

Bubble not show #181

girishghoda opened this issue Dec 30, 2017 · 2 comments

Comments

@girishghoda
Copy link

Hey @atainter
I have issue with message bubble view, actually bubble view not show & it work perfeactly in your github example

Step 1 : Create MessageNode
let textContent = TextContentNode(textMessageString: "Hi", currentViewController: self, bubbleConfiguration: self.sharedBubbleConfiguration)
textContent.isIncomingMessage = isIncoming

                let newMessage = MessageNode(content: textContent)
                newMessage.cellPadding = self.messagePadding
                newMessage.currentViewController = self

Step 2: Add message to messageview
let footer = ASTextNode()
footer.attributedText = NSAttributedString(string: "Sending") //text indicate sending

        message.footerNode = footer
        message.isIncomingMessage = isIncomingMessage
    
        self.messengerView.addMessage(message, scrollsToMessage: true)

ScreenShot :
img_1155

Please any help or suggestion as soon as possible
Thanks

@patelhari
Copy link

patelhari commented Jan 4, 2018

hey @girishghoda it's work for me...
You just add this code in you podfile

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'NMessenger'
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.0'
            end
        end
    end
end

@girishghoda
Copy link
Author

@patelhari Ok i will check
Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants