Skip to content

Commit 319c536

Browse files
committed
Update README.md.
1 parent c7339d9 commit 319c536

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Lima is a Swift package for simplifying development of UIKit-based iOS applicati
88
For example, the following code creates an instance of Lima's `LMColumnView` class containing an image view and a label:
99

1010
```swift
11-
let columnView = LMColumnView(
12-
UIImageView(image: UIImage(named: "world.png"), contentMode: .scaleAspectFit),
11+
LMColumnView() {
12+
UIImageView(image: UIImage(named: "world.png"), contentMode: .scaleAspectFit)
1313
UILabel(text: "Hello, World!", textAlignment: .center)
14-
)
14+
}
1515
```
1616

1717
The result is shown below:
@@ -20,7 +20,7 @@ The result is shown below:
2020

2121
The complete source code for this example can be found [here](LimaTest/GreetingViewController.swift).
2222

23-
Lima requires iOS 16 or later.
23+
Lima requires iOS 18 or later.
2424

2525
# Lima Classes
2626
Auto layout in UIKit is implemented via layout constraints, which, while powerful, are not particularly convenient to work with. To simplify the process, Lima provides a set of view classes whose sole responsibility is managing the size and position of their respective subviews. These classes use layout constraints internally, allowing developers to easily take advantage of auto layout while eliminating the need to manage constraints directly:

0 commit comments

Comments
 (0)