diff --git a/README.md b/README.md index 4341ba2..d8294ff 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ md.attributedString() URL ```swift -if let url = NSBundle.mainBundle().URLForResource("file", withExtension: "md"), md = SwiftyMarkdown(url: url ) { +if let url = Bundle.main.url(forResource: "file", withExtension: "md"), md = SwiftyMarkdown(url: url ) { md.attributedString() } ```