RBManagedVisualEffect Class Reference

Inherits from NSObject
Declared in RBManagedVisualEffect.h

Overview

Provides an easy method to wrap a UIView within a UIVisualEffectView with blur and vibrancy effects.

  view

The main view.

@property (nonatomic, readonly, nonnull) UIView *view

Declared In

RBManagedVisualEffect.h

  parentView

The parent view that should contain the managed view.

@property (nonatomic, readonly, nonnull) UIView *parentView

Declared In

RBManagedVisualEffect.h

  effectType

The effect type.

@property (nonatomic) RBVisualEffectType effectType

Declared In

RBManagedVisualEffect.h

  managedView

The managed view. Depending on the RBVisualEffectType this will either be the view (if effectType = RBVisualEffectTypeNone) or a UIVisualEffectView.

@property (nonatomic, readonly, nonnull) UIView *managedView

Declared In

RBManagedVisualEffect.h

  visualEffectView

The UIVisualEffectView if an effect has been applied.

@property (nonatomic, readonly, nullable) UIVisualEffectView *visualEffectView

Declared In

RBManagedVisualEffect.h

  vibrancyEffectView

The UIVisualEffectView that corresponds to the UIVibrancyEffect if a effectType with vibrancy has been applied.

@property (nonatomic, readonly, nullable) UIVisualEffectView *vibrancyEffectView

Declared In

RBManagedVisualEffect.h

– initWithView:parentView:effectType:

Initializes a new RBManagedVisualEffect object.

- (nonnull instancetype)initWithView:(nonnull UIView *)view parentView:(nonnull UIView *)parentView effectType:(RBVisualEffectType)effectType

Parameters

view

The UIView that effects should be applied to.

parentView

The parent UIView container that the view or the managed UIVisualEffectViews should be added to.

effectType

The effect type.

Return Value

A newly initialized RBManagedVisualEffect object.

Declared In

RBManagedVisualEffect.h

– layoutWithFrame:

Sets the managedView frame to the given frame. If an effectType is applied the underlying UIVisualEffectViews as well as the main view will be adjusted to match the frame size.

- (void)layoutWithFrame:(CGRect)frame

Parameters

frame

The frame to use.

Declared In

RBManagedVisualEffect.h