RVCalendarWeekView icon indicating copy to clipboard operation
RVCalendarWeekView copied to clipboard

Swift

Open AsimNet opened this issue 8 years ago • 9 comments

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

AsimNet avatar Oct 26 '16 20:10 AsimNet

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 avatar Oct 27 '16 12:10 BadChoice

Did you find the solution?

BadChoice avatar Dec 12 '16 14:12 BadChoice

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

EricBeato avatar Jan 24 '17 15:01 EricBeato

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

BadChoice avatar Jan 24 '17 15:01 BadChoice

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?

BadChoice avatar Jan 24 '17 21:01 BadChoice

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 .

EricBeato avatar Jan 24 '17 21:01 EricBeato

Fork it and submit a pull request On Wed, Jan 25, 2017 at 12:49 AM EricBeato [email protected] 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 .

AsimNet avatar Jan 24 '17 21:01 AsimNet

@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 ?

IOSDeveloperProgrammer avatar Sep 27 '17 10:09 IOSDeveloperProgrammer

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

BadChoice avatar Sep 27 '17 10:09 BadChoice