Skip to content

Commit afab501

Browse files
fix typo in a method's name
1 parent d3c89ac commit afab501

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/ComponentsKit/Components/Checkbox/Models/CheckboxVM.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ extension CheckboxVM {
119119
func shouldUpdateSize(_ oldModel: Self) -> Bool {
120120
return self.size != oldModel.size
121121
}
122-
func shouldUpadateLayout(_ oldModel: Self) -> Bool {
122+
func shouldUpdateLayout(_ oldModel: Self) -> Bool {
123123
return self.size != oldModel.size
124124
|| self.title.isNotNilAndEmpty && oldModel.title.isNilOrEmpty
125125
|| self.title.isNilOrEmpty && oldModel.title.isNotNilAndEmpty

Sources/ComponentsKit/Components/Checkbox/UKCheckbox.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ open class UKCheckbox: UIView, UKComponent {
155155
self.checkboxContainerConstraints.width?.constant = self.model.checkboxSide
156156
self.setupCheckmarkLayer()
157157
}
158-
if self.model.shouldUpadateLayout(oldModel) {
158+
if self.model.shouldUpdateLayout(oldModel) {
159159
self.setNeedsLayout()
160160
self.invalidateIntrinsicContentSize()
161161
}

0 commit comments

Comments
 (0)