Skip to content

Commit

Permalink
Give Siri and Event Log their own sections
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Sep 20, 2018
1 parent 4bc6e75 commit 7fe442f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions HomeAssistant/Views/SettingsViewController.swift
Expand Up @@ -430,7 +430,8 @@ class SettingsViewController: FormViewController, CLLocationManagerDelegate, SFS
})
}

<<< ButtonRow("eventLog") {

+++ ButtonRow("eventLog") {
$0.title = L10n.Settings.EventLog.title
let controllerProvider = ControllerProvider.storyBoard(storyboardId: "clientEventsList",
storyboardName: "ClientEvents",
Expand All @@ -440,9 +441,9 @@ class SettingsViewController: FormViewController, CLLocationManagerDelegate, SFS
})
}

if #available(iOS 12.0, *), let lastSection = self.form.last {
lastSection
<<< ButtonRow("siriShortcuts") {
if #available(iOS 12.0, *) {
self.form +++ ButtonRow() {
$0.tag = "siriShortcuts"
$0.title = L10n.Settings.DetailsSection.SiriShortcutsRow.title
$0.presentationMode = .show(controllerProvider: ControllerProvider.callback {
let view = SettingsDetailViewController()
Expand Down

0 comments on commit 7fe442f

Please sign in to comment.