Giter Club home page Giter Club logo

mydeliciousmap's Introduction

MyDeliciousMap


📖 목차

🍀 소개
💻 실행 화면
🛠️ 사용 기술
🧨 트러블 슈팅
📚 참고 링크


🍀 소개 - Yummy Map

: 내가 가본 맛집만 골라골라!! 모임별로, 종류별로!


💻 실행 화면

메인 화면 - 지도 뷰 마커 터치
리스트 모드 항목 선택 시
맛집 추가

🛠️ 사용 기술

구현 내용 도구
UI SwiftUI
아키텍쳐 클린 아키텍쳐
디자인패턴 MVVM
Map Naver Map

🧨 트러블 슈팅

1️⃣ SwiftUI로 NaverMap 구현

🚨 문제점
네이버 지도는 SwiftUI를 지원하지 않는다.

💡 해결방법
UIViewRepresentable 구현

struct MapView: UIViewRepresentable {
    @ObservedObject var viewModel: YummyMainViewModel
    
    func makeCoordinator() -> Coordinator {
        Coordinator.shared
    }
    
    func makeUIView(context: Context) -> NMFNaverMapView { ... }
    
    func updateUIView(_ uiView: NMFNaverMapView, context: Context) { }
}

2️⃣ 주소지에 따른 지도의 위도, 경도

🚨 문제점
우리는 주소지를 입력하지만 맵뷰에는 마커로 표시되어야 하고 그러려면 위도와 경도가 필요하다.

💡 해결방법
네이버가 제공하는 Geocoder 사용. URL로 Geocoder를 이용하여 네트워킹으로 위도 경도 받아오기



📚 참고 링크


mydeliciousmap's People

Contributors

whalesjin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.