 			container.translatesAutoresizingMaskIntoConstraints = false
 			scrollView.addSubview(container)
 		}
-		DispatchQueue.main.async {
-			self.scrollView.addObserver(self, forKeyPath: "bounds", options: .new, context: nil)
+		dispatch_async(dispatch_get_main_queue()) {
+			self.scrollView.addObserver(self, forKeyPath: "bounds", options: .New, context: nil)
 		}
 	}
 


	enum Traversal { case next, prev }
	func goto(traversal: Traversal) {
		goto(page: currentPage + (traversal == .next ? 1 : -1))
	}

	private var presetPageCount: Int? = nil

		}
	}

	private func setContentSize(pageCount: Int) {
		let frame = rectClass.init(view.frame)
		frame.size.relevant = frame.size.relevant * CGFloat(pageCount)
		scrollView.contentSize = frame.rect.size
