Ramotion / folding-cell

:octocat: 📃 FoldingCell is an expanding content cell with animation made by @Ramotion

Home Page:https://www.ramotion.com/folding-cell/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Giving Error in FoldingCell.swift file

aju10 opened this issue · comments

commented

Error is Value of type '[UIView]' has no member 'compactMap'
changed alot of things but won't work

commented

What swift version do you use?

commented

swift 4.0 ,Solved the issue mate, i replaced compactMap with flatMap

commented

It strange, because the flatMap is deprecated method, look for documentation https://developer.apple.com/documentation/swift/sequence/2905332-flatmap

commented

yahh, but it works for me,
Thanx Ober

We also had a similar issue here, @0ber we are using flatMap for now. using swift 4.0 as well

commented

@UniMarkit
Hello @UniMarkit
update your Xcode to 9.3, then it will support to compactMap.

Same issue with Swift 4.0, changing to flatMap works.

Hi,
When I change compactMaps to flatMaps on line 107 of FoldingCell.swft, it gives me error:
Ambiguous use of 'flatMap'

Please advice

Thanks,
Devansh