GabrielAlva / SwiftPages

A swift implementation of a swipe between pages layout, just like Instagram's toggle between views.
Other
647 stars 91 forks source link

Use of undeclared type 'SwiftPages' #9

Open zackbraksa opened 9 years ago

zackbraksa commented 9 years ago

Hi,

Here's how to reproduce it :

import UIKit
import SwiftPages
import Alamofire

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        let swiftPagesView : SwiftPages!
        Alamofire.request(.GET, "http://httpbin.org/get")
    }
...

I keep getting Use of undeclared type 'SwiftPages' on this line :

let swiftPagesView : SwiftPages!

Anybody else getting this error ? or any guesses why I'm getting it ? Maybe Cocoapods version ?

jasan-s commented 9 years ago

I'm getting the same error using cocoapods

jasan-s commented 9 years ago

qbraksa, if you copy the SwiftPages file directly to your project it works. Its a fix until cocoapods error is fixed.

zackbraksa commented 9 years ago

Yep copying the file manually works! :+1:

And I think for people who wanna support iOS 7, copying the file manually is a must anyways!