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

Commit ea3e12c

Browse files
authored
Merge pull request #5 from netguru/task/CRAI-363
[CRAI-363] Update README.md for public repository
2 parents 4a29bf4 + 6bad93a commit ea3e12c

File tree

1 file changed

+68
-26
lines changed

1 file changed

+68
-26
lines changed

README.md

Lines changed: 68 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,81 @@
11
# CarLensCollectionViewLayout
22

3-
The beautiful animation of collection view cells.
3+
![](https://img.shields.io/badge/swift-4.2-orange.svg)
4+
![](https://img.shields.io/badge/cocoapods-compatible-green.svg)
5+
![](https://img.shields.io/badge/carthage-compatible-green.svg)
6+
![](https://app.bitrise.io/app/23a07b63b3f55f97/status.svg?token=Rt_2gKUavbR8LQ7PVuTbYg&branch=master)
47

5-
## Team
8+
An easy to use Collection View Layout for card-like animation 🎉
69

7-
* [Julia Wolszczak](mailto:julia.wolszczak@netguru.co) - Project Manager
8-
* [Anna-Mariia Shkarlinska](mailto:anna-mariia.shkarlinska@netguru.co) - iOS Developer
10+
<p align="center">
11+
<img src="https://user-images.githubusercontent.com/18245585/50694808-2b795e80-103b-11e9-839d-f2d8dc533bb4.gif" width="250">
12+
</p>
913

10-
## Tools & Services
14+
*CarLensCollectionViewLayout* was created out of the implementation in [**CarLens** application 🚘](https://github.com/netguru/car-recognition-ios). The image above exactly shows the screen from the app!
1115

12-
* Tools:
13-
* Xcode 10.1 with latest iOS stable SDK (12.0) and Swift 4.2
14-
* Services:
15-
* [JIRA](https://netguru.atlassian.net/secure/RapidBoard.jspa?rapidView=584&view=detail)
16-
* [Bitrise](https://app.bitrise.io/app/8f268362f4edaa0d)
16+
## Requirements
1717

18-
## Coding guidelines
18+
*CarLensCollectionViewLayout* is written in **Swift 4.2** and supports **iOS 9.0+**.
1919

20-
- Respect Swift [API Design Guidelines](https://swift.org/documentation/api-design-guidelines/)
21-
- The code must be readable and self-explanatory - full variable names, meaningful methods, etc.
22-
- Don't leave any commented-out code.
23-
- Write documentation for every method and property accessible outside the class. For example well documented method looks as follows:
2420

25-
```swift
26-
/// Tells the magician to perform a given trick.
27-
///
28-
/// - Parameter trick: The magic trick to perform.
29-
/// - Returns: Whether the magician succeeded in performing the magic trick.
30-
func perform(magicTrick trick: MagicTrick) -> Bool {
31-
// body
32-
}
33-
```
21+
## Usage
3422

35-
## Related repositories
23+
The two main steps are needed for the configuration of *CarLensCollectionViewLayout*:
3624

25+
### Step 1
26+
Assign `CarLensCollectionViewLayout` to yours collection view layout:
27+
```swift
28+
collectionView.collectionViewLayout = CarLensCollectionViewLayout()
29+
```
30+
or initialize your collection view with `CarLensCollectionViewLayout`:
31+
```swift
32+
UICollectionView(frame: .zero, collectionViewLayout: CarLensCollectionViewLayout())
33+
```
34+
35+
### Step 2
36+
Subsclass `CarLensCollectionViewCell` and call `configure(topView: UIView, cardView: UIView)` right on the start!
37+
```swift
38+
class CollectionViewCell: CarLensCollectionViewCell {
39+
override init(frame: CGRect) {
40+
super.init(frame: frame)
41+
configure(topView: upperView, cardView: bottomView)
42+
}
43+
}
44+
```
45+
The sample implementation is available in [Demo](CarLensCollectionViewDemo) project.
46+
47+
## Installation
48+
49+
### CocoaPods
50+
51+
If you're using [CocoaPods](http://cocoapods.org), add the following dependency to your `Podfile`:
52+
53+
```none
54+
use_frameworks!
55+
pod 'CarLensCollectionViewLayout', '~> 1.0.0'
56+
```
57+
58+
### Carthage
59+
60+
If you're using [Carthage](https://github.com/Carthage/Carthage), add the following dependency to your `Cartfile`:
61+
62+
```none
63+
github "netguru/CarLensCollectionViewLayout" ~> 1.0.0
64+
```
65+
66+
## About
67+
68+
This project is made with ❤️ by [Netguru](https://netguru.co).
69+
70+
### License
71+
72+
*CarLensCollectionViewLayout* is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for more info.
73+
74+
## Related links
75+
76+
- [CarLens Page](https://www.netguru.com/carlens)
3777
- [CarLens iOS](https://github.com/netguru/car-recognition-ios)
78+
- [CarLens in App Store](https://itunes.apple.com/us/app/carlens/id1417168518?mt=8)
3879
- [CarLens Android](https://github.com/netguru/car-recognition-android)
39-
- [CarLens Machine Learning](https://github.com/netguru/car-recognition-ml)
80+
- [CarLens on Google Play](https://play.google.com/store/apps/details?id=co.netguru.android.carrecognition&hl=en)
81+
- [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)