Skip to content

Commit e039966

Browse files
committed
Reduce warnings
1 parent 4f60708 commit e039966

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Classes/GLCollectionTableViewCell.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ class GLIndexedCollectionViewFlowLayout: UICollectionViewFlowLayout {
108108
// if statement below. This will fix the "last cell" issue.
109109
let discardableScrollingElementsFrame: CGFloat = collectionView.contentOffset.x + (collectionView.frame.size.width / 2)
110110

111-
if (cellLayoutAttribute.center.x <= discardableScrollingElementsFrame && velocity.x > 0) || (cellLayoutAttribute.center.x >= discardableScrollingElementsFrame && velocity.x < 0) {
111+
if (cellLayoutAttribute.center.x <= discardableScrollingElementsFrame && velocity.x > 0) ||
112+
(cellLayoutAttribute.center.x >= discardableScrollingElementsFrame && velocity.x < 0) {
112113
return
113114
}
114115

Classes/GLTableCollectionViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ final class GLTableCollectionViewController: UITableViewController, UICollection
130130
cell = GLCollectionTableViewCell(style: .default, reuseIdentifier: GLTableCollectionViewController.tableCellID + indexPath.section.description)
131131

132132
// Configure the cell...
133-
cell!.selectionStyle = .none
134-
cell!.collectionViewPaginatedScroll = paginationEnabled
133+
cell?.selectionStyle = .none
134+
cell?.collectionViewPaginatedScroll = paginationEnabled
135135
}
136136

137137
return cell!

0 commit comments

Comments
 (0)