Skip to content

Commit b89e71d

Browse files
Merge pull request #52 from componentskit/public-repo
Public Repo
2 parents d3c89ac + be381b3 commit b89e71d

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 ComponentsKit
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@
22

33
## Installation
44

5-
Before proceeding with the installation, ensure that you are signed in to your GitHub account in Xcode, and that your account has access to the repository:
6-
7-
1. From the **Xcode** menu, click on **Settings**, and access the **Account** section.
8-
2. If you are not authorized, click on **+**, choose **GitHub**, and input your credentials.
9-
10-
Once you are signed in to your GitHub account, you can add ComponentsKit to an Xcode project as a package dependency:
5+
Add ComponentsKit to an Xcode project as a package dependency:
116

127
1. From the **File** menu, select **Add Package Dependencies...**.
138
2. Enter `https://github.com/componentskit/ComponentsKit` into the package repository URL text field.
14-
3. Add **ComponentsKit** to your application.
9+
3. Add **componentskit** to your application.
1510

1611
## Basic Usage
1712

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

+1-1
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

+1-1
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)