📕 iOS 11

[SwiftUI] storyboard로 Launch Screen 구현

[SwiftUI] Info.plist로 Launch Screen 구현Launch Screen Launch Screen은 앱이 시작되기 전 보이는 짧은 화면으로 Android에서는 Splash라고 부르고, iOS에서는 Launch Screen이라고 부른다. UIKit 에서는 LaunchScreen storyboard로 비교적 쉽게 구현할 수 있다.mohagunolziii.tistory.com1년 넘는 시간 전에 썼던 이 글이 내 블로그 방문 경로의 25% 정도를 차지한다.꽤나 많은 사람들이 찾아주고 있고, 최근에는 아카데미 러너들이 이 글을 잘 봤다면서 이야기를 해주었는데.. 사실 나는 더 이상 이 방법을 사용하지 않아서 머쓱해했다. 😅 너무 방치해 둔 블로그 같아서 민망하면서도, 새로 내가 사용하는 방..

📕 iOS/SwiftUI 2024.06.23

[소소한 UIKit] UILabel에서 여러 줄 입력하기

너무 오랜만에 UIKit을 공부하다가, UILabel에서 여러 줄의 텍스트를 입력해야하는데 아무리 \n, 엔터, cmd 엔터를 해도 줄바꿈이 되지 않았다.. 뭐였지 뭐였지 하다가 찾은 방법 ctrl + enter !! 그리고 Lines를 내 상황에 맞게 입력해준다! 만약 text가 계속 길어지고 화면에 따라 lines가 바뀐다면 0으로 입력하면 된다. 이상 처음으로 써보는 소소한 UIKit(간단한 내용이라는 뜻)이었다! ㅎㅎ

📕 iOS/UIKit 2023.11.06

[SwiftUI] custom view modifier 만들기

Text나 Image 등에 같은 modifier를 계속 반복해서 쓰다보면, 아 이거 그냥 한번에 쓸 수 없나? 이런 생각을 하게 되는데!! Apple SwiftUI 문서에 이미 친절하게 알려주고 있었다! 푸하하 이걸 이제 봤다니!! ViewModifier | Apple Developer Documentation A modifier that you apply to a view or another view modifier, producing a different version of the original value. developer.apple.com 먼저 ViewModifier가 뭘까? 너무도 당연히 .(dot) 과 함께 사용하고 있는 이 modifier는 view을 원래의 값과 다르게 만들고 싶을 때 v..

📕 iOS/SwiftUI 2023.08.31

[iOS App Dev Tutorials - UIKit] Ch.1 UIKit essentials

UIKit 프로젝트를 시작했는데, 여전히 익숙하지 않은 것 같아서 애플의 튜토리얼을 해보려고 한다! 저번 프로젝트에서 느낀건데, 나중에 기록해야지! 하면 안하게 된다.. 바로바로 하면서 기록해야지! Chapter 1. UIKit essentials Develop apps for iOS | Apple Developer Documentation Learn the basics of Xcode, SwiftUI, and UIKit to create compelling iOS apps. developer.apple.com Getting started with Today UIKit overview UIKit은 Apple 플랫폼의 앱을 만들기 위한 graphical framework이다. Extensive API co..

📕 iOS/UIKit 2023.07.05

[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..

[SwiftUI] Info.plist로 Launch Screen 구현

1년 전에 썼던 이 글을 최근 주변 분들이 잘 봤다면서 이야기해 주셔서 감사했다.하지만 나는 이제 다른 방법으로 Launch Screen을 구현하고 있어서..머쓱해하면서 이야기했는데, 그 방법을 다시 글로 남겨보았다!storyboard로 구현하는 방법이고 아래 링크를 남겨두겠다.그러나 각자 편한 방법 대로 구현하면 될 것 같다! [SwiftUI] storyboard로 Launch Screen 구현[SwiftUI] Info.plist로 Launch Screen 구현Launch Screen Launch Screen은 앱이 시작되기 전 보이는 짧은 화면으로 Android에서는 Splash라고 부르고, iOS에서는 Launch Screen이라고 부른다. UIKit 에서는 LaunchScreen storyboar..

📕 iOS/SwiftUI 2023.05.04

[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