SweetCurtain alternatives and similar libraries
Based on the "UI" category.
Alternatively, view SweetCurtain alternatives based on common mentions on social networks and blogs.
Charts10.0 7.6 L1 SweetCurtain VS ChartsBeautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Material9.9 0.0 L2 SweetCurtain VS MaterialA UI/UX framework for creating beautiful applications.
Hero9.9 4.2 L2 SweetCurtain VS HeroElegant transition library for iOS & tvOS
LTMorphingLabel9.8 0.0 L3 SweetCurtain VS LTMorphingLabel[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.
NVActivityIndicatorView9.8 0.0 L2 SweetCurtain VS NVActivityIndicatorViewA collection of awesome loading animations
Eureka9.8 3.2 L2 SweetCurtain VS EurekaElegant iOS form builder in Swift
Animated Tab Bar9.8 0.0 L5 SweetCurtain VS Animated Tab Bar:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
folding-cell9.8 0.0 L4 SweetCurtain VS folding-cell:octocat: 📃 FoldingCell is an expanding content cell with animation made by @Ramotion
FSPagerView9.7 0.0 L2 SweetCurtain VS FSPagerViewFSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner View、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders.
SwiftMessages9.7 0.0 L2 SweetCurtain VS SwiftMessagesA very flexible message bar for iOS written in Swift.
XLPagerTabStrip9.7 0.0 L4 SweetCurtain VS XLPagerTabStripAndroid PagerTabStrip for iOS.
JTAppleCalendar9.7 0.0 L1 SweetCurtain VS JTAppleCalendarThe Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable
TextFieldEffects9.6 0.0 L5 SweetCurtain VS TextFieldEffectsCustom UITextFields effects inspired by Codrops, built using Swift
Macaw9.6 0.0 L2 SweetCurtain VS MacawPowerful and easy-to-use vector graphics Swift library with SVG support
SwiftEntryKit9.6 0.0 SweetCurtain VS SwiftEntryKitSwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.
Pagemenu9.6 0.0 L2 SweetCurtain VS PagemenuA paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram)
SwipeCellKit9.6 0.0 L5 SweetCurtain VS SwipeCellKitSwipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift.
AMScrollingNavbar9.6 0.0 L4 SweetCurtain VS AMScrollingNavbarScrollable UINavigationBar that follows the scrolling of a UIScrollView
Alerts Pickers9.6 0.0 SweetCurtain VS Alerts PickersAdvanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
SPPermission9.5 7.9 SweetCurtain VS SPPermissionUniversal API for request permission and get its statuses.
SideMenu9.5 0.0 L5 SweetCurtain VS SideMenuSimple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less.
Scrollable-GraphView9.5 0.0 L3 SweetCurtain VS Scrollable-GraphViewAn adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift.
PermissionScope9.5 0.0 L3 SweetCurtain VS PermissionScopeA Periscope-inspired way to ask for iOS permissions.
ImagePicker9.5 0.0 L5 SweetCurtain VS ImagePicker:camera: Reinventing the way ImagePicker works.
Material Components for iOS9.5 8.6 L1 SweetCurtain VS Material Components for iOS[In maintenance mode] Modular and customizable Material Design UI components for iOS
SCLAlertView9.5 0.0 L2 SweetCurtain VS SCLAlertViewBeautiful animated Alert View. Written in Swift
ESTabBarController:octocat: ESTabBarController is a Swift model for customize UI, badge and adding animation to tabbar items. Support lottie!
BulletinBoard9.4 0.0 SweetCurtain VS BulletinBoardGeneral-purpose contextual cards for iOS
NotificationBannerThe easiest way to display highly customizable in app notification banners in iOS
Instructions9.4 4.7 L4 SweetCurtain VS InstructionsCreate walkthroughs and guided tours (coach marks) in a simple way, with Swift.
ActiveLabel9.4 0.0 L4 SweetCurtain VS ActiveLabelUILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift
SlideMenuControllerSwift9.3 0.0 L3 SweetCurtain VS SlideMenuControllerSwiftiOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.
TLYShyNavBar9.3 0.0 L4 SweetCurtain VS TLYShyNavBarUnlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars!
Siren9.3 5.2 L4 SweetCurtain VS SirenNotify users when a new version of your app is available and prompt them to upgrade.
PKHUD9.3 0.0 L4 SweetCurtain VS PKHUDA Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8.
PopupDialog9.3 0.0 L2 SweetCurtain VS PopupDialogA simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.
StarWars.iOS9.2 0.0 L5 SweetCurtain VS StarWars.iOSThis component implements transition animation to crumble view-controller into tiny pieces.
BouncyLayout9.2 0.0 SweetCurtain VS BouncyLayoutMake. It. Bounce.
Persei9.2 0.0 L5 SweetCurtain VS PerseiAnimated top menu for UITableView / UICollectionView / UIScrollView written in Swift
PanelKit9.2 0.0 L4 SweetCurtain VS PanelKitA UI framework that enables panels on iOS.
KMNavigationBarTransition9.2 0.0 L5 SweetCurtain VS KMNavigationBarTransitionA drop-in universal library helps you to manage the navigation bar styles and makes transition animations smooth between different navigation bar styles while pushing or popping a view controller for all orientations. And you don't need to write any line of code for it, it all happens automatically.
DGElasticPullToRefresh9.2 0.0 L4 SweetCurtain VS DGElasticPullToRefreshElastic pull to refresh for iOS developed in Swift
Cards XI9.2 0.0 SweetCurtain VS Cards XIAwesome iOS 11 appstore cards in swift 5.
Whisper9.2 0.0 L4 SweetCurtain VS Whisper:mega: Whisper is a component that will make the task of display messages and in-app notifications simple. It has three different views inside
CircleMenu9.1 0.0 L5 SweetCurtain VS CircleMenu:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion
RazzleDazzle9.1 0.0 L5 SweetCurtain VS RazzleDazzleA simple keyframe-based animation framework for iOS, written in Swift. Perfect for scrolling app intros.
Parchment9.1 0.0 SweetCurtain VS ParchmentA paging view controller with a highly customizable menu ✨
PaperOnboarding9.1 0.0 L5 SweetCurtain VS PaperOnboarding:octocat: PaperOnboarding is a material design UI slider. Swift UI library by @Ramotion
DOFavoriteButton9.1 0.0 L3 SweetCurtain VS DOFavoriteButtonCute Animated Button written in Swift.
XLActionController9.1 0.0 L4 SweetCurtain VS XLActionControllerFully customizable and extensible action sheet controller written in Swift
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SweetCurtain or a related project?
A framework that provides Curtain Controller. Curtain Controller is a container view controller that implements a content-curtain interface.
A SweetCurtain framework provides a Curtain Controller. A Curtain Controller is a container view controller that manages two child view controllers in a content-curtain interface. In this type of interface, the primary view controller (the content) is covered with the secondary view controller (the curtain).
When building your app’s user interface, the Curtain Controller is typically the root view controller of your app’s window, but it may be embedded in another view controller. The Curtain Controller has no significant appearance of its own. Most of its appearance is defined by the child view controllers you install. You can configure the child view controllers using Interface Builder or programmatically using the init(content: curtain:) initializer. The child view controllers can be custom view controllers or other container view controller, such as navigation controllers.
Note: You can push a Curtain Controller onto a navigation stack. Also, its children can be contained in the navigation controller or tab bar controller. But remember that curtain always covers the content. For example, if the content embed in the navigation controller, the curtain will cover the navigation bar too.
When displayed onscreen, the Curtain Controller uses its Delegation object to messaging of its curtain changes. Also, the Curtain Controller provides the curtain object to manage the curtain's properties.
- Coefficient oriented metrics.
- Friendly content changes mechanism.
- Works with storyboard and code.
- So easy to setup and use.
- Compatible with safe area.
- Compatible with scroll view.
- Compatible with horizontal scroll or swipe.
- Designed by the principle of iOS UI components.
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate SweetCurtain into your Xcode project using CocoaPods, specify it in your
platform :ios, '9.0' use_frameworks! target '<Your Target Name>' do pod 'SweetCurtain' end
Then, run the following command:
$ pod install
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update $ brew install carthage
To integrate SweetCurtain into your Xcode project using Carthage, specify it in your
carthage update to build the framework and drag the built SweetCurtain.framework into your Xcode project.
If you prefer not to use either of the aforementioned dependency managers, you can integrate SweetCurtain into your project manually.
Usage and explanation
Setup using storyboard
- Create a view controller and set the Class to be CurtainController in the Identity Inspector.
- Create two other view controllers you want. The one will be a Content and another one will be a Curtain.
- Connect your CurtainController to your new view controllers with the Curtain Connection Segue.
- Choose the Curtain Connection Segue of your Content view controller and type ContentID as it's identifier in the Identity Inspector.
- Choose the Curtain Connection Segue of your Curtain view controller and type CurtainID as it's identifier in the Identity Inspector.
You all set!
Note: Double-check your segues and segue IDs. This is important for the right setup of the flow.
Setup using code
- Create a two view controllers you want for using them as Content and Curtain.
//Also, you can instantiate your controllers from storyboard if you want it. let contentViewController = IceCreamDetailViewController() let curtainViewController = IceCreamListViewController()
- Create a Curtain Controller using two controllers that you created in the previous step.
let curtainController = CurtainController(content: contentViewController, curtain: curtainViewController)
- Show the
curtainControllerwhere and when you want.
show(curtainController, sender: nil)
You all set!
Curtain Controller is a container view controller that implements a content-curtain interface.
You can create the Curtain Controller using Storyboard or from the code.
All of your view controllers have access to the
curtainController property. It's computed property that provides access to the nearest ancestor in the view controller hierarchy that is a Curtain Controller.
The Curtain Controller object has a couple of properties and functions.
||CurtainDelegate?||The delegate you want to receive curtain controller messages that concern its curtain.|
||Curtain!||The object that provides all curtain's behaviour properties.|
The initializer for creating a new Curtain Controller:
init(content: UIViewController, curtain: UIViewController)
Function for moving curtain to the position you want:
func moveCurtain(to position: CurtainHeightState, animated: Bool)
The Curtain is the object of Curtain Controller that provides a couple of properties for behavior and view customization. But Curtain is not the view. The Сurtain is the abstract object represented by protocol with properties that Curtain Controller uses for its purposes. Simply put, the Curtain designed to reduce confusion and delimit settings duty in the controller.
||CGFloat||The minimum value that describes the ratio of the curtain minimum permissible height to the height of the content.|
||CGFloat?||The intermediate value that describes the ratio of the curtain intermediate permissible height to the height of the content.|
||CGFloat||The maximum value that describes the ratio of the curtain maximum permissible height to the height of the content.|
||CurtainSwipeResistance||The swipe resistance of the curtain.|
||TimeInterval||The time in seconds for reaching curtain to the nearest point.|
||Bool||The boolean value that controls whether the curtain bounces past the top.|
||Bool||The boolean value that controls whether the curtain bounces past the bottom.|
||Bool||The boolean that controls whether the curtain shows top handle indicator.|
||UIColor||The color of the curtain's handle indicator.|
||CGFloat||The current readonly value that describes the ratio of the curtain actual height to the height of the content.|
||CGFloat||The current readonly value that describes the curtain actual height.|
heightCoefficientis the property that describes the absolute value of the curtain position. Value 0 means that
actualHeightmight 0 too if the constraints do not interfere. Value 1 means that
actualHeightis the same as the sum of
safeAreaInsets.bottomand safe area height. See the image below for better understanding.
Curtain Delegate is the protocol that allows receiving messages from Curtain Controller. Curtain Delegate provides a couple of functions.
Tells the delegate when thecCurtain did change ir's height state:
func curtain(_ curtain: Curtain, didChange heightState: CurtainHeightState)
Tells the delegate when the curtain is about to start dragging:
func curtainWillBeginDragging(_ curtain: Curtain)
Tells the delegate when dragging ended in the curtain:
func curtainDidEndDragging(_ curtain: Curtain)
Tells the delegate when the user draggs the curtain:
func curtainDidDrag(_ curtain: Curtain)
Curtain height state is an enumerator of height states of the curtain.
|min||Minimum defined height state.|
|mid||Intermediate defined height state.|
|max||Maximum defined height state.|
Curtain Swipe Resistance is an enumerator of predefined (or custom) velocity swipe resistances available for the curtain.
|any||No resistance. Velocity value is 0.|
|low||Low resistance. Velocity value is 300.|
|normal||Normal resistance. Velocity value is 600.|
|high||High resistance. Velocity value is 900.|
|custom(velocity: CGFloat)||Custom resistance. Velocity value is what you set.|
There is the public UIViewController extension in the SweetCurtain framework.
The extension provides
curtainController property that is the nearest ancestor in the view controller hierarchy that is a curtain controller.
Note: You can find the
CurtainControllerfrom any Curtain or Content view controllers. For example, this can be useful if your curtain is a UINavigationController and you need to find CurtainController for its top view controller.
The extension also provides the function
func allowScrollViewInCurtain() that allows topmost scroll view in the hierarchy to use its scroll simultaneously with the curtain.
Note: Your Curtain view controller may contain UIScrollView or any of its subclasses. But by default, it does not affect the scrolling of the curtain. If you want to enable simultaneous scroll for top most scroll view in hierarchy, call
func allowScrollViewInCurtain()in your view controller.
ATTENTION: The function
func allowScrollViewInCurtain()resets your previous scroll view scroll observation from the Curtain befor applies new one. Be careful using this function. For example, if you need to use a navigation controller as Curtain there is a good idea to call this function in 'func viewDidAppear(animated: Bool)' function of its view controllers.
- Test gestures in the controller.
- Write unit tests.
- Update for iPad and big-phones horizontal screen.
- Write log messages for the wrong usage.
- Update animation parameters for grow smoothness.
- Fix horizontal scroll view work.
- Add videos that describe how to use SweetCurtain well.
- Add Swift Dependency way to install.
- Ihor Malovanyi (@multimediasuite)
SweetCurtain is released under the MIT license. See LICENSE for details.
*Note that all licence references and agreements mentioned in the SweetCurtain README section above are relevant to that project's source code only.