TodolistDetailViewController.swift
private func todolistCell(indexPath: IndexPath, todo: Todo) -> UICollectionViewCell {
if let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "TodolistDetailCollectionViewCell", for: indexPath ) as? TodolistDetailCollectionViewCell{
cell.update(todoTitle: todo.title, todoExpireDate: todo.expireDate)
// セルの境界からはみ出ているものを見えるようにする
cell.layer.masksToBounds = false
// 影をつける
cell.layer.shadowOffset = CGSize(width: 0, height: 1)
cell.layer.shadowOpacity = 0.2
cell.layer.shadowRadius = 1.0
return cell
}
return UICollectionViewCell()
}