Skip to content

Commit 659aa16

Browse files
authored
Merge pull request SwiftKickMobile#179 from bastilimbach/patch-1
Fix wrong enum name
2 parents 65e6f4c + 9107885 commit 659aa16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ and assortment of nib-based layouts that should handle most cases:
9494
````swift
9595
// Instantiate a message view from the provided card view layout. SwiftMessages searches for nib
9696
// files in the main bundle first, so you can easily copy them into your project and make changes.
97-
let view = MessageView.viewFromNib(layout: .CardView)
97+
let view = MessageView.viewFromNib(layout: .cardView)
9898

9999
// Theme message elements with the warning style.
100100
view.configureTheme(.warning)
@@ -116,7 +116,7 @@ your UIKit code is executed on the main queue:
116116

117117
````swift
118118
SwiftMessages.show {
119-
let view = MessageView.viewFromNib(layout: .CardView)
119+
let view = MessageView.viewFromNib(layout: .cardView)
120120
// ... configure the view
121121
return view
122122
}
@@ -262,7 +262,7 @@ To facilitate the use of nib-based layouts, `MessageView` provides some type-saf
262262
// Instantiate MessageView from one of the provided nibs in a type-safe way.
263263
// SwiftMessages searches the main bundle first, so you easily copy the nib into
264264
// your project and modify it while still using this type-safe call.
265-
let view = MessageView.viewFromNib(layout: .CardView)
265+
let view = MessageView.viewFromNib(layout: .cardView)
266266
````
267267

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

0 commit comments

Comments
 (0)