Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-pod committed Apr 25, 2024
1 parent 97ca255 commit 76891c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FormDemoTests/FormDirectionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum AccessoryViewDirection: Int {
case next
}

protocol FormDirectionManagerDelegate: class {
protocol FormDirectionManagerDelegate: AnyObject {
func formDirectionManager(_ formDirectionManager: FormDirectionManager, canEditCellAtIndexPath indexPath: IndexPath) -> Bool
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import UIKit

protocol FormTableViewCellActionHandler: class {
protocol FormTableViewCellActionHandler: AnyObject {
func handleLeftViewAction(from cell: FormBaseTableViewCell)
func handleRightViewAction(from cell: FormBaseTableViewCell)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum AccessoryViewDirection: Int {
case next
}

protocol FormDirectionManagerDelegate: class {
protocol FormDirectionManagerDelegate: AnyObject {
func formDirectionManager(_ formDirectionManager: FormDirectionManager, canEditCellAt indexPath: IndexPath) -> Bool
}

Expand Down
4 changes: 2 additions & 2 deletions Modules/ADFormController/Classes/FormInputTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protocol FormTextInputTableViewCell {
func apply(configuration: FormCellTextConfiguration)
}

protocol FormTextInputTableViewCellDelegate: class {
protocol FormTextInputTableViewCellDelegate: AnyObject {
func textInputTableViewCellDidBeginEditing(_ cell: FormTextInputTableViewCell)
func textInputTableViewCellShouldReturn(_ cell: FormTextInputTableViewCell) -> Bool
func textInputTableViewCellValueChanged(_ cell: FormTextInputTableViewCell)
Expand All @@ -32,6 +32,6 @@ protocol FormBoolInputTableViewCell {
func apply(configuration: FormCellBoolConfiguration)
}

protocol FormBoolInputTableViewCellDelegate: class {
protocol FormBoolInputTableViewCellDelegate: AnyObject {
func boolInputTableViewCellDidChangeValue(_ cell: FormBoolInputTableViewCell)
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import Foundation
}

open func selectedIndexes(from string: String) -> [Int] {
guard let index = options.index(of: string) else {
guard let index = options.firstIndex(of: string) else {
return [0]
}
return [index]
Expand Down

0 comments on commit 76891c8

Please sign in to comment.