Skip to content

Commit 5628966

Browse files
authored
Update layout enum in README
This updates the enum `.cardView` to `.CardView`
1 parent b0e5616 commit 5628966

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ and assortment of nib-based layouts that should handle most cases:
7373
````swift
7474
// Instantiate a message view from the provided card view layout. SwiftMessages searches for nib
7575
// files in the main bundle first, so you can easily copy them into your project and make changes.
76-
let view = MessageView.viewFromNib(layout: .cardView)
76+
let view = MessageView.viewFromNib(layout: .CardView)
7777

7878
// Theme message elements with the warning style.
7979
view.configureTheme(.warning)
@@ -95,7 +95,7 @@ your UIKit code is executed on the main queue:
9595

9696
````swift
9797
SwiftMessages.show {
98-
let view = MessageView.viewFromNib(layout: .cardView)
98+
let view = MessageView.viewFromNib(layout: .CardView)
9999
// ... configure the view
100100
return view
101101
}
@@ -182,7 +182,7 @@ To facilitate the use of nib-based layouts, `MessageView` provides some type-saf
182182
// Instantiate MessageView from one of the provided nibs in a type-safe way.
183183
// SwiftMessages searches the main bundle first, so you easily copy the nib into
184184
// your project and modify it while still using this type-safe call.
185-
let view = MessageView.viewFromNib(layout: .cardView)
185+
let view = MessageView.viewFromNib(layout: .CardView)
186186
````
187187

188188
In addition, the `SwiftMessages` class provides some generic loading methods:

0 commit comments

Comments
 (0)