All Projects → umarF → Capsuleview

umarF / Capsuleview

Licence: mit
An easy to use drop-in view to create a beautiful card style effect with a title placeholder and body content.

Programming Languages

swift
15916 projects
swift3
66 projects

Projects that are alternatives of or similar to Capsuleview

Triangle
A (really) simple Swift 4 UIView class with a triangle and a diagonal line rendered and customizable in the storyboard (color, line width, direction)
Stars: ✭ 25 (-63.24%)
Mutual labels:  uiview, storyboard
Uicard
Generic UI for card games like Hearthstone, Magic Arena and Slay the Spire...
Stars: ✭ 142 (+108.82%)
Mutual labels:  uiview, cardview
Ppbadgeview
iOS Custom Badge, Support UIView, UITabBarItem, UIBarButtonItem ,Support Objective-C/Swift; iOS自定义Badge组件, 支持UIView, UITabBarItem, UIBarButtonItem, 支持Objective-C/Swift
Stars: ✭ 807 (+1086.76%)
Mutual labels:  uiview
Bartycrouch
Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.
Stars: ✭ 1,032 (+1417.65%)
Mutual labels:  storyboard
Cardviewlist
An elegant and responsive CardView like Android on iOS with Swift. Available horizontal and vertical scrolling with full animations and customizable.
Stars: ✭ 30 (-55.88%)
Mutual labels:  cardview
Carouselview
Carousel View
Stars: ✭ 22 (-67.65%)
Mutual labels:  uiview
Aaviewanimator
AAViewAnimator is a set of animations designed for UIView, UIButton, UIImageView with options in iOS, written in Swift.
Stars: ✭ 33 (-51.47%)
Mutual labels:  uiview
Viewanimator
ViewAnimator brings your UI to life with just one line
Stars: ✭ 6,592 (+9594.12%)
Mutual labels:  uiview
Tc Material Design
Série de artigos sobre o Material Design Android
Stars: ✭ 64 (-5.88%)
Mutual labels:  cardview
Ahoy Onboarding
Android onboarding library.
Stars: ✭ 951 (+1298.53%)
Mutual labels:  cardview
Restaurant App
Restaurant Food Ordering Mobile Application
Stars: ✭ 44 (-35.29%)
Mutual labels:  cardview
Food Delivery Application
This android application is a food delivery application. It uses various layouts and a nice GUI.
Stars: ✭ 27 (-60.29%)
Mutual labels:  cardview
Cardsholder
Demonstration of complex interface layouts using child view controllers in iOS 🦾
Stars: ✭ 24 (-64.71%)
Mutual labels:  cardview
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-47.06%)
Mutual labels:  uiview
Materialdesignsamples
Material Design 系列控件samples,讲了Material Design 系列新控件的使用方法和一些场景示例,使用详情请看对应博客,持续更新中...
Stars: ✭ 900 (+1223.53%)
Mutual labels:  cardview
Keyboardhidemanager
Codeless manager to hide keyboard by tapping on views for iOS written in Swift
Stars: ✭ 57 (-16.18%)
Mutual labels:  storyboard
Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+9613.24%)
Mutual labels:  storyboard
Iblinter
A linter tool for Interface Builder
Stars: ✭ 915 (+1245.59%)
Mutual labels:  storyboard
Leego
Declarative, configurable & highly reusable UI development as making Lego bricks.
Stars: ✭ 967 (+1322.06%)
Mutual labels:  uiview
Tweenkit
Animation library for iOS in Swift
Stars: ✭ 1,146 (+1585.29%)
Mutual labels:  uiview

CapsuleView

An easy to use drop-in view to create a beautiful card style effect with a title placeholder and body content.

  • Supports IBDesignable
  • Full controls available in storyboard
  • Can be used programatically
  • Swift 3.0 + support

Gif

Features

  • Set capsule background
  • Set Place holder and content text
  • Set Place holder and content text allignment
  • Set Place holder and content text size
  • Set Shadow and corner radius
  • A handy cross button with toggle option

How to install

  • Drag and drop the two files CapsuleView Files namely, CapsuleView.swift & CapsuleView.xib into your project.

How to use (Storyboard)

  • Open storyboard, select the view you want to customize and change it's custom class to CapsuleView as shown:

storyboard

  • Make changes to the view in storyboard

  • Open your viewcontroller, create an outlet to the selected view and call the setupView() method as shown:

storyboard

Result

How to use (Programatically)

  • Just use the helper init method to set the view and make the customization.
  • Add the capsule view to your view as shown below:

//MARK: Use for adding view dynamically
 let capsuleViewFrame = CGRect(x: 50, y: 200, width: 300, height: 300)
 let capsuleView = CapsuleView(placeholderText: "Address", contentText: "31st street,\nPark Avenue,\n 46/6,\n New York,\n USA", cardColor: UIColor(red: 0.075, green: 0.561, blue: 0.325, alpha: 1.00), textColor: UIColor.white, shadowColor: UIColor.darkGray, shadowOpacity: 9, shadowRadius: 9, cardRadius: 9, shadowOffset: CGSize(width: 0, height: 0), textAllignment: 1, showCross: false, viewFrame: capsuleViewFrame,placeHolderSize:4,titleSize: 3)
 self.view.addSubview(capsuleView)
 self.view.bringSubview(toFront: capsuleView)

Result

Full Demo (YoutTube)

YouTube

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].