harryworld / CollectionViewCode

Create NSCollectionView programmatically
9 stars 1 forks source link

Not usable in Xcode 8 #1

Open evanlooij opened 7 years ago

evanlooij commented 7 years ago

I wanted to experiment with your project, even though I generally stick to Objective-C, but I couldn't get it to work. The main error was:

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

I've tried setting SWIFT_VERSION to YES and to NO (opinions on StackOverflow differ on this), I've tried using the Edit > Convert menu to convert it to current Swift, modern Objective-C and something else, but everything brought on more errors. A bit of a shame since creating an NSCollectionView programmatically is a real pain.

harryworld commented 7 years ago

It has to upgrade to Swift 3 syntax, where this project was built in Swift 2

evanlooij commented 7 years ago

I'm sure you're right. What happens now?

harryworld commented 7 years ago

I am occupied with a product recently, not yet having time to update the code in this project Sorry about that