SMSwipeableTabView alternatives and similar libraries
Based on the "UI" category.
Alternatively, view SMSwipeableTabView alternatives based on common mentions on social networks and blogs.
-
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 -
JTAppleCalendar
The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable -
FSPagerView
FSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner View、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders. -
Alerts Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date... -
SideMenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less. -
Pagemenu
A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram) -
SwiftEntryKit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps. -
SwipeCellKit
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. -
Scrollable-GraphView
An adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift. -
ESTabBarController
:octocat: ESTabBarController is a Swift model for customize UI, badge and adding animation to tabbar items. Support lottie! -
Material Components for iOS
[In maintenance mode] Modular and customizable Material Design UI components for iOS -
NotificationBanner
The easiest way to display highly customizable in app notification banners in iOS -
ActiveLabel
UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift -
SlideMenuControllerSwift
iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift. -
PopupDialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style. -
TLYShyNavBar
DISCONTINUED. Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars! -
StarWars.iOS
This component implements transition animation to crumble view-controller into tiny pieces. -
KMNavigationBarTransition
A 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. -
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 -
PaperOnboarding
:octocat: PaperOnboarding is a material design UI slider. Swift UI library by @Ramotion -
CircleMenu
:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion -
RazzleDazzle
A simple keyframe-based animation framework for iOS, written in Swift. Perfect for scrolling app intros.
CodeRabbit: AI Code Reviews for Developers

* 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 SMSwipeableTabView or a related project?
README
SMSwipeableTabView
SMSwipeableTabView is a custom control which is mixture of UIPageViewController and Scrollable Tab Bar. This is similar to Swipe view with tabs alyout in android. Any number of tabs can be added along with the swipeable views. User can fully customize the control.
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
This library works with iOS version 8.0 and above. It is written in Swift.
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 7
Demo:
(Without Customization)
Installation
CocoaPods (iOS 8+, OS X 10.9+)
SMSwipeableTabView is available through CocoaPods. To install it, simply add the following line to your Podfile:
platform: ios, '8.0'
use_framework!
target 'MyApp' do
pod "SMSwipeableTabView"
end
Carthage (iOS 8+, OS X 10.9+)
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 SMSwipeableTabView into your Xcode project using Carthage, specify it in your Cartfile
:
github "smahajan28/SMSwipeableTabView"
Run carthage update
to build the framework and drag the built SMSwipeableTabView.framework
into your Xcode project.
Swift Package Manager
How to use
(check out the provided Example)
We need to add the following code in the viewController where we need to implement this control.
//Add the title bar elements as an Array of String
swipeableView.titleBarDataSource = titleBarDataSource //Array of Button Titles like ["Punjab", "Karnataka", "Mumbai"]
//Assign your viewcontroller as delegate to load the Viewcontroller
swipeableView.delegate = self
//Set the View Frame (64.0 is 44.0(NavigationBar Height) + 20.0(StatusBar Height))
swipeableView.viewFrame = CGRect(x: 0.0, y: 64.0, width: UIScreen.mainScreen().bounds.width, height: UIScreen.mainScreen().bounds.height-64.0)
//Then add the view controller on the current view.
self.addChildViewController(swipeableView)
self.view.addSubview(swipeableView.view)
swipeableView.didMoveToParentViewController(self)
Delegate Callback
Whenever you click on any segment button or swipe the page on the controller. Delegate method will return the next viewcontroller to load
func didLoadViewControllerAtIndex(index: Int) -> UIViewController {
//We can implement switch case with the index Parameter and load new controller at every new index. Or we can load the same list view with different datasource.
let listVC = UIViewController()
listVC.backgroundColor = UIColor.red
listVC.dataSource = anyArray[index] // This will be an array of arrays or we need to set our dataSource of every different controller.
return listVC
}
Customization
We can customize each and every control in this view. Just pass a dictionary with required fields.
NOTE: Set the frame of swipeableViewController after setting all the attributes.
e.g.: If you want to change the background color of the top bar, just add the following code:
swipeableView.segmentBarAttributes = [SMBackgroundColorAttribute : UIColor.lightGray]
If you want to change the background color of the selection bar(Bar display under the segment button) and set Alpha of the selection bar, just add the following code:
swipeableView.selectionBarAttributes = [
SMBackgroundColorAttribute : UIColor.green,
SMAlphaAttribute : 0.8
]
Also you can update the segment Button, just add attributes for button:
// Setting Font And BackgroundColor of Button
swipeableView.buttonAttributes = [
SMBackgroundColorAttribute : UIColor.green,
SMAlphaAttribute : 0.8,
SMFontAttribute : UIFont(name: "HelveticaNeue-Medium", size: 13.0)
]
if you want to add images instead of Title in buttons, you can easily set Normal and Highlighted Image attribute in the dictionary, like
// Setting Font And BackgroundColor of Button
// Here for Normal and Highlighted Images we need to send the imageName array
swipeableView.buttonAttributes = [
SMBackgroundColorAttribute : UIColor.clear,
SMAlphaAttribute : 0.8,
SMButtonHideTitleAttribute : true,
SMButtonNormalImagesAttribute :["image_name1", "image_name2"] as [String]),
SMButtonHighlightedImagesAttribute : ["high_image_name1", "high_image_name2"] as [String])
]
you can add the following attribute keys in the dictionary
SMFontAttribute // Set UIFont insatance
SMForegroundColorAttribute // Set UIColor instance (e.g. : Button Title Label ForegroundColor)
SMBackgroundColorAttribute // Set UIColor instance
SMAlphaAttribute // Set CGFloat value
SMBackgroundImageAttribute // Set UIImage instance
SMButtonNormalImageAttribute // Set UIImage instance
SMButtonHighlightedImageAttribute // Set UIImage instance
SMButtonHideTitleAttribute // Set Bool instance
Width of selectionBar is highly customizable. We can make the width fix or variabele.
swipeableView.buttonWidth = 60.0
Similarly Height of selectionBar can be changed using
swipeableView.selectionBarHeight = 2.0 //For thin line
We can also change the height of the segmentBar, use the below line of code:
swipeableView.segementBarHeight = 50.0 //Default is 44.0
Padding in the button can be customised using:
swipeableView.buttonPadding = 10.0 //Default is 8.0
Customized App Demo
(With Customization)
Author
Sahil Mahajan, [email protected]
License
SMSwipeableTabView is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the SMSwipeableTabView README section above
are relevant to that project's source code only.