PagingMenuController icon indicating copy to clipboard operation
PagingMenuController copied to clipboard

Swift 4 Version?

Open ThreadPitt opened this issue 7 years ago • 10 comments

Hi,

great lib, thanks for your effort! Is there a Swift 4 version planned?

Cheers!

ThreadPitt avatar Oct 28 '17 18:10 ThreadPitt

great lib, each time you update the podfile you want to change the compiled version of swift,Hope to support swift4

Cheers!

ruoyi avatar Oct 30 '17 04:10 ruoyi

any plans for swift 4 support ?

ankitaporwal avatar Nov 14 '17 10:11 ankitaporwal

Actually I compiled using Swift 4.0, there is no serious mistakes, can run simple change

ReverseScale avatar Nov 22 '17 06:11 ReverseScale

Yes, works for me too!

ThreadPitt avatar Nov 22 '17 17:11 ThreadPitt

I also need for swift4 support!

mingmingsuper avatar Dec 27 '17 09:12 mingmingsuper

When my project convert to swift4,the PagingMenuController lib must run in swift 3.2,it can't run in swift4!

mingmingsuper avatar Dec 27 '17 09:12 mingmingsuper

There is pull request for Swift 4 available, any plans to merge that? https://github.com/kitasuke/PagingMenuController/pull/366

pirtil avatar Jan 13 '18 19:01 pirtil

Doesn't support safe area in swift4, is there any one who solved this?

termic avatar Jan 15 '18 10:01 termic

@termic Have you tried this for IOS 11? Maybe It can help

collectionView.contentInsetAdjustmentBehavior = .never

olgusirman avatar Jan 28 '18 11:01 olgusirman

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if ['PagingMenuController'].include? target.name
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '3.2'
        config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
      end
      else
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '4.0'
        config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
      end
    end
  end
end

ruoyi avatar Feb 28 '18 06:02 ruoyi