SEssentialsDecoratedView Class Reference

Inherits from UIView
Declared in SEssentialsDecoratedView.h
Availability
Related samples

Overview

The SEssentialsDecoratedView allows decoration to be added to the wrapped UIView. This allows for ShinobiControls effects, such as reflection and shadows, to be applied to the view, which update as the wrapped view is updated.

For more information on the individual effects, see the relevant class;

Effects can be chained together to allow for multiple effects. For example, to add fading around the edges of a view, then reflect it;

SEssentialsDecoratedFadedView *faded = [ [ SEssentialsDecoratedFadedView alloc ] initWithView:view ];
SEssentialsDecoratedReflectedView *reflected = [ [ SEssentialsDecoratedReflectedView alloc] initWithView:faded ];

Properties

view

The view which the SEssentialsDecoratedView was initialized with.

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

Declared In

SEssentialsDecoratedView.h

Instance Methods

applyDecoration

This forces the decorated view to update its contents.

- (void)applyDecoration

Declared In

SEssentialsDecoratedView.h

initWithView:

Create an SEssentialsDecoratedView with a target view to apply effects to. The SEssentialsDecoratedView resizes to fit the subview exactly.

- (instancetype)initWithView:(UIView *)view

Parameters

view

The view to apply effects to.

Declared In

SEssentialsDecoratedView.h