We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello i'm first use Third-party libraries i have a error
// // ViewController.swift
import UIKit import NotchToolkit class ViewController: UIViewController,NotchToolbarDelegate { let toolbar = NotchToolbar () func deviceDidRotate() { toolbar.autoResize() }
func didTapToolIcon(_ tools: UICollectionView, toolIndex: IndexPath, section: Int, row: Int) { if row == 0 { print("first icon") }else if row == 1 { print("second icon") } } override func viewDidLoad() { super.viewDidLoad() toolbar.notch.isVisible = true toolbar.notch.height = 250 toolbar.toolList = [ //[icon image, title] [UIImage(named:"pikachusquare")!, "Pikachu"], //only image icons UIImage(named:"spongebob")!, //only string icons (mainly for emojis 😉) "🤔", "🤓", "📱", "👩💻", "👨💻", "✅", "🔥"] toolbar.delegate = self toolbar.initializeToolbar(self) // Do any additional setup after loading the view, typically from a nib. } @IBAction func Click(_ sender: UIButton) { if toolbar.notch.isVisible { sender.setTitle("Show Notch Toolbar", for: .normal) }else{ sender.setTitle("Hide Notch Toolbar", for: .normal) } toolbar.showOrHide() }
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello i'm first use Third-party libraries
i have a error
//
// ViewController.swift
import UIKit
import NotchToolkit
class ViewController: UIViewController,NotchToolbarDelegate {
let toolbar = NotchToolbar ()
func deviceDidRotate() {
toolbar.autoResize()
}
}
The text was updated successfully, but these errors were encountered: