Skip to content

Commit

Permalink
removes unnecessary typing
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasloisp committed Aug 21, 2021
1 parent bb93199 commit 1268db1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions MoViesC/Controller/MovieListing/MovieListingController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ protocol MovieListingControllerDelegate: AnyObject {
class MovieListingController: NSObject {
internal var movies: [Movie] = []
var moviesCount: Int { movies.count }
var emptyMessage: String = ""
var showingRating: Bool = true
var emptyMessage = ""
var showingRating = true

weak var delegate: MovieListingControllerDelegate?
weak var collectionView: UICollectionView?
Expand Down Expand Up @@ -82,7 +82,7 @@ extension MovieListingController: UICollectionViewDataSource, UICollectionViewDe
layout collectionViewLayout: UICollectionViewLayout,
sizeForItemAt indexPath: IndexPath) -> CGSize {
let availableWidth = collectionView.frame.width
let itemsPerRow: Int = Int(availableWidth) / 100
let itemsPerRow = Int(availableWidth) / 100
let widthPerItem = availableWidth / CGFloat(itemsPerRow) - 4

return CGSize(width: widthPerItem, height: widthPerItem * 2)
Expand Down
2 changes: 1 addition & 1 deletion MoViesC/Controller/MovieSharing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MovieSharing {

var isInitialized: Bool { _isInitialized }
private let multiPeer: MultiPeer
private var _isInitialized: Bool = false
private var _isInitialized = false

private init() {
self.multiPeer = MultiPeer.instance
Expand Down

0 comments on commit 1268db1

Please sign in to comment.