PKCSlice icon indicating copy to clipboard operation
PKCSlice copied to clipboard

Use of undeclared type 'PKCSliceDelegate'

Open onusgit opened this issue 6 years ago • 0 comments

Swift 4.2 Xcode 10.0

import UIKit
import PKCSlice
class ViewController: UIViewController , PKCSliceDelegate{
    
    @IBOutlet var myview: UIView!
    @IBOutlet var mySliceView: UIView!
    override func viewDidLoad() {
        super.viewDidLoad()
    
        var views = [UIView]()
        views.append(myview)
        let view1 = UIView()
        views.append(view1)
        
        let sliceView = PKCSlice(self.mySliceView, views: views, inclination: -50)
        sliceView.delegate = self
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func pkcSliceTouch(_ index: Int) {
        print(index)
    }
}

screen shot 2018-11-23 at 5 49 57 pm

onusgit avatar Nov 23 '18 12:11 onusgit