Skip to content

Commit

Permalink
make modifiers optional (microsoft#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderboswell authored Apr 8, 2024
1 parent 3da41ed commit 07cd718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/FluentUI/List/ListItemModifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public extension ListItem {
/// The line limit for `title`.
/// - Parameter titleLineLimit: The number of lines to display for the `title`.
/// - Returns: The modified `ListItem` with the property set.
func titleLineLimit(_ titleLineLimit: Int) -> ListItem {
func titleLineLimit(_ titleLineLimit: Int?) -> ListItem {
var listItem = self
listItem.titleLineLimit = titleLineLimit
return listItem
Expand All @@ -35,7 +35,7 @@ public extension ListItem {
/// The line limit for `subtitle`.
/// - Parameter subtitleLineLimit: The number of lines to display for the `subtitle`.
/// - Returns: The modified `ListItem` with the property set.
func subtitleLineLimit(_ subtitleLineLimit: Int) -> ListItem {
func subtitleLineLimit(_ subtitleLineLimit: Int?) -> ListItem {
var listItem = self
listItem.subtitleLineLimit = subtitleLineLimit
return listItem
Expand All @@ -44,7 +44,7 @@ public extension ListItem {
/// The line limit for `footer`.
/// - Parameter footerLineLimit: The number of lines to display for the `footer`.
/// - Returns: The modified `ListItem` with the property set.
func footerLineLimit(_ footerLineLimit: Int) -> ListItem {
func footerLineLimit(_ footerLineLimit: Int?) -> ListItem {
var listItem = self
listItem.footerLineLimit = footerLineLimit
return listItem
Expand Down

0 comments on commit 07cd718

Please sign in to comment.