Skip to content

BDMirrorView is a UIView subclass, which mirrors itself on a chosen "floor."

License

Notifications You must be signed in to change notification settings

viewDidAppear/BDMirrorView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BDMirrorView

A fast and efficient UIView subclass which renders its own reflection, live.

BDMirrorView_hero

GitHub license Platform CocoaPods Twitter Blog


BDMirrorView is a CAReplicatorLayer-backed UIView subclass which can be used to render a live content reflection in an iOS app. If you're struggling to understand why this view exists, just think back to Cover Flow (rip..) and the reflection below each item....

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Features

  • Render a reflection on the top, left, bottom or right-hand side of the view.
  • Customise the distance of the reflection from the parent.
  • Use a masking gradient, or not.

Usage

Set the class of the UIView to BDMirrorView in the Storyboard, or create an IBOutlet. 🙌

Installation & Compatibility

BDMirrorView will work wherever this version of Swift will compile.

Manual (aka Tried & True)

Download the repo and add it into your Xcode project.

CocoaPods

pod 'BDMirrorView'

Why? WHY?

No reason. Have fun!

Credits

BDMirrorView was created by Benjamin Deckys

License

BDMirrorView is available under the MIT license. Please see the LICENSE file for more information.