fix comment typos

// FREEBIE
This commit is contained in:
Michael Kirk 2017-10-20 11:19:32 -07:00
parent a01de44917
commit 591cba6468
2 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ class GifPickerCell: UICollectionViewCell {
activityIndicator.startAnimating()
// Render activityIndicator on a white tile to ensure it's visible on
// when overalayed on a variety of potential gifs.
// when overlayed on a variety of potential gifs.
activityIndicator.backgroundColor = UIColor.white.withAlphaComponent(0.3)
activityIndicator.autoSetDimension(.width, toSize: 30)
activityIndicator.autoSetDimension(.height, toSize: 30)
@ -249,7 +249,7 @@ class GifPickerCell: UICollectionViewCell {
fulfill(asset)
},
failure: { _ in
// TODO GiphyDownloader API shoudl pass through a useful failing error
// TODO GiphyDownloader API should pass through a useful failing error
// so we can pass it through here
Logger.error("\(self.TAG) request failed")
reject(GiphyError.fetchFailure)

View File

@ -161,7 +161,7 @@ class GifPickerViewController: OWSViewController, UISearchBarDelegate, UICollect
self.collectionView.dataSource = self
self.collectionView.backgroundColor = UIColor.white
self.collectionView.register(GifPickerCell.self, forCellWithReuseIdentifier: kCellReuseIdentifier)
// Inserted below searchbar becase we later occlude the collectionview
// Inserted below searchbar because we later occlude the collectionview
// by inserting a masking layer between the search bar and collectionview
self.view.insertSubview(self.collectionView, belowSubview: searchBar)
self.collectionView.autoPinWidthToSuperview()