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

Commit

Permalink
Merge pull request #13 from netguru/task/CRAI-380
Browse files Browse the repository at this point in the history
[CRAI-380] Top View Height and README.md Update
  • Loading branch information
anyashka authored Feb 6, 2019
2 parents 3b523d2 + 355bca7 commit e45159a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CarLensCollectionViewLayout.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions CarLensCollectionViewLayout/CarLensCollectionViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CarLensCollectionViewLayout/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.2.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -92,30 +92,34 @@ If you're using [CocoaPods](https://cocoapods.org), add the following dependency

```none
use_frameworks!
pod 'CarLensCollectionViewLayout', '~> 1.1.0'
pod 'CarLensCollectionViewLayout', '~> 1.2.0'
```

### Carthage

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)

0 comments on commit e45159a

Please sign in to comment.