Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How SwiftMessages can be installed manually? #87

Closed
moonvader opened this issue Apr 17, 2017 · 3 comments
Closed

How SwiftMessages can be installed manually? #87

moonvader opened this issue Apr 17, 2017 · 3 comments

Comments

@moonvader
Copy link

I want to figure out - how this repo can be installed manually (without cocoapods)?
I just copied SwiftMessages folder from SwiftMessages-master to my project and added this code

let myWiew = MessageView.viewFromNib(layout: .cardView)
SwiftMessages.show(view: myWiew)

and i got error:

_Unknown class _TtC13SwiftMessages11MessageView in Interface Builder file._ Failed to set (bounceAnimationOffset) user defined inspected property on (UIView)

What am i doing wrong?

@wtmoose
Copy link
Member

wtmoose commented Apr 20, 2017

I've never tried this and don't have time to work on it right now.

But my guess is that it's because the MessageView element in the nib file reference the SwiftMessages module. You could try removing this module references from the nib file.

screen shot 2017-04-19 at 10 32 30 pm

I'll leave this ticket open as a todo to try and make this work out-of-the-box.

wtmoose added a commit that referenced this issue Jul 9, 2017
@wtmoose
Copy link
Member

wtmoose commented Jul 9, 2017

This should be fixed on the head of master if you're interested in taking a look.

aChase55 pushed a commit to aChase55/SwiftMessages that referenced this issue Jul 11, 2017
commit 4aa1405
Author: Timothy Moose <tim@swiftkick.it>
Date:   Sun Jul 9 15:21:20 2017 -0500

    SwiftKickMobile#87 Support manual install

commit b0aaa38
Author: Timothy Moose <tim@swiftkick.it>
Date:   Sat Jul 1 11:38:38 2017 -0500

    Fix typo in readme

commit 15fe4d9
Author: Timothy Moose <tim@swiftkick.it>
Date:   Sat Jul 1 11:35:15 2017 -0500

    Revert breaking change to enum capitalization
@wtmoose
Copy link
Member

wtmoose commented Sep 6, 2017

3.5.0

@wtmoose wtmoose closed this as completed Sep 6, 2017
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

No branches or pull requests

2 participants