📕 iOS/100 Days of Swift 5

[Day 3] operators and conditions

Joseph Campbell once said, “computers are like Old Testament gods: lots of rules and no mercy.” 1.  Arithmetic Operators 산술 연산자 +, -, *, /, %(나머지). Swift는 #의 배수인지 아닌지 더 쉽게 접근할 수 있다. let number = 465 let isMultiple = number.isMultiple(of: 7) 2. Operator overloading Swift는 다른 타입에 대해서도 + 연산을 제공한다. let fakers = "Fakers gonna " let action = fakers + "fake" let firstHalf = ["John", "Paul"] let secon..

[Day 2] arrays, dictionaries, sets, and enums

Lynch’s Law says “when the going gets tough, everyone leaves.” 1.  Arrays let john = "John Lennon" let paul = "Paul McCartney" let george = "George Harrison" let ringo = "Ringo Starr" let beatles = [john, paul, george, ringo] 2. Sets Set은 순서가 없고, 중복된 값을 갖지 않는다. 만약 중복된 값을 또 넣는다면, 하나만 남게 된다. let colors = Set(["red", "green", "blue"]) let arrayOfCategories: [String] = ["Swift", "Debugging"] let se..

[Day 1] variables, simple data types, and string interpolation

As Mark Twain once said, “the secret to getting ahead is getting started.” 1. Variables Variables are places where you can store program data. They are called variables because they can vary – you can change their values freely. 변수는 data를 저장할 수 있는 곳이다. variables라고 부르는 이유는 vary 할 수 있기 때문! 2. Strings and integers Swift is what’s known as a type-safe language, which means that every variable must b..

[Day 0] 100 Days of Swift 시작하기

최근, UIKit과 Storyboard 공부를 시작했다! 공부 인증 + 내용 정리를 위해서 매일 글을 하나씩 올릴 예정이다! 왜 100 Days of Swift 인가? 이전에 SwiftUI를 공부하면서 100 Days of SwiftUI를 들었는데, 너무 너무 좋은 커리큘럼과 자료! 그리고 예제, 프로젝트가 좋았다!! 그런데 무료라는 점! (사실 다 듣진 못했지만, 꼭 다 들어볼 것이다!) 아무튼 파이팅! The 100 Days of Swift Follow the 100 Days of Swift and learn to build apps for free. www.hackingwithswift.com