Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy create custom design cell #273

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Econa77
Copy link

@Econa77 Econa77 commented Mar 18, 2020

Now a subclass of FSPagerViewCell is required to create a custom cell.
However, FSPagerViewCell has a design that is unnecessary for customization such as adding shadows.
ref:

self.contentView.layer.shadowColor = UIColor.black.cgColor
self.contentView.layer.shadowRadius = 5
self.contentView.layer.shadowOpacity = 0.75
self.contentView.layer.shadowOffset = .zero

Also, there is no place in this library that uses the properties in FSPagerViewCell.
Therefore, make use of the standard UICollectionViewCell.

@JegaJegatheesh
Copy link

can you share demo code. I'm new to iOS development. Thanks in advance

@Econa77
Copy link
Author

Econa77 commented Jan 9, 2021

@JegaJegatheesh Open this project with Xcode 12 or above 👍
https://github.com/Econa77/FSPagerViewCustomDesign

@JegaJegatheesh
Copy link

Thank you sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants