Skip to content

Commit be5cd64

Browse files
committed
Move note about canceling vibrancy (now unsupported) to its own page
iOS 8 beta 1 supported canceling vibrancy but beta 5 does not. Update the readme and move the note to its own page. Addresses #1.
1 parent 4248e75 commit be5cd64

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

CancelingVibrancy.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Canceling Vibrancy
2+
------------------
3+
4+
In iOS 8 beta 1 you could cancel the vibrancy effect with a UILabel whose text color is rendered invisible with the blur effect underneath.
5+
6+
<img src="Screenshots/CancelUIVibrancyEffect.png" width="320" height="568" alt="Screenshot">
7+
8+
For an "invisible" text color, you could use white for extra light or light blur and black for dark blur. Add the UILabel to a vibrancy UIVisualEffectView's contentView and position it on top of vibrant text or a vibrant image.

README.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,4 @@ To render vibrant text, create a UILabel and add it to the vibrancy UIVisualEffe
2222

2323
For vibrant images, create a UIImage that is treated as a template mask with `UIImageRenderingMode.AlwaysTemplate`. One side effect is that the colors in your image are ignored. However, this lets you easily use your image in a vibrancy UIVisualEffectView. As with text, you add the UIImage to the vibrancy UIVisualEffectView's contentView.
2424

25-
### Canceling Vibrancy
26-
27-
You can cancel the vibrancy effect with a UILabel whose text color is rendered invisible with the blur effect underneath.
28-
29-
<img src="Screenshots/CancelUIVibrancyEffect.png" width="320" height="568" alt="Screenshot">
30-
31-
For an "invisible" text color, you can use white for extra light or light blur and black for dark blur. Add the UILabel to a vibrancy UIVisualEffectView's contentView and position it on top of vibrant text or a vibrant image.
32-
33-
This effect is not demonstrated in the example, but the screenshot above should give you a sense of what it looks like.
25+
In early iOS 8 betas you could [cancel the vibrancy effect](CancelingVibrancy.md) so that subviews would look blurred on top of a vibrant background. However, this undocumented effect has been

0 commit comments

Comments
 (0)