Skip to content

Instantly share code, notes, and snippets.

@zmcartor
Created February 19, 2016 17:03
Show Gist options
  • Save zmcartor/cfaa75727a52eb4788ef to your computer and use it in GitHub Desktop.
Save zmcartor/cfaa75727a52eb4788ef to your computer and use it in GitHub Desktop.
UIVisualEffectView *vibrantView = [[UIVisualEffectView alloc] initWithEffect:[UIVibrancyEffect effectForBlurEffect:blur]]; vibrantView.frame = blurView.bounds; 
UILabel *label = [[UILabel alloc] init]; 
[label setFont:[UIFont fontWithName:@"HelveticaNeue" size:33]]; label.frame = CGRectMake(8, 30, 400, 500); 
label.numberOfLines = 0; 
label.text = @"THIS IS VIBRANT TEXT!"; 

// add vibrantView to first blurView
[vibrantView.contentView addSubview:label];
[blurView.contentView addSubview:vibrantView];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment