Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 466 forks source link

Swift 5 #268

Open zhouhao27 opened 4 years ago

zhouhao27 commented 4 years ago

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.

cqswzqcj commented 4 years ago

iOS 13

Brainyoo commented 4 years ago

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

rodrigobaroni commented 4 years ago

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'

Brainyoo commented 4 years ago

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

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