diff --git a/CarLensCollectionViewLayout.podspec b/CarLensCollectionViewLayout.podspec index 31cc1e5..0656ccb 100644 --- a/CarLensCollectionViewLayout.podspec +++ b/CarLensCollectionViewLayout.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "CarLensCollectionViewLayout" - s.version = "1.1.0" + s.version = "1.2.0" s.summary = "An easy to use Collection View Layout for card-like animation." s.homepage = "https://github.com/netguru/CarLensCollectionViewLayout" diff --git a/CarLensCollectionViewLayout/CarLensCollectionViewCell.swift b/CarLensCollectionViewLayout/CarLensCollectionViewCell.swift index c58c87b..1bd4465 100644 --- a/CarLensCollectionViewLayout/CarLensCollectionViewCell.swift +++ b/CarLensCollectionViewLayout/CarLensCollectionViewCell.swift @@ -27,8 +27,8 @@ open class CarLensCollectionViewCell: UICollectionViewCell { /// - Parameters: /// - topView: The upper view of the cell. /// - cardView: The bottom view of the cell. - /// - topViewHeight: An optional parameter to specify the custom height of the top view. The default value is `170` or `200` depending on a device's size. - open func configure(topView: UIView, cardView: UIView, topViewHeight: CGFloat = UIScreen.main.bounds.height > 568 ? 200 : 170) { + /// - topViewHeight: An optional parameter to specify the custom height of the top view. The default value is `200` depending on a device's size. + open func configure(topView: UIView, cardView: UIView, topViewHeight: CGFloat = 200) { self.topViewHeight = topViewHeight self.topView = topView self.cardView = cardView diff --git a/CarLensCollectionViewLayout/Info.plist b/CarLensCollectionViewLayout/Info.plist index a4cf4c4..832301b 100644 --- a/CarLensCollectionViewLayout/Info.plist +++ b/CarLensCollectionViewLayout/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.1.0 + 1.2.0 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/README.md b/README.md index 4b5a5da..401d43f 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ UICollectionView(frame: .zero, collectionViewLayout: CarLensCollectionViewLayout ``` #### Step 2 -Subsclass `CarLensCollectionViewCell` and call `configure(topView: UIView, cardView: UIView)` right on the start! +Subsclass `CarLensCollectionViewCell` and call `configure(topView: UIView, cardView: UIView)` during the cell’s initialization: ```swift class CollectionViewCell: CarLensCollectionViewCell { override init(frame: CGRect) { @@ -92,7 +92,7 @@ If you're using [CocoaPods](http://cocoapods.org), add the following dependency ```none use_frameworks! -pod 'CarLensCollectionViewLayout', '~> 1.1.0' +pod 'CarLensCollectionViewLayout', '~> 1.2.0' ``` ### Carthage @@ -100,22 +100,26 @@ pod 'CarLensCollectionViewLayout', '~> 1.1.0' If you're using [Carthage](https://github.com/Carthage/Carthage), add the following dependency to your `Cartfile`: ```none -github "netguru/CarLensCollectionViewLayout" ~> 1.1.0 +github "netguru/CarLensCollectionViewLayout" ~> 1.2.0 ``` ## About -This project is made with ❤️ by [Netguru](https://netguru.co). +This project is made with ❤️ by [Netguru](https://netguru.co) and maintained by [Anna-Mariia Shkarlinska](https://github.com/anyashka). ### License *CarLensCollectionViewLayout* is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for more info. -## Related links +## Read More + +- [Introducing CarLensCollectionViewLayout - a New Open Source iOS Tool by Netguru](https://www.netguru.com/codestories/introducing-carlenscollectionviewlayout-a-new-open-source-ios-tool-by-netguru) +- [How We Built CarLens](https://www.netguru.com/blog/machine-learning-and-augmented-reality-combined-in-one-sleek-mobile-app-how-we-built-car-lens) + +## Related Links - [CarLens Page](https://www.netguru.com/carlens) -- [CarLens iOS](https://github.com/netguru/car-recognition-ios) +- [CarLens iOS](https://github.com/netguru/CarLens-iOS) - [CarLens in App Store](https://itunes.apple.com/us/app/carlens/id1417168518?mt=8) -- [CarLens Android](https://github.com/netguru/car-recognition-android) +- [CarLens Android](https://github.com/netguru/CarLens-Android) - [CarLens on Google Play](https://play.google.com/store/apps/details?id=co.netguru.android.carrecognition&hl=en) -- [CarLens Story on a Blog](https://www.netguru.com/blog/machine-learning-and-augmented-reality-combined-in-one-sleek-mobile-app-how-we-built-car-lens)