Skip to content
This repository was archived by the owner on Oct 18, 2022. It is now read-only.

Commit e45159a

Browse files
authored
Merge pull request #13 from netguru/task/CRAI-380
[CRAI-380] Top View Height and README.md Update
2 parents 3b523d2 + 355bca7 commit e45159a

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

CarLensCollectionViewLayout.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "CarLensCollectionViewLayout"
4-
s.version = "1.1.0"
4+
s.version = "1.2.0"
55
s.summary = "An easy to use Collection View Layout for card-like animation."
66

77
s.homepage = "https://github.com/netguru/CarLensCollectionViewLayout"

CarLensCollectionViewLayout/CarLensCollectionViewCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ open class CarLensCollectionViewCell: UICollectionViewCell {
2727
/// - Parameters:
2828
/// - topView: The upper view of the cell.
2929
/// - cardView: The bottom view of the cell.
30-
/// - 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.
31-
open func configure(topView: UIView, cardView: UIView, topViewHeight: CGFloat = UIScreen.main.bounds.height > 568 ? 200 : 170) {
30+
/// - topViewHeight: An optional parameter to specify the custom height of the top view. The default value is `200` depending on a device's size.
31+
open func configure(topView: UIView, cardView: UIView, topViewHeight: CGFloat = 200) {
3232
self.topViewHeight = topViewHeight
3333
self.topView = topView
3434
self.cardView = cardView

CarLensCollectionViewLayout/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.1.0</string>
18+
<string>1.2.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
</dict>

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ UICollectionView(frame: .zero, collectionViewLayout: CarLensCollectionViewLayout
3535
```
3636

3737
#### Step 2
38-
Subsclass `CarLensCollectionViewCell` and call `configure(topView: UIView, cardView: UIView)` right on the start!
38+
Subsclass `CarLensCollectionViewCell` and call `configure(topView: UIView, cardView: UIView)` during the cell’s initialization:
3939
```swift
4040
class CollectionViewCell: CarLensCollectionViewCell {
4141
override init(frame: CGRect) {
@@ -92,30 +92,34 @@ If you're using [CocoaPods](http://cocoapods.org), add the following dependency
9292

9393
```none
9494
use_frameworks!
95-
pod 'CarLensCollectionViewLayout', '~> 1.1.0'
95+
pod 'CarLensCollectionViewLayout', '~> 1.2.0'
9696
```
9797

9898
### Carthage
9999

100100
If you're using [Carthage](https://github.com/Carthage/Carthage), add the following dependency to your `Cartfile`:
101101

102102
```none
103-
github "netguru/CarLensCollectionViewLayout" ~> 1.1.0
103+
github "netguru/CarLensCollectionViewLayout" ~> 1.2.0
104104
```
105105

106106
## About
107107

108-
This project is made with ❤️ by [Netguru](https://netguru.co).
108+
This project is made with ❤️ by [Netguru](https://netguru.co) and maintained by [Anna-Mariia Shkarlinska](https://github.com/anyashka).
109109

110110
### License
111111

112112
*CarLensCollectionViewLayout* is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for more info.
113113

114-
## Related links
114+
## Read More
115+
116+
- [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)
117+
- [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)
118+
119+
## Related Links
115120

116121
- [CarLens Page](https://www.netguru.com/carlens)
117-
- [CarLens iOS](https://github.com/netguru/car-recognition-ios)
122+
- [CarLens iOS](https://github.com/netguru/CarLens-iOS)
118123
- [CarLens in App Store](https://itunes.apple.com/us/app/carlens/id1417168518?mt=8)
119-
- [CarLens Android](https://github.com/netguru/car-recognition-android)
124+
- [CarLens Android](https://github.com/netguru/CarLens-Android)
120125
- [CarLens on Google Play](https://play.google.com/store/apps/details?id=co.netguru.android.carrecognition&hl=en)
121-
- [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)

0 commit comments

Comments
 (0)