kf99916 / timelinetableviewcell Goto Github PK
View Code? Open in Web Editor NEWSimple timeline view implemented by UITableViewCell
License: MIT License
Simple timeline view implemented by UITableViewCell
License: MIT License
Hello.
Do you plan to integrate carthage support to this project?
Would be nice.
Thanks.
Hello, I am trying to use this library, unfortunately it doesn't work. I am beginner in swift, so I suppose, it will be some silly mistake. I have create view with tableview and swift file TimelineViewController. I have copied the code from your demo project (from TimelineTableViewController). When I am trying to run it on simulator, I get error
Could not load NIB in bundle: 'NSBundle </Users/silversurfer/Library/Developer/CoreSimulator/Devices/17FBAA4A-F887-4D71-9CD6-41D3979F4A0A/data/Containers/Bundle/Application/14C5257D-7D3E-40CA-9D46-C7E16C0DACF8/Time.app/Frameworks/TimelineTableViewCell.framework> (loaded)' with name 'TimelineTableViewCell''
Could someone help me, where I made a mistake? Thank you in advance
lets change protection level of attribute named 'leftMargin' internal to public, in order to make change x index of vertical line.
Change the offset from 15 to 16(or any other even number) on line 81 of TimelineTableViewCell.swift can make the white line disappear.
I want to customize the custom cell. For example, I want to add a location icon and location label in some cells. Also, I need a button in every cells. Can you help?
Hi,
How can I customize the cell on my own project?
Thanks in advance.
When running my app on smaller screens (iPod, iPhone SE, etc.) the pod crashes in TimelineTableViewCell.swift at line 101 with the fatal error:
Thread 1: Fatal error: Can't form Range with upperBound < lowerBound file Swift/x86_64-apple-ios-simulator.swiftinterface, line 14814
This is the code starting from line 101.
let views = viewsInStackView.count <= maxNumSubviews ? viewsInStackView : Array(viewsInStackView[0..<maxNumSubviews]) views.forEach { view in view.translatesAutoresizingMaskIntoConstraints = false view.addConstraint(NSLayoutConstraint(item: view, attribute: NSLayoutConstraint.Attribute.width, relatedBy: NSLayoutConstraint.Relation.equal, toItem: view, attribute: NSLayoutConstraint.Attribute.height, multiplier: 1, constant: 0)) view.contentMode = .scaleAspectFill view.clipsToBounds = true stackView.addArrangedSubview(view) }
viewsInStackView at this stage are 0, while the maxNumSubviews are -1. Hence the crash.
This is only seen on some devices, not all. Hence it is difficult to spot or reproduce. I have seen this on some iPhone 5s, iPhone SE and iPod Touch (7th Gen) so far.
Need a resolution really soon as many of my users can't use my app anymore.
HI ,
Just checking whether it is possible to support title and description on both sides of line, based on some setting .Please share your thoughts , I want the line to be on the center and title and description to be shown on both sides alternatively.
I have used as you said.
let bundle = Bundle(for: TimelineTableViewCell.self)
let nibUrl = bundle.url(forResource: "TimelineTableViewCell", withExtension: "bundle")
let timelineTableViewCellNib = UINib(nibName: "TimelineTableViewCell",
bundle: Bundle(url: nibUrl!)!)
tableView.register(timelineTableViewCellNib, forCellReuseIdentifier: "TimelineTableViewCell")
But getting error
Fatal error: Unexpectedly found nil while unwrapping an Optional value
Steps to reproduce
Please help me. / Please connect with me to fix this.
would be great to support reverse timeline from bottom to top
support gradient line color for each cell or all timeline
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/irfanpule/Library/Developer/CoreSimulator/Devices/77500ABE-FA84-4DF7-A658-0AC1E134A454/data/Containers/Bundle/Application/CCA3C281-0E57-4313-8B0E-95B53C6D0276/xxxxxx.app/Frameworks/TimelineTableViewCell.framework> (loaded)' with name 'TimelineTableViewCell''
I am using Xcode 11, Swift 5
Not sure how to reproduce this, but for some reason maxNumSubviews
ends up being -1, which causes a crash in TimelineTableViewCell
on this line:
let views = viewsInStackView.count <= maxNumSubviews ? viewsInStackView : Array(viewsInStackView[0..<maxNumSubviews])
Just curious if anyone else has had this problem?
I'm working on a fork on my end, so it may be caused by that. However refactoring this line to be a bit cleaner couldn't hurt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.