     @IBOutlet weak var createReadingListButton: WMFAuthButton!
     
     fileprivate var theme: Theme = Theme.standard
-    fileprivate let articles: [WMFArticle]
+    fileprivate var articles: [WMFArticle]
     public let moveFromReadingList: ReadingList?
     
     weak var delegate: CreateReadingListDelegate?
     
     // Import shared reading list properties
     private let encodedPageIds: String?
+    private var importedReadingList: ImportedReadingList?
     private let dataStore: MWKDataStore?
+    private let pageIdsFetcher = PageIDToURLFetcher()
     
     var isInImportingMode: Bool {
         encodedPageIds != nil
     }
+    
+    lazy var importLoadingView: UIView = {
+        let view = UIView(frame: .zero)
+        view.translatesAutoresizingMaskIntoConstraints = false
+        view.addSubview(importSpinner)
+        view.backgroundColor = theme.colors.paperBackground
+        NSLayoutConstraint.activate([
+            importSpinner.centerXAnchor.constraint(equalTo: view.centerXAnchor),
+            importSpinner.centerYAnchor.constraint(equalTo: view.centerYAnchor)
+        ])
+        view.isHidden = true
+        return view
+    }()
+
+    lazy var importSpinner: UIActivityIndicatorView = {
+        let activityIndicator = UIActivityIndicatorView(style: .medium)
+        activityIndicator.translatesAutoresizingMaskIntoConstraints = false
+        activityIndicator.hidesWhenStopped = true
+        activityIndicator.color = theme.colors.primaryText
+        return activityIndicator
+    }()
     
     // MARK: Lifecycle
     

       
    }
}

import UIKit
import WMF

struct ImportedReadingList: Codable {
    let name: String?
    let description: String?
    let list: [String: [Int]]
}

enum ImportReadingListError: Error {
    case failureDecodingPayload
    case failureFetchingPageURLs
    case failureFetchingArticleObjects
    case missingDataStore
}

protocol CreateReadingListDelegate: NSObjectProtocol {
    func createReadingListViewController(_ createReadingListViewController: CreateReadingListViewController, didCreateReadingListWith name: String, description: String?, articles: [WMFArticle])
