From ffe67649e99cdaf0decba9f9d5706bf362530a45 Mon Sep 17 00:00:00 2001 From: Anna-Mariia Shkarlinska Date: Wed, 6 Feb 2019 14:08:28 +0100 Subject: [PATCH 1/4] Change default top view height --- CarLensCollectionViewLayout/CarLensCollectionViewCell.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From e3af3e9c8e929aa506a36f9236ba7f7a5602ad15 Mon Sep 17 00:00:00 2001 From: Anna-Mariia Shkarlinska Date: Wed, 6 Feb 2019 14:21:11 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fe6162d..8e87eee 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) { @@ -101,17 +101,21 @@ github "netguru/CarLensCollectionViewLayout" ~> 1.1.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. +## 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) From dab375a6a0bcce22cac7a5bdd9bb92cca95d773c Mon Sep 17 00:00:00 2001 From: Anna-Mariia Shkarlinska Date: Wed, 6 Feb 2019 14:23:54 +0100 Subject: [PATCH 3/4] Bump to a new release version --- CarLensCollectionViewLayout.podspec | 2 +- CarLensCollectionViewLayout/Info.plist | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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/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 8e87eee..b438576 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,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 @@ -96,7 +96,7 @@ 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 From 355bca71098d3c601e5966f69da9be3daa86fb38 Mon Sep 17 00:00:00 2001 From: Anna-Mariia Shkarlinska Date: Wed, 6 Feb 2019 14:33:53 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b438576..8c944ce 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ This project is made with ❤️ by [Netguru](https://netguru.co) and maintained - [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 +## Related Links - [CarLens Page](https://www.netguru.com/carlens) - [CarLens iOS](https://github.com/netguru/CarLens-iOS)