Skip to content

Commit

Permalink
update to 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderingfairy committed Aug 20, 2021
1 parent f42968f commit 80db9c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BottomSheetDialog.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'BottomSheetDialog'
s.version = '0.1.2'
s.version = '0.1.3'
s.summary = 'Bottom sheet dialog for iOS.'
s.swift_version = '5.0'
# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion Example/BottomSheetDialog/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
Expand Down
11 changes: 9 additions & 2 deletions Example/BottomSheetDialog/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ class ViewController: UIViewController, BottomDialogDelegate {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let button = UIButton(frame: CGRect(x: 100, y: 100, width: 40, height: 40))
button.backgroundColor = .blue
view.addSubview(button)
button.addTarget(self, action: #selector(didTapButton), for: .touchUpInside)
}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
@objc func didTapButton() {
let sheet = BottomDialogView(titles: ["delete",
"cancel"],
images: [UIImage(named: "trash")!
Expand All @@ -47,6 +50,10 @@ class ViewController: UIViewController, BottomDialogDelegate {
sheet.show()
}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
Expand Down

0 comments on commit 80db9c4

Please sign in to comment.