fix comment typos

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent a01de44917
commit 591cba6468

@ -221,7 +221,7 @@ class GifPickerCell: UICollectionViewCell {
activityIndicator.startAnimating() activityIndicator.startAnimating()
// Render activityIndicator on a white tile to ensure it's visible on // 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.backgroundColor = UIColor.white.withAlphaComponent(0.3)
activityIndicator.autoSetDimension(.width, toSize: 30) activityIndicator.autoSetDimension(.width, toSize: 30)
activityIndicator.autoSetDimension(.height, toSize: 30) activityIndicator.autoSetDimension(.height, toSize: 30)
@ -249,7 +249,7 @@ class GifPickerCell: UICollectionViewCell {
fulfill(asset) fulfill(asset)
}, },
failure: { _ in 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 // so we can pass it through here
Logger.error("\(self.TAG) request failed") Logger.error("\(self.TAG) request failed")
reject(GiphyError.fetchFailure) reject(GiphyError.fetchFailure)

@ -161,7 +161,7 @@ class GifPickerViewController: OWSViewController, UISearchBarDelegate, UICollect
self.collectionView.dataSource = self self.collectionView.dataSource = self
self.collectionView.backgroundColor = UIColor.white self.collectionView.backgroundColor = UIColor.white
self.collectionView.register(GifPickerCell.self, forCellWithReuseIdentifier: kCellReuseIdentifier) 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 // by inserting a masking layer between the search bar and collectionview
self.view.insertSubview(self.collectionView, belowSubview: searchBar) self.view.insertSubview(self.collectionView, belowSubview: searchBar)
self.collectionView.autoPinWidthToSuperview() self.collectionView.autoPinWidthToSuperview()

Loading…
Cancel
Save