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
error in WKTabBarController.swift
WKTabBarController.swift
NotificationCenter.default.addObserver( self, selector: #selector(didChangeOrientation(_:)), name: NSNotification.Name.UIApplicationDidChangeStatusBarOrientation, object: nil) if let vc = tabBarController(self, viewControllerAtIndex: 0) { changeViewController(vc) } error: selector: #selector(didChangeOrientation(_:)),
NotificationCenter.default.addObserver( self, selector: #selector(didChangeOrientation(_:)), name: NSNotification.Name.UIApplicationDidChangeStatusBarOrientation, object: nil) if let vc = tabBarController(self, viewControllerAtIndex: 0) { changeViewController(vc) }
selector: #selector(didChangeOrientation(_:)),
and
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let proportion = tabBarItems[indexPath.row].proportion let sum = tabBarItems.reduce(0.0) { $0.0 + $0.1.proportion } return CGSize(width: collectionView.bounds.width * CGFloat(proportion / sum), height: collectionView.bounds.height) }
error : let sum = tabBarItems.reduce(0.0) { $0.0 + $0.1.proportion }
let sum = tabBarItems.reduce(0.0) { $0.0 + $0.1.proportion }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
error in
WKTabBarController.swift
Argument of '#selector' refers to instance method 'didChangeOrientation' that is not exposed to Objective-C
NotificationCenter.default.addObserver( self, selector: #selector(didChangeOrientation(_:)), name: NSNotification.Name.UIApplicationDidChangeStatusBarOrientation, object: nil) if let vc = tabBarController(self, viewControllerAtIndex: 0) { changeViewController(vc) }
error:
selector: #selector(didChangeOrientation(_:)),
and
Contextual closure type '(_, WKTabBarItem) -> _' expects 2 arguments, but 1 was used in closure body
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let proportion = tabBarItems[indexPath.row].proportion let sum = tabBarItems.reduce(0.0) { $0.0 + $0.1.proportion } return CGSize(width: collectionView.bounds.width * CGFloat(proportion / sum), height: collectionView.bounds.height) }
error :
let sum = tabBarItems.reduce(0.0) { $0.0 + $0.1.proportion }
The text was updated successfully, but these errors were encountered: