宛如一场华丽的五彩碎纸雨,为你的应用增添异彩
jinbaobei
8年前
<p><img src="https://simg.open-open.com/show/a6f144fa09f8a17e2633131916f072be.png"></p> <h2><strong>ConfettiView</strong></h2> <p>Confetti View lets you create a magnificent confetti view in your app. This was inspired by <a href="/misc/goto?guid=4959719791418950723" rel="nofollow,noindex">House Party</a> app's login screen. Written in Swift 3 :)</p> <p style="text-align:center"><img src="https://simg.open-open.com/show/8c7be3e8af1f2f3f14c12034eaf9d3ea.gif"></p> <p>It reacts to the phone accelerometer therefore it's better to run the example project on the device.</p> <h2><strong>Usage</strong></h2> <h3><strong>With Interface Builder</strong></h3> <p style="text-align:center"><img src="https://simg.open-open.com/show/ac7ca8eaabc4def093efefa0527311ca.png"></p> <p>Simply pick a view and change it's type to ConfettiView.</p> <h3><strong>Programaticlly</strong></h3> <p>ConfettiView is a subclass of UIView</p> <pre> let confettiView = ConffetiView() self.view.addSubView(confettiView)</pre> <h2><strong>Installation</strong></h2> <p>ConfettiView is available through <a href="/misc/goto?guid=4958869288453138992" rel="nofollow,noindex">CocoaPods</a> . To install it, simply add the following line to your Podfile:</p> <pre> pod "ConfettiView"</pre> <h2><strong>Author</strong></h2> <p>Or Ron, <a href="/misc/goto?guid=4959719791539813218" rel="nofollow,noindex">or.ron10@gmail.com</a></p> <h2><strong>License</strong></h2> <p>ConfettiView is available under the MIT license. See the LICENSE file for more info.</p> <p> </p> <p> </p> <p> </p>