evancooper9 / swift-week-view Goto Github PK
View Code? Open in Web Editor NEWAn iOS calendar library for displaying calendar events in a week view.
An iOS calendar library for displaying calendar events in a week view.
it will be good if we get all these features https://github.com/jumartin/Calendar
/...swift-week-view-master/Source/Views/WeekView.swift:12:8: Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.3 compiler: /...swiftweek/swiftweek/TimelineCollectionView.framework/Modules/TimelineCollectionView.swiftmodule/x86_64.swiftmodule
You have strong references here. So when I put your code in VC which is pushed from other VC and I hit back, WeekView never gets deinitialized.
Hi!
I'm creating an app where the users can create events from the app. However, I'm having trouble with refreshing the weekView or using the eventCompletion in weekViewGenerateEvents.
How am I supposed to create new events?
Thanks!
The readme indicates that the return is not optional, but code demands it.
Readme:
// Create the header view for the day in the calendar. This would normally contain information about the date
func weekViewStylerHeaderView(_ weekView: ECWeekView, with date: DateInRegion, in cell: UICollectionViewCell) -> UIView
Hello,
thanks you to share your library
i try to use your library, and i want make a Event when i click on the cell free for create a new event with
function weekViewDidClickOnFreeTime(). i want recup the date and the hour of this cell.
Thanks you for your answer
Dear Evan,
Hello. Nice to meet you here.
I would like to create one small app. I want to show the events from JSON. Each event will have its specific date, starting time, ending time and other details. I am quite stuck in the half way to integrate this to my small app.
When I add the code to weekViewGenerateEvents function, it shows same task on all the same date.
Can you please let's me know how should I proceed it? If you have some sample app, it will be great. Thanks in advance.
Cheers!
Hi, nice work..
On iphoneX vertical scroll not work... any idea about how to fix?
Another question, if possible.. I need only today events, can horizontal scroll be deactivated?
Tnx a lot
m.
I'm Implementing your Repo however either in your example or in a new project whenever I want to change the startHour; In runtime, it won't change at all, But when I go deep into your WeekView Implementation and changing the defaults(9:00,17:00) it changes!
Example
/*
weekViewStylerEventView(_ weekView: WeekView, eventContainer: CGRect, event: WeekViewEvent) -> UIView
Description:
Create the view for an event
Params:
- weekView: the WeekView that the view will be added to
- eventCoordinate: the coordinate of the event view (top left)
- eventSize: the size, in width and height, of the event view
- event: the event it's self
*/
@objc optional func weekViewStylerEventView(_ weekView: WeekView, eventContainer: CGRect, event: WeekViewEvent) -> UIView
view.startHour = 7
view.endHour = 12
Events are positioned correctly but the grid and the hour label stays at 9-17.
Hey,
It's a fabulous control and It really has some cool capabilities in order to build a complete event based calendar control. One thing I really need in my project is to touch on any events and do some action. Could you please guide me how would I do it?
Hello,
It's about 10 days I'm trying to figure out how to edit a little part of your code only to be able to use it with Firebase.
Firebase it's downloading all events already added in your way (WeekViewEvent
) but the problem is the function weekViewGenerateEvents()
.
I really dunno how to solve it, I know the problem is the async and the sync. But really dunno how to solve.
Could you please help me just a little bit?
How can I use it synchronously? Thank you very much.
Best, best regards!
Hi Sir, I have checked your library and it is amazing, I have to use this library in one of my project, But i struggling with Setting an Event.
I have checked the demo project ("ECWeekViewExample") and found this code for SWIFT:
let lunchStart = date.dateBySet(hour: 12, min: 0, secs: 0)!
let lunchEnd = date.dateBySet(hour: 13, min: 0, secs: 0)!
let lunch = ECWeekViewEvent(title: "Lunch", subtitle: "lunch", start: lunchStart, end: lunchEnd)
This Event is Set for EveryDay!, Can you please let me know is there a way to set it for particular single day only. If YES then please let me know HOW ?
Please help me out. Any guidance will be appreciated.
Thank you.
Hello. Please, help. How to customize a half-hour frame?
For example: 8.00, 8.30, 9.00, 9.30...
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.