{ /* block-comment */ }
{ /* Heading 2: Introduction */ }
Welcome to the documentation for the FS Calendar Persian extension!
{ /* Heading 2: Table of Contents */ }
This documentation is organized into the following sections:
- Installation
- Getting Started
- Configuration
- Usage
- Callbacks and Delegation
- Localization
- Additional Resources
{ /* Heading 2: Installation */ }
To install the FS Calendar Persian extension, you can follow these steps:
- Open your project in Xcode.
- Open your project’s Podfile and add the following line:
pod 'FSCalendarPersian', '~> 1.0'
- Save the Podfile.
- Run
pod install
in the terminal.
{ /* Heading 2: Getting Started */ }
To get started with FS Calendar Persian, you need to import the module:
{import FSCalendarPersian}
After importing the module, you can initialize the Persian calendar as follows:
let calendar = FSCalendarPersian()
Now you can use the calendar instance to customize and interact with the Persian calendar.
{ /* Heading 2: Configuration */ }
The FS Calendar Persian extension provides various configuration options to customize the appearance and behavior of the Persian calendar. Here are some of the available options:
- Locale: Set the desired locale for the Persian calendar.
- Appearance: Customize the colors, fonts, and styles of the calendar.
- Selection Mode: Define whether the user can select a single date or multiple dates.
- Delegate Methods: Implement delegate methods to receive events and handle user interactions.
For detailed information on how to configure the Persian calendar, please refer to the official FS Calendar Persian documentation.
{ /* Heading 2: Usage */ }
The FS Calendar Persian extension provides a set of handy APIs that allow you to perform various actions on the Persian calendar. Here are some examples:
- Select a Date: Use the
select
method to programmatically select a date in the calendar. - Scroll to a Date: Utilize the
scrollToDate
method to scroll to a specific date in the calendar. - Reload Data: Trigger the
reloadData
method to refresh the content of the calendar.
For more detailed information on how to use the Persian calendar, refer to the official FS Calendar Persian documentation.
{ /* Heading 2: Callbacks and Delegation */ }
The FS Calendar Persian extension provides a set of delegate protocols that allow you to handle user interactions and receive events from the calendar. Some of the available delegate methods include:
calendar:didSelectDate:
– Triggered when a date is selected in the calendar.calendar:didDeselectDate:
– Triggered when a date is deselected in the calendar.calendar:willDisplayCell:forDate:atMonthPosition:
– Called when a calendar cell is about to be displayed.
For a more comprehensive list of available delegate methods and how to implement them, consult the official FS Calendar Persian documentation.
{ /* Heading 2: Localization */ }
The Persian calendar extension supports localization, allowing you to display the calendar’s content in different languages. To localize the Persian calendar, follow these steps:
- Create a localized strings file for each desired language.
- Add the necessary translations for the calendar’s content.
- Set the desired locale for the Persian calendar to automatically display the localized content.
For more information on how to localize the Persian calendar, please refer to the official FS Calendar Persian documentation.
{ /* Heading 2: Additional Resources */ }
Here are some additional resources that can help you better understand and utilize the FS Calendar Persian extension:
These resources provide extensive documentation, examples, and community support for the Persian calendar extension.