Coder Social home page Coder Social logo

kimhyeri / weatherapp Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 5.0 5.59 MB

Copy APPLE weather app

License: MIT License

Swift 100.00%
project apple appleweatherapp weatherapp apple-weather-app apple-app apple-weather-application ios-weather ios-weather-app ios-apple-weather

weatherapp's Issues

Refactoring

ToDoList

Follow code convention
Extract same feature function
Remove unused code ๐Ÿคฆโ€โ™€๏ธ
Clarify functions

Save selected city

UserDefault ํ™œ์šฉ

  • Coordinate๊ตฌ์กฐ์ฒด ํ˜•์‹์œผ๋กœ ์ €์žฅ
  • ํ˜„์žฌ ์œ„์น˜๋Š” ์ €์žฅํ•˜์ง€ ์•Š์œผ๋ฉฐ, ๊ฒ€์ƒ‰์œผ๋กœ ์ฐพ์€ city๋“ค๋งŒ ์ €์žฅํ•จ.
  • ํ˜„์žฌ ์œ„์น˜๋Š” ํ•ญ์ƒ index 0 ์— ์ €์žฅํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ €์žฅํ•  Coordinate๋Š” index 0์„ ์ œ๊ฑฐํ•œ ๋‚˜๋จธ์ง€๋ฅผ ์ €์žฅํ•˜๋Š” ํ˜•ํƒœ๋กœ ์ง„ํ–‰ํ•จ.
if myCities.count > 1 {
               let exceptData = myCities.remove(at: 0)
               UserDefaults.standard.set(try? PropertyListEncoder().encode(exceptData), forKey:"cities")
}

Multiple cell types in UITableView

  • Time ์‹œ๊ฐ„๋ณ„
  • Day ์š”์ผ๋ณ„
  • Summary ๋‚ ์”จ ์š”์•ฝ
  • Detail ๋‚ ์”จ ์„ธ๋ถ€์ •๋ณด

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.