Giter Site home page Giter Site logo

quivr / ios-week-view Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 21.0 1.27 MB

QVRWeekView is a framework which provides a calendar view that can be customized to display between 1 to 7 days in both portrait and landscape mode. Includes customization features to customize colours, fonts and sizes.

License: MIT License

Ruby 0.89% Swift 98.53% Objective-C 0.42% C 0.16%

ios-week-view's People

Contributors

lesyk avatar reilem avatar unknownjoe796 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-week-view's Issues

How to delete all events

I just wanted to know if it was possible to delete all the events in the event data so the screen goes empty

Remove All Events Not Work!!

self.allCalendarEvents.removeAll()
self.calendarWeekView.loadEvents(withData: nil)

Why are the events still displayed?

minHour and maxHour properties to limit visible hours

Hi,

Did you think about implementing this?
Any cons against it maybe?

I'll most likely need this feature and I think I'll give it a try (unless you plan to do it in the near future) just wanted double-check with you first.

Thanks!

DayDate's components are not public

We can access the visible date range, but without DayDate's components being public, there's very little that we can do with that information.

grey gap when scrolling

Hi,

There's a fairly big blank (grey) area on the top and also at the bottom when scrolling the weekview.
See screensot.

As mentioned earlier, I'll try to look into it, for now I just posted it here.

Cheers

How to know when i do horizontal scroll [Listenner method]

Hi,
I am using this library and i did use your library in android. And now, i am using for Swift.
I am developer with this library but i don't know how to know the range of days when scrolling, in real time.

In the Android library, i can change label when i scrolled but in the iOS i can't find the method who is called when scrolling.

Can you help me ?

Thank you

How to store events

I just wanted to know if there was an easy way to store the event data on the iPhone or in a database so when the app is closed and re-opened it still contains all the same events as before.

Just to clarify I want to know how to store the event data for the calendar with all the events I have created, and how I would load the events in with viewDidLoad()

day labels (top bar) don't resize in 7 day view

Hi,

Cool project, I just tried it, great stuff! ;)

I'll post a few things I found (I'll look more into them, just after first impression).

Day labels (top bar) don't resize in 7 day view:
the text gets squeezed, it does not resize or break lines, see screenshot here
(Sorry about the locale:)

How to stop adding events when long pressing

I have deleted all the code inside the didLongPress() func as I do not want to add a new event when long-pressing, most of it is gone however when I long-press it gives me a single event which I cannot click or edit at all, this is similar to the one in the example project
Also thank you for helping me so far

Horizontal scroll is too sensitive

I just wanted to know if there was any other way of reducing the horizontal scrolling sensitivity, I have tried weekView.velocityOffsetMultiplier but it doesn't seem to have any difference. Also is there any way to make changing the date more smooth when you horizontal scroll, there is a small delay between when you scroll and when the weekview corrects itself

Event time print

How to remove event default time text. I want to display just event data title.
Ekran Resmi 2019-04-01 13 57 43

Inheritance problem - saving EventData objects

I'm having another hard time with the library as I cannot save EventData objects (Realm, CoreData).
To be able to store events, EventData has to inherit from Object (Realm) or NSObject (CoreData), what makes redundant conformance to CustomStringConvertible, Equatable, Hashable protocols:

zrzut ekranu 2018-06-29 o 16 09 41

But even if I remove 3 protocols mentiones above, I'm still getting about 12 errors, like:

Initializer 'init(id:title:startDate:endDate:location:color:)' with Objective-C selector 'initWithId:title:startDate:endDate:location:color:' conflicts with previous declaration with the same Objective-C selector

Method 'configureGradient' with Objective-C selector 'configureGradient:' conflicts with previous declaration with the same Objective-C selector

and so on...:

zrzut ekranu 2018-06-29 o 16 13 05

the question is... how do you store them !? I'm going out of my head trying to find out how to add events to my Realm / CoreData database.

Could you give me a hint, please?

weekview layout constraints

Hi,

I'm not sure how I should set the weekview's constraints:

  • If I set my weekview to occupy the full screen (center it and size == parent view's size), the top bar (with the day labels) disappears, see screenshot.
  • If I set the weekview's height to a percentage less than 1 (say 0.9) of the parent's size, than there will be a small gap rendered on top: see screenshot.

Is the top bar's size fixed maybe? How to set it to support different screen sizes?

Cheers

Cannot update new cocoapod

I have tried updating to your new update for the finite scrolling but it does not allow me to
It gives me this error

[!] Error installing QVRWeekView
[!] /usr/bin/git clone https://github.com/Quivr/iOS-Week-View.git /var/folders/n3/4b_44kjd1s38037nwq8hv67c0000gp/T/d20200516-8075-1uika7r --template= --single-branch --depth 1 --branch 0.14.0
Cloning into '/var/folders/n3/4b_44kjd1s38037nwq8hv67c0000gp/T/d20200516-8075-1uika7r'...
warning: Could not find remote branch 0.14.0 to clone.
fatal: Remote branch 0.14.0 not found in upstream origin

Similar project

I'm working on a similar project and have looked through your code.

However, instead of 7 days of one individual's scheduled events, I'm creating a similar view of a single day's schedule for 1 to n individuals. So in other words instead of days at the column heads it would show names and each column would be the same day.

Do you think your classes could be subclassed to accomplish this?
screen shot 2017-08-24 at 4 44 20 pm

Anyway to completely customise the events title

when you give the events title and the events date the event automatically gets the title with the name and the title and || with the location data next to it, is there a way to have complete control of the text on an event

Unable to run command 'StripNIB EventViev.nib...'

Hello everyone,
I'm having some problem with the library after installing QVRWeekView pod - getting dependency errors (below) on Xcode 9.3 everytime I try to build the app... Any ideas how to handle it?

``
Unable to run command 'StripNIB EventView.nib' - this target might include its own product.
Unable to run command 'StripNIB EventViewiphone.nib' - this target might include its own product.
Unable to run command 'StripNIB EventView
ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB HourSideBarView.nib' - this target might include its own product.
Unable to run command 'StripNIB HourSideBarViewiphone.nib' - this target might include its own product.
Unable to run command 'StripNIB HourSideBarView
ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB HourSideBarViewC.nib' - this target might include its own product.
Unable to run command 'StripNIB HourSideBarViewCiphone.nib' - this target might include its own product.
Unable to run command 'StripNIB HourSideBarViewC
ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB WeekView.nib' - this target might include its own product.
Unable to run command 'StripNIB WeekViewiphone.nib' - this target might include its own product.
Unable to run command 'StripNIB WeekView
ipad.nib' - this target might include its own product.

switching between number of days visible

Hi,

I have my weekWiew that is set up to display a whole week first and then later I try to change the number of days visible. I do this:

weekView.visibleDaysInLandscapeMode = 1
weekView.visibleDaysInPortraitMode = 1

and WeekView.swift gives me an index out of range error on line 393

But only with 1, and not for example with 3 or 4.

What am I missing, is this maybe not the intended way to switch the number of days that are shown?

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.