From 591b709e89cdf9cb766f5693a1e5e9d81147273f Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Tue, 18 Apr 2017 02:41:05 -0300 Subject: [PATCH] Fix broken Markdown headings --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4a6238a..b2fda30 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Blurable -###Apply a Gaussian Blur to any UIView with Swift Protocol Extensions +### Apply a Gaussian Blur to any UIView with Swift Protocol Extensions ##### _Adds `blur()` and `unBlur()` methods to `UIView` components which applies a Core Image Gaussian blur filter to the contents._ -######_Companion project to this blog post: http://flexmonkey.blogspot.co.uk/2015/09/applying-gaussian-blur-to-uiviews-with.html_ +###### _Companion project to this blog post: http://flexmonkey.blogspot.co.uk/2015/09/applying-gaussian-blur-to-uiviews-with.html_ ![screengrab](/FMBlurable/assets/screenshot.jpg) @@ -46,7 +46,7 @@ Obviously, just being a protocol, it doesn't do much on its own. However, by add 1. Download and drop ```FMBlurable.swift``` in your project. 2. Congratulations! -##The Mechanics of Blurable +## The Mechanics of Blurable Getting a blurred representation of a `UIView` is pretty simple: I need to begin an image context, use the view's layer's renderInContext method to render into the context and then get a UIImage from the context: @@ -171,7 +171,7 @@ Finally, to see if a `UIView` is currently blurred, I created `isBlurred()` whic } ``` -##Blurring a UIView +## Blurring a UIView To blur and de-blur, just invoke `blur()` and `unBlur()` on an UIView: @@ -180,6 +180,6 @@ To blur and de-blur, just invoke `blur()` and `unBlur()` on an UIView: segmentedControl.blur(blurRadius: 2) ``` -##Source Code +## Source Code As always, the source code for this project is available at my GitHub repository here. Enjoy!