@IBOutlet var usernameLabel: UILabel!
@IBOutlet var profilePicture: UIImageView!
@IBOutlet var acceptButton: UIButton!
@IBOutlet var declineButton: UIButton!
@IBOutlet var swapButton: UIButton!
@IBOutlet var timeLabel: UILabel!
}
extension Collection where Indices.Iterator.Element == Index {
/// Returns the element at the specified index iff it is within bounds, otherwise nil.
subscript (safe index: Index) -> Generator.Element? {
return indices.contains(index) ? self[index] : nil
}
Solution fixes it ... I think ?
// notificationView.swift // Swap // // Created by David Slakter on 1/21/17. // //
import Foundation
class NotificationViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
}
class notificationCell: UITableViewCell {
}
extension Collection where Indices.Iterator.Element == Index {
}