From 1268db13c57f6a02ab8f6552afd6c33159857d63 Mon Sep 17 00:00:00 2001 From: Lucas Lois Date: Sat, 21 Aug 2021 10:46:34 -0300 Subject: [PATCH] removes unnecessary typing --- .../Controller/MovieListing/MovieListingController.swift | 6 +++--- MoViesC/Controller/MovieSharing.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MoViesC/Controller/MovieListing/MovieListingController.swift b/MoViesC/Controller/MovieListing/MovieListingController.swift index f9560b0..4ecce59 100644 --- a/MoViesC/Controller/MovieListing/MovieListingController.swift +++ b/MoViesC/Controller/MovieListing/MovieListingController.swift @@ -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? @@ -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) diff --git a/MoViesC/Controller/MovieSharing.swift b/MoViesC/Controller/MovieSharing.swift index 3063182..0e3fe85 100644 --- a/MoViesC/Controller/MovieSharing.swift +++ b/MoViesC/Controller/MovieSharing.swift @@ -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