From 0080a85965b63db038dc50eaf875d6bf9301d940 Mon Sep 17 00:00:00 2001 From: taek0622 Date: Fri, 2 Jun 2023 04:27:18 +0900 Subject: [PATCH] Style:art:: #32 Modify isEdit variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - List를 표시하기 위해 현재 검색어를 작성 중인지 판단하는 isEdit 변수의 이름을 isEditing으로 변경 --- Nav/View/MapView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nav/View/MapView.swift b/Nav/View/MapView.swift index 20d7fb9..fef6bde 100644 --- a/Nav/View/MapView.swift +++ b/Nav/View/MapView.swift @@ -10,7 +10,7 @@ struct MapView: View { private var mockDatas: [MockDatum] = MockDatum.allData @State var searchQueryString = "" - @State var isEdit = false + @State var isEditing = false // 서울 좌표 @State private var region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 37.5666791, longitude: 126.9782914), span: MKCoordinateSpan(latitudeDelta: 0.5, longitudeDelta: 0.5)) @@ -27,7 +27,7 @@ struct MapView: View { data in MapMarker(coordinate: data.coordinate) } - if isEdit { + if isEditing { List { Text(searchQueryString) } @@ -40,7 +40,7 @@ struct MapView: View { prompt: "검색" ) .onChange(of: searchQueryString) { newValue in - isEdit = (newValue != "" ? true : false) + isEditing = (newValue != "" ? true : false) } } }