Skip to content

Commit

Permalink
Added new readme icon
Browse files Browse the repository at this point in the history
  • Loading branch information
laminesm committed Sep 21, 2022
1 parent bab0aa6 commit c73665f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions ios/FluentUI.Demo/FluentUI.Demo/DemoTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,16 @@ class DemoTableViewController: UITableViewController {
// MARK: - Demo Appearance Popover

func configureAppearancePopover() {
let settingsButton = UIBarButtonItem(image: UIImage(named: "ic_fluent_settings_24_regular"),
style: .plain,
target: self,
action: #selector(showAppearancePopover))
let readmeButton = UIBarButtonItem(image: UIImage(named: "agenda-24x24"),
style: .plain,
target: self,
action: #selector(showReadmePopover))
// Display the DemoAppearancePopover button
navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage(named: "ic_fluent_settings_24_regular"),
style: .plain,
target: self,
action: #selector(showAppearancePopover))
navigationItem.rightBarButtonItems = [readmeButton, settingsButton]
}

@objc func showAppearancePopover(_ sender: UIBarButtonItem) {
Expand All @@ -62,6 +67,10 @@ class DemoTableViewController: UITableViewController {
self.present(appearanceController, animated: true, completion: nil)
}

@objc func showReadmePopover(_ sender: UIBarButtonItem) {

}

private lazy var appearanceController: DemoAppearanceController = .init(delegate: self as? DemoAppearanceDelegate)
}

Expand Down

0 comments on commit c73665f

Please sign in to comment.