Swiftpack.co -  Jovins/Bursts as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Jovins/Bursts
A Funny Framework is showing alerts, Have been Adapting Swift and SwiftUI
.package(url: "https://github.com/Jovins/Bursts.git", from: "1.0.1")

Bursts 🔥

A Funny Framework is showing alerts, Have been Adapting Swift and SwiftUI


CI CI CICI

Features

  • iOS 10+
  • Can be used in UIKit and SwiftUI applications
  • Light/Dark modes
  • Interactive dismissal
  • Queue to show consecutive bursts
  • Support dynamic font sizing
  • Support announcing title and subtitle via VoiceOver
  • Show from top or bottom of screen

Installation

  • CocoaPods
use_frameworks!
platform :ios, '10.0'
pop 'Bursts'

Usage

  • Create a Bursts Example
// 1.title
let burst: Burst = "Title Only"
// 2.title Only
let burst = Burst(title: "Title Only")
// 3.set title and subtitle
let burst = burst(title: "Title", subtitle: "Subtitle")
// 4.set title、subtitle and animator duration
let burst = burst(title: "Title", subtitle: "Subtitle", duration: 5.0)
// 外观设置
var setting = BurstSetting()
setting.isDefault = false
setting.backgroundColor = UIColor(hex: 0x66ccff)
setting.shadowColor = .orange
setting.titleColor = .white
setting.subtitleColor = UIColor(hex: 0xEFEFEF)
//  init Bursts
let burst = Burst(
    title: "Title",
    subtitle: "Subtitle",
    icon: UIImage(systemName: "star.fill"),
    action: .init {
        print("Burst tapped")
        Bursts.hide()
    },
    position: .top,
    duration: 2.0,
    setting: setting
)

// Show Bursts
Bursts.show("Title")
Bursts.show(burst)

Example Projects

  • Run the SwiftUIExample target to see how Bursts works in SwiftUI applications.
  • Run the UIKitExample target to see how Bursts works in UIKit applications.

Author

jovinscoder@gmail.com

License

  • Bursts is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 12
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API