Comments (4)
Adding screenshot for reference
from folding-cell.
add video adding constraints https://vimeo.com/154954299 to readme.md
I hope this help
from folding-cell.
I doing this in a programatically way. In fact I'm also using easypeasy like the example, but I always getting the error set ForegroundViewTop or ContainerViewTop constraint.
I update the code:
extension DemoFoldingCell {
private func createForegroundView() -> RotatedView {
let foregroundView = RotatedView(frame: .zero)
foregroundView.backgroundColor = UIColor.red
foregroundView.translatesAutoresizingMaskIntoConstraints = false
contentView.addSubview(foregroundView)
foregroundView.easy.layout(
Height(75),
Left(8),
Right(8)
)
let constraint = foregroundView.easy.layout( Top(8).to(self, .top) ).first
constraint?.identifier = "ForegroundViewTop"
foregroundView.layoutIfNeeded()
return foregroundView
}
private func createContainerView() -> UIView {
let containerView = UIView(frame: .zero)
containerView.backgroundColor = UIColor.green
containerView.translatesAutoresizingMaskIntoConstraints = false
contentView.addSubview(containerView)
containerView.easy.layout(
Height(CGFloat(75 * itemCount)),
Left(8),
Right(8)
)
let constraint = containerView.easy.layout( Top(8).to(self, .top) ).first
constraint?.identifier = "ContainerViewTop"
containerView.layoutIfNeeded()
return containerView
}
}
Thanks
Francisco
from folding-cell.
@fbarraganef I rewrite code like you but have an issue on this line:
fatalError("set foregroundViewTop or containerViewTop outlets in storyboard")
How you solve it?
from folding-cell.
Related Issues (20)
- Custom FoldingCell Class not working in storyboards when using Carthage HOT 1
- Contents disappear when scrolling HOT 1
- Slow Animation HOT 2
- Issue in Folding cell while expanding in takeSnapshot HOT 3
- Width compressing HOT 1
- compilation issues with swift 4.2
- How to expand all the cells at first time? HOT 1
- How do you close all open cells programmatically? HOT 1
- Create new cell?
- Swift UI compatibility HOT 3
- fatalError("set foregroundViewTop or containerViewTop outlets in storyboard") HOT 7
- Rendering (screen width) issue on iPad HOT 1
- Dark mode on folding cell?
- TableView Automatic Dimension in Height for row HOT 2
- Index out of range: file HOT 2
- 2 Custom tableviewCells in the same TableView HOT 1
- Not able to set dynamic cell height HOT 1
- Want to use in swift ui
- Documentation the "5.5 Control if the cell is open or closed" doesn't exist
- 'RotatedView' is ambiguous for type lookup in this context
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from folding-cell.