Family alternatives and similar libraries
Based on the "UI" category.
Alternatively, view Family 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 Family or a related project?
README
Description
Family is a child view controller framework that makes setting up your parent controllers as easy as pie. With a simple yet powerful public API, you can build complex layouts without losing maintainability, leaving you to focus on what matters: making your applications pop and your business logic shine.
This framework was built to make it easier to build and maintain parent controllers, also known as flow controllers. Using child view controllers can make your code more modular, flexible and testable. It addresses one of the biggest shortcomings of the vanilla approach: how do you get a continuous scrolling experience while keeping dequeuing intact?
This is where Family framework comes in. With the help of its layout algorithm, all your regular- and scroll views get stacked in the same linear vertical order you add them to the hierarchy. To achieve a continuous scrolling view, your child scroll views no longer scroll themselves, but get their new content offset passed to them by the parent scroll view, which the framework handles for you. The framework also modifies the views' frames on the fly, constraining the height to the window.
The story behind Family
If you are interested in the origin story behind Family, then you can read this Medium article.
Features
- [x] 🍩Animation support.
- [x] 🤳🏻Continuous scrolling with multiple scroll views.
- [x] 📏Margins between child view controllers.
- [x] 🌀Table view and collection view dequeuing.
- [x] 🍭Supports custom spacing between views.
- [x] 📱iOS support.
- [x] 💻macOS support.
- [x] 📺tvOS support.
Supporting the project
If you want to support the development of this framework, you can do so by becoming a sponsor. ❤️
Usage
The new public API:
body(withDuration: 0) {
add(detailViewController)
.background(.view(backgroundView))
.padding(.init(top: 20, left: 20, bottom: 20, right: 20))
.margin(.init(top: 20, left: 0, bottom: 20, right: 0))
}
Add a regular child view controller:
let familyController = FamilyViewController()
let viewController = UIViewController()
familyController.addChild(viewController)
Add a child view controller constrained by height:
let familyController = FamilyViewController()
let viewController = UIViewController()
familyController.addChild(viewController, height: 175)
Add a child view controller with a custom view on the controller:
let familyController = FamilyViewController()
let customController = CustomViewController()
// This will add the scroll view of the custom controller
// instead of the controllers view.
familyController.addChild(customController, view: { $0.scrollView })
Move a view controller:
familyController.moveChild(customController, to: 1)
Perform batch updates (it is encouraged to use performBatchUpdates when updaing more than one view controller):
familyController.performBatchUpdates({ controller in
controller.addChild(controller1)
controller.addChild(controller2)
controller.moveChild(controller2, to: 0)
controller3.removeFromParent()
})
Adding animations
When adding animations, not that you have to give them a key.
let basicAnimation = CABasicAnimation()
basicAnimation.duration = 0.5
controller.view.layer.add(springAnimation, forKey: "Basic Animations")
let springAnimation = CASpringAnimation()
springAnimation.damping = 0.6
springAnimation.initialVelocity = 0.6
springAnimation.mass = 0.4
springAnimation.duration = 0.6
springAnimation.isRemovedOnCompletion = false
controller.view.layer.add(springAnimation, forKey: "Spring Animations")
Installation
Family is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Family'
and then run
pod install
Family is also available through Carthage. To install just write into your Cartfile:
github "zenangst/Family"
and then run
carthage install
When it's finished, install the built framework (which can be found in the Carthage/Build
folder) into your Xcode project.
Family can also be installed manually. Just download and drop Sources
folders in your project.
Author
Christoffer Winterkvist, [email protected]
Contributing
We would love you to contribute to Family, check the CONTRIBUTING file for more info.
Credits
- hyperoslo's Spots uses the same kind of implementation in order to render its component.
- Ole Begemanns implementation of OLEContainerScrollView is the basis for
SpotsScrollView
, we salute you. Reference: http://oleb.net/blog/2014/05/scrollviews-inside-scrollviews/
License
Family is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the Family README section above
are relevant to that project's source code only.