Coder Social home page Coder Social logo

swift-week-view's People

Contributors

evancooper9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

swift-week-view's Issues

Creating Events asynchronously

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!

5.3 compiler does not like TimeLineCollectionView.framework

/...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

weekViewStylerHeaderView returns optional?

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

Customize to Half-hour

Hello. Please, help. How to customize a half-hour frame?
For example: 8.00, 8.30, 9.00, 9.30...

No such module 'TimelineCollectionView'

I
screen shot 2019-02-28 at 10 26 37 pm
had download your zip code and when I run it in the Xcode it show error like No Such Module'TimelineCollectionView' and also have frameworks too in the project but also show like this error

Using Firebase with your code

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!

StartHour Won't Changed

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!

how use weekViewDidClickOnFreeTime

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

Update comment documentation for protocol functions

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 

Memory leak

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.

Need Touch Event gesture

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?

Swift Week View with JSON

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!

Scroll view

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.

How to set the Event for particular time of day

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.

scrolling issue

I have used this library sample project for uikit but it doesn't work with timeline scrolling how can I enable it

Screenshot 2022-06-13 at 10 02 25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.