Skip to content

Commit 4c0e824

Browse files
CalebRasdfeinzimer
andauthored
Apply suggestions from code review.
Co-authored-by: David Feinzimer <[email protected]>
1 parent 4987528 commit 4c0e824

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Shared/Samples/Augment reality to show hidden infrastructure/AugmentRealityToShowHiddenInfrastructureView.ARSceneView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extension AugmentRealityToShowHiddenInfrastructureView {
5151
}
5252
}
5353

54-
/// The menu with the settings.
54+
/// The settings menu.
5555
private var settingsMenu: some View {
5656
Menu("Settings") {
5757
Toggle("Shadows", isOn: $shadowsAreVisible)

Shared/Samples/Augment reality to show hidden infrastructure/AugmentRealityToShowHiddenInfrastructureView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct AugmentRealityToShowHiddenInfrastructureView: View {
5858

5959
if elevationOffset < 0 {
6060
statusMessage = "Pipe added \(elevationOffset.formatted()) meter(s) below surface."
61-
} else if elevationOffset == 0 {
61+
} else if elevationOffset.isZero {
6262
statusMessage = "Pipe added at ground level."
6363
} else {
6464
statusMessage = "Pipe added \(elevationOffset.formatted()) meter(s) above surface."
@@ -214,7 +214,7 @@ private extension AugmentRealityToShowHiddenInfrastructureView {
214214
func body(content: Content) -> some View {
215215
content
216216
.alert("Enter an Elevation", isPresented: $isPresented) {
217-
TextField("3", text: $text)
217+
TextField("Enter elevation", text: $text)
218218
.keyboardType(.numbersAndPunctuation)
219219

220220
Button("Cancel", role: .cancel, action: {})

0 commit comments

Comments
 (0)