rushisangani / RSSelectionMenu

An elegant selection list or dropdown menu for iOS with single or multiple selections.
MIT License
351 stars 91 forks source link

Error while creating menu #6

Closed a-v-ebrahimi closed 6 years ago

a-v-ebrahimi commented 7 years ago

let selectionMenu = RSSelectionMenu(dataSource: simpleDataArray) { (cell, object, indexPath) in cell.textLabel?.text = object }

When I try to create a menu using code above, compiler give this error:

image

rushisangani commented 6 years ago

Have you tried with latest pod version 2.0.8?

If you're using swift4 project and installing RSSelectionMenu then please follow following steps.

  1. Go to pods projects in your workspace.
  2. Select RSSelectionMenu target.
  3. Go to Build Settings and set Swift Language Version to 3.2

Cheers.