TCBlobDownloadSwift icon indicating copy to clipboard operation
TCBlobDownloadSwift copied to clipboard

Port to swift 3

Open brycelund opened this issue 9 years ago • 5 comments

Has anyone been able to successfully port this over to Swift 3?

brycelund avatar Oct 19 '16 20:10 brycelund

nope.. lots of errors

screen shot 2016-10-24 at 12 56 11 pm

mehulparmar4ever avatar Oct 24 '16 07:10 mehulparmar4ever

same here, still lot of errors

ranaaamer avatar Sep 12 '17 05:09 ranaaamer

hi @brycelund you can download these two file and add into your source it port in swift 4.0 Source.zip

Sumit-2singh avatar Nov 24 '17 13:11 Sumit-2singh

Hi @Sumit-2singh , Do you have the Swift 4 version of file "TCBlobDownloadSwiftTest"? I got a similar issue with this file. The Xcode Build throws this error:

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

strawherotk avatar Mar 19 '18 04:03 strawherotk

In Xocde 9 & Swift 4, after using @Sumit-2singh 's code, there 1 more error:

func is inaccessible due to 'private' protection level

You need to make the change to fix it:

`fileprivate let directory: NSURL?`

Use 'fileprivate' instead of 'private'.

strawherotk avatar Mar 19 '18 08:03 strawherotk