![MicrosoftTeams-image (18)](https://private-user-images.githubusercontent.com/99391641/303297059-9bf6dfb6-8e99-4435-acdb-dc57967acac6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTIzNzcsIm5iZiI6MTczOTY5MjA3NywicGF0aCI6Ii85OTM5MTY0MS8zMDMyOTcwNTktOWJmNmRmYjYtOGU5OS00NDM1LWFjZGItZGM1Nzk2N2FjYWM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3NDc1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRhODFhNGIyOTU3OWE1MmE0MzNiN2ExMTU0YjBkMzQ2MTU5ZGM2MTg1ZTQ2MjI0ZGU2MmJiZTM5OWNhOGZkOTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.y4Nq9MKxB4_a5FUHdXilZd0ZYM0vbUb3S6BdPgfDEz0)
SSExpandableSwipeUpView is a powerful Swift library developed using the SwiftUI framework for iOS applications. It resembles iPhone notification tray, also known as the Notification Center, is a centralized hub designed to provide users with a quick and organized overview of their incoming alerts, messages, and updates. Accessible by swiping down from the top edge of the screen, the notification tray displays a chronological list of notifications from various apps and system events. The library offers a wide range of customizable options. SSExpandableSwipeUpView is simple to integrate into your existing projects and offers excellent performance, making it an essential tool for any iOS developer contributing to a seamless and personalized user experience.
- Group stack view like notification control center
- Clear all and remove options
- Expand and collapse views
- Fully customizable
- CocoaPods
![](https://private-user-images.githubusercontent.com/99391641/301102940-e062b418-d30b-45e0-bd15-d4ebf08eb1e0.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTIzNzcsIm5iZiI6MTczOTY5MjA3NywicGF0aCI6Ii85OTM5MTY0MS8zMDExMDI5NDAtZTA2MmI0MTgtZDMwYi00NWUwLWJkMTUtZDRlYmYwOGViMWUwLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3NDc1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3ODFkODQ5N2RmMDYyZjg5OGQyNTliZTM2NzUyZThmZWMyMmVlYmU1ZTkxZjMyZTA2ODRkMDhhODJiOGI4M2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.f19gG_2Na_cHqKxo_Qdn4bzC4KyGm65tjyXOMpC1oiQ)
- iOS 16
- Xcode 14
CocoaPods
-
You can use CocoaPods to install SSExpandableSwipeUpView by adding it to your Podfile:
use_frameworks! pod 'SSExpandableSwipeUpView'
-
import UIKit import SSExpandableSwipeUpView
Swift Package Manager
-
When using Xcode 11 or later, you can install SSExpandableSwipeUpView by going to your Project settings > Swift Packages and add the repository by providing the GitHub URL. Alternatively, you can go to File > Swift Packages > Add Package Dependencies...
-
import SSExpandableSwipeUpView
Manually
- Add SSExpandableSwipeView folder from /Sources folder to your project.
var viewModel = SectionContentsViewModel()
init() {
setupViewModel()
}
private func setupViewModel() {
let gPayContents = [
SwipeViewContent(appImageName: "googlePay", title: "Payment Received", subtitle: "Alex, You have received $10M in your account!", createdDate: Date()),
SwipeViewContent(appImageName: "googlePay", title: "Payment Received", subtitle: "Alex, You have received $5M in your account!", createdDate: Date())]
let teamsContents = [
SwipeViewContent(appImageName: "teams", title: "Gotham Steve", subtitle: "Hey, Alex", createdDate: Date()),
SwipeViewContent(appImageName: "teams", title: "Gotham Steve", subtitle: "What is the progress?", createdDate: Date()),
SwipeViewContent(appImageName: "teams", title: "Gotham Steve", subtitle: "Are you on timeline?", createdDate: Date())]
viewModel.addSection(title: "Google Pay", isExpanded: true, swipeViewContents: gPayContents)
viewModel.addSection(title: "Teams", isExpanded: true, swipeViewContents: teamsContents)
}
var body: some View {
SSExpandableSwipeUpView(viewModel: viewModel, backgroundWallpaper: Image("wallpaper"), onOptions: { banner in
/// swipe view banner content options click event
})
}
You can customize fonts of banner Header, title and body also you can add image name ("appImageName") as per your data.
SwipeViewContent(appImageName: "googlePay", title: "Payment Received", titleFontStyle: (font: "YOUR_FONT_NAME", size: 20, color: .blue),
subtitle: "Alex, You have received $10M in your account!", subtitleFontStyle: (font: "YOUR_FONT_NAME", size: 18, color: .yellow), createdDate: Date())
Section title customization
viewModel.addSection(title: "Google Pay", titleFontStyle: (font: "YOUR_FONT_NAME", size: 40, color: .red),
isExpanded: true, swipeViewContents: gPayContents)
Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! 💪
Check out our Contributing Guide for ideas on contributing.
Give a ⭐️ if this project helped you!
This project is licensed under the MIT License - see the LICENSE file for details