RATreeView icon indicating copy to clipboard operation
RATreeView copied to clipboard

Swift 5

Open zhouhao27 opened this issue 4 years ago • 4 comments

Are you going to support Swift 5? I got the error:

Showing All Messages
/Pods/RATreeView/RATreeView/RATreeView/Private Files/RATreeView+Enums.m:106:1: Control may reach end of non-void function

The fix is simple:

  switch (tableViewStyle) {
    case UITableViewStylePlain:
      return RATreeViewStylePlain;
    case UITableViewStyleGrouped:
      return RATreeViewStyleGrouped;
    default:
      return RATreeViewStylePlain;
  }

Is it possible to fix? Thanks.

zhouhao27 avatar Aug 15 '19 03:08 zhouhao27

iOS 13

cqswzqcj avatar Aug 20 '19 03:08 cqswzqcj

I added a pull request. In this repository, you also get the fix: https://github.com/Brainyoo/RATreeView.git

Brainyoo avatar Sep 04 '19 14:09 Brainyoo

I added a pull request. In this repository, you also get the fix: https://github.com/Brainyoo/RATreeView.git

In my case, simple changing: pod 'RATreeView', '~>2.1.2' to
pod "RATreeView", "~> 2.1.3" doens't work, i needed to reference github repository

pod 'RATreeView', :git => 'https://github.com/Brainyoo/RATreeView'

rodrigobaroni avatar Sep 23 '19 18:09 rodrigobaroni

That's correct, because the pull request isn't merged.

pod 'RATreeView', :git => 'https://github.com/Brainyoo/RATreeView', :tag => 'v2.1.3'

Brainyoo avatar Sep 24 '19 07:09 Brainyoo