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

Swift #15

Open
AsimNet opened this issue Oct 26, 2016 · 9 comments
Open

Swift #15

AsimNet opened this issue Oct 26, 2016 · 9 comments

Comments

@AsimNet
Copy link

AsimNet commented Oct 26, 2016

Hello,

is there a swift version of this library ?

here what happens when I use it with swift:

screen shot 2016-10-26 at 11 49 23 pm

@BadChoice
Copy link
Owner

I never used swift so I'm afraid I can't help you with that,
if you find the solution, just do me a PR

Thanks!

@BadChoice
Copy link
Owner

Did you find the solution?

@EricBeato
Copy link

The issue is the Masonry shorthand macro, I solved it by modifying the GCC_PREPOCESSOR_DEFINITIONS in the post_install step of my Podfile definition:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'MAS_SHORTHAND=1'
    end
  end
end

@BadChoice
Copy link
Owner

Sounds great!
I'll add it latter today and see if works!

@BadChoice
Copy link
Owner

I added it to the project pod, but I think it should be added to any project using this lib, do you know if there is a way fo tix this in the podscpec itself?

@EricBeato
Copy link

Yeah sorry, that's what I meant: this solution should be applied on the project using the library. I didn't tried solving it on the podspec. When I have some time i'll look into it .

@AsimNet
Copy link
Author

AsimNet commented Jan 24, 2017 via email

@IOSDeveloperProgrammer
Copy link

@AsimNet @BadChoice Hi First, Thank you ! i need example in swift. how to implement it? can you please provide example. @AsimNet did you find solution ?

@BadChoice
Copy link
Owner

I tried swift and it was total pain, so I sticked in objective-c

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

4 participants