BadChoice / RVCalendarWeekView

Simple but powerful Calendar Week View for iOS
MIT License
101 stars 24 forks source link

Swift #15

Open AsimNet opened 8 years ago

AsimNet commented 8 years ago

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 commented 8 years ago

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 commented 7 years ago

Did you find the solution?

EricBeato commented 7 years ago

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 commented 7 years ago

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

BadChoice commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Fork it and submit a pull request On Wed, Jan 25, 2017 at 12:49 AM EricBeato notifications@github.com wrote:

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 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BadChoice/RVCalendarWeekView/issues/15#issuecomment-274949950, or mute the thread https://github.com/notifications/unsubscribe-auth/ADdN-WlCAO5tU5gpM5FwpWyoPPEAQgCiks5rVnH0gaJpZM4KhpzG .

IOSDeveloperProgrammer commented 7 years ago

@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 commented 7 years ago

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