Fscalendar: Use of undeclared type 'FSCalendarMonthPosition'

Created on 27 Jan 2017  路  5Comments  路  Source: WenchaoD/FSCalendar

When I install FSCalendar and attempt to use it, it will always give me the error:
Use of undeclared type 'FSCalendarMonthPosition'

This does not allow me to use FSCalendarMonthPosition in the didselect function because of that.

Integration method: Cocoapods

Steps:

1.Add pod 'FSCalendar' to podfile and install.

  1. Create view controller with a calendar.
  2. Create UIViewController file and add code.

Device modal and IOS version: iPhone 6s IOS 10.2
XCode version: 8.2.1

FSCalendar Version: 2.3.3

This does NOT happen in the demo project in FSCalendar-master/Example-Swift

Most helpful comment

I'm seeing this error today too after installing. Downloaded the demo project from here and built/worked no problems at all. XCode 10.

What other setting(s) are required to incorporate this library cleanly into a project ?

2018-11-20_17-31-18

All 5 comments

Hey i'm getting the same problem. Did you find solution for it?

Hey got it.. use below method..
func calendar(_ calendar: FSCalendar, didSelect date: Date) { }

This type is introduced in a later version than 2.3.3. The latest is 2.7.1.

No such module 'FSCalendar' while importing in my viewController

I'm seeing this error today too after installing. Downloaded the demo project from here and built/worked no problems at all. XCode 10.

What other setting(s) are required to incorporate this library cleanly into a project ?

2018-11-20_17-31-18

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csimmons0 picture csimmons0  路  4Comments

vishal-iosdeveloper picture vishal-iosdeveloper  路  5Comments

VaraPrasad62 picture VaraPrasad62  路  4Comments

iHamzaaK picture iHamzaaK  路  5Comments

KushThakkar picture KushThakkar  路  6Comments