SSExpandableSwipeUpView 1.0.0

SSExpandableSwipeUpView 1.0.0

Simform Solutions 维护。



  • Purva Rupareliya

SSExpandableSwipeUpView

SSExpandableSwipeUpView 是一个面向 iOS 开发者的库,用 Swift 编写。它类似于iPhone通知栏,也称为通知中心,是一个旨在为用户提供快速和有序的来通知、消息和更新的集中式枢纽。通过从屏幕顶部向下滑动即可访问通知栏,它显示了来自各种应用程序和系统事件的按时间顺序排列的通知列表。该库提供了各种可定制的选项。SSExpandableSwipeUpView易于集成到现有项目中,并提供出色的性能,是任何致力于创造流畅且个性化用户体验的iOS开发人员的必备工具。

功能!

  • 类似于通知控制中心的堆叠视图
  • 清除所有内容和移除选项
  • 展开和折叠视图
  • 完全可定制
  • CocoaPods

需求

  • iOS 16
  • Xcode 14

安装

CocoaPods

  • 您可以通过将其添加到Podfile中来使用CocoaPods安装SSExpandableSwipeUpView

     use_frameworks!
     pod 'SSExpandableSwipeUpView'
    
  •  import UIKit
     import SSExpandableSwipeUpView
    

Swift包管理器

  • 当使用Xcode 11或更高版本时,您可以前往项目的设置 > Swift Packages,通过提供GitHub URL来添加仓库。或者,您也可以转到文件 > Swift Packages > 添加包依赖...

  • import SSExpandableSwipeUpView

手动

  • 将/Sources文件夹中的SSExpandableSwipeView文件夹添加到您的项目中。

使用方法


    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"))
    }

🤝如何贡献

无论您是在帮助我们修复错误、改进文档还是提出功能请求,我们都非常愿意接纳您的贡献!💪

请查阅我们的贡献指南,了解如何贡献的想法。

本示例对您有用吗? ❤️

如果这个项目对您有帮助,请给一个⭐️!

查看我们的其他库

🗂 Simform Solutions Libraries→

MIT许可证

该项目受MIT许可证的许可 - 有关详细信息,请参阅LICENSE文件。