Skip to content

Commit

Permalink
* Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iletai committed May 4, 2024
1 parent 2ed0505 commit 38ed7cc
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions Sources/CalendarView/CalendarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,38 @@ import SwiftUI
- HeaderView: The type of view to use for displaying the header containing the month and year.
- DateOutView: The type of view to use for displaying dates outside the current month.

- Note: The `CalendarView` struct is a generic type that takes three type parameters: `DateView`, `HeaderView`, and `DateOutView`. These type parameters determine the types of views used for displaying dates, headers, and dates outside the current month, respectively.
- Note: The `CalendarView` struct is a generic type that takes three type parameters: `DateView`, `HeaderView`,
and `DateOutView`.
- These type parameters determine the types of views used for displaying dates,
headers, and dates outside the current month, respectively.

- Note: The `CalendarView` struct conforms to the `View` protocol, which means it can be used as a view in SwiftUI.

- Note: The `CalendarView` struct is annotated with the `@MainActor` attribute, which ensures that the view is always accessed from the main actor's context.
- Note: The `CalendarView` struct is annotated with the `@MainActor` attribute,
which ensures that the view is always accessed from the main actor's context.

- Note: The `CalendarView` struct has several associated type aliases: `OnSelectedDate`, `OnEndDragAction`, `YearData`, `MonthDateData`, and `WeekDataData`. These aliases are used to define the types of closures and data structures used by the `CalendarView`.
- Note: The `CalendarView` struct has several associated type aliases: `OnSelectedDate`,
`OnEndDragAction`, `YearData`, `MonthDateData`, and `WeekDataData`
. These aliases are used to define the types of closures and data structures used by the `CalendarView`.

- Note: The `CalendarView` struct has several properties, including `date`, `calendarOptions`, `dateView`, `headerView`, `dateOutView`, `pinedHeaderView`, `onSelected`, `isGestureFinished`, and `onDraggingEnded`. These properties control the behavior and appearance of the calendar view.
- Note: The `CalendarView` struct has several properties, including
`date`, `calendarOptions`, `dateView`, `headerView`, `dateOutView`, `pinedHeaderView`, `onSelected`,
`isGestureFinished`, and `onDraggingEnded`.
These properties control the behavior and appearance of the calendar view.

- Note: The `CalendarView` struct has a `body` property that returns a `View` representing the content of the calendar view.

Check failure on line 41 in Sources/CalendarView/CalendarView.swift

View workflow job for this annotation

GitHub Actions / Check Lint

Line Length Violation: Line should be 120 characters or less; currently it has 125 characters (line_length)

- Note: The `CalendarView` struct uses a `ScrollView` and a `LazyVGrid` to display the calendar's content. The `ScrollView` provides scrolling behavior, while the `LazyVGrid` arranges the date views in a grid layout.
- Note: The `CalendarView` struct uses a `ScrollView` and a `LazyVGrid` to display the calendar's content.
The `ScrollView` provides scrolling behavior, while the `LazyVGrid` arranges the date views in a grid layout.

- Note: The `CalendarView` struct uses a `DragGesture` to detect swipe gestures on the calendar view. When a swipe gesture is detected, the `onDraggingEnded` closure is called with the direction of the swipe and the current view mode of the calendar.
- Note: The `CalendarView` struct uses a `DragGesture` to detect swipe gestures on the calendar view.
When a swipe gesture is detected,
the `onDraggingEnded` closure is called with the direction of the swipe and the current view mode of the calendar.

- Note: The `CalendarView` struct provides several modifiers, such as `marginDefault()`, `background(_:)`, `simultaneousGesture(_:)`, `scrollIndicators(_:)`, `scrollDisabled(_:)`, and `frameInfinity()`, that can be used to customize the appearance and behavior of the calendar view.
- Note: The `CalendarView` struct provides several modifiers,
such as `marginDefault()`, `background(_:)`, `simultaneousGesture(_:)`,
`scrollIndicators(_:)`, `scrollDisabled(_:)`, and `frameInfinity()`,
that can be used to customize the appearance and behavior of the calendar view.
*/
@MainActor
public struct CalendarView<
Expand Down

0 comments on commit 38ed7cc

Please sign in to comment.