This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExpandoTableViewCell.swift | |
// TestExpandoCells | |
// | |
import UIKit | |
protocol ExpandoTableViewCellDelegate: class { | |
func expandoTableViewCellDidTapCell(_ cell: ExpandoTableViewCell) | |
func expandoTableViewCell(_ cell: ExpandoTableViewCell, didChangeNotes notes: String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController, UIPopoverPresentationControllerDelegate { | |
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
super.prepare(for: segue, sender: sender) | |
segue.destination.popoverPresentationController?.delegate = self | |
} | |
// MARK: - UIPopoverPresentationControllerDelegate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class CircleFillView: UIView { | |
required init?(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) | |
commonInit() | |
} | |