728x90
๋ฐ˜์‘ํ˜•

์ „์ฒด 222

[git] Merge and Pull Request (feat. PR ๋‚ ๋ ค์ฃผ์„ธ์š”~)

reference : https://wayhome25.github.io/git/2017/07/08/git-first-pull-request-story/ git ์ดˆ๋ณด๋ฅผ ์œ„ํ•œ ํ’€๋ฆฌํ€˜์ŠคํŠธ(pull request) ๋ฐฉ๋ฒ• · ์ดˆ๋ณด๋ชฝํ‚ค์˜ ๊ฐœ๋ฐœ๊ณต๋ถ€๋กœ๊ทธ ๊ฐœ๋ฐœ์„ ํ•˜๋‹ค ๋ณด๋ฉด ์ฝ”๋“œ๋ฅผ ์—ฌ๋Ÿฌ ๊ฐœ๋กœ ๋ณต์‚ฌํ•ด์•ผ ํ•˜๋Š” ์ผ์ด ์ž์ฃผ ์ƒ๊ธด๋‹ค. ์ฝ”๋“œ๋ฅผ ํ†ต์งธ๋กœ ๋ณต์‚ฌํ•˜๊ณ  ๋‚˜์„œ ์›๋ž˜ ์ฝ”๋“œ์™€๋Š” ์ƒ๊ด€์—†์ด ๋…๋ฆฝ์ ์œผ๋กœ ๊ฐœ๋ฐœ์„ ์ง„ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ, ์ด๋ ‡๊ฒŒ ๋…๋ฆฝ์ ์œผ๋กœ ๊ฐœ๋ฐœํ•˜๋Š” wayhome25.github.io

Computer Science 2021.07.31

[swift] swiftui Button (+onTapGesture)

reference : https://seons-dev.tistory.com/24 SwiftUI : Button / onTapGesture ๋ชฉ์ฐจ SwiftUI 3.0 ๋ฒ„์ „์˜ Button ๊ธฐ๋Šฅ์ด ๋‹ค์ˆ˜ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ถ”ํ›„ ์—…๋ฐ์ดํŠธ ์˜ˆ์ •์ž…๋‹ˆ๋‹ค. ํŠธ๋ฆฌ๊ฑฐ(Trigger) ๋  ๋•Œ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š” ์ปจํŠธ๋กค์ž…๋‹ˆ๋‹ค. Button ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•ฉ์‹œ๋‹ค. Button ๊ธฐ๋ณธ ์ฝ”๋“œ //์ฒซ seons-dev.tistory.com https://www.hohyeonmoon.com/blog/swiftui-tutorial-buttons/ SwiftUI ์—ฌ๋Ÿฌ ์ข…๋ฅ˜์˜ Buttons | Hohyeon Moon ์ด๋ฒˆ์—๋Š” SwiftUI์—์„œ ์—ฌ๋Ÿฌ ์ข…๋ฅ˜์˜ Buttons๋ฅผ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋Š”์ง€์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ด ๊ฐ•์ขŒ๋Š” Swift ๊ธฐ๋ณธ ๋ฌธ๋ฒ•..

[swift] NavigationView with NavigationLink

reference : https://fwani.tistory.com/16 [SwiftUI] NavigationView ์™€ NavigationLink ์‚ฌ์šฉ๋ฒ• NavigationView ์™€ NavigationLink ์‚ฌ์šฉ๋ฒ• ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ• NavigationView ๋กœ ํ‘œ๊ธฐํ•  ๋‚ด์šฉ์„ ๊ฐ์‹ผ๋‹ค NavigationLink ๋กœ ์ƒˆ๋กœ์šด view ๋ฅผ ํ‘œ์‹œ ํ•  ์ˆ˜ ์žˆ๋‹ค struct TestView: View { var body: some View { NavigationVi.. fwani.tistory.com https://ichi.pro/ko/swiftuiui-navigationlinke-daehae-al-aya-hal-3-gaji-jung-yohan-sahang-13955916962389 SwiftUI์˜ Navigatio..

[swift] launch screen, entry point, lifecycle, splash screen, sceneDelegate ๊ด€๋ จ ๊ธ€

reference : https://velog.io/@altmshfkgudtjr/SwiftUI-ScenePhase Swift ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์—์„œ Life Cycle ์„ ํƒํ•˜๊ธฐ Xcode์—์„œ iOS ๊ฐœ๋ฐœ ํ”„๋กœ์ ํŠธ๋ฅผ ์‹ค์‹œํ•˜๊ฒŒ ๋œ๋‹ค๋ฉด, `Life Cycle` ์„ ์„ ํƒํ•˜๋Š” ํ•„๋“œ๊ฐ€ ์žˆ๋‹ค. ์„ ํƒํ•  ์ˆ˜ ์žˆ๋Š” ์„ ํƒ์ง€๋Š” `SwiftUI App` ๊ณผ `UIKit App Delegate` ๊ฐ€ ์กด์žฌํ•œ๋‹ค. ์–ด๋–ค ๊ฒƒ์„ ์„ ํƒํ•ด์•ผํ• ๊นŒ? velog.io https://www.youtube.com/watch?v=WzqwTjaaefk https://medium.com/swlh/bye-bye-appdelegate-swiftui-app-life-cycle-58dde4a42d0f Bye Bye AppDelegate! SwiftUI App Life..

[swift] hidekeyboard, keyboard ์žํŒ ์ˆจ๊ธฐ๊ธฐ

reference : https://velog.io/@grap_ios/iOS-47-View-Controller-Navigation-Controller iOS (47) View Controller: Navigation Controller ๋ณธ ํฌ์ŠคํŠธ๋Š” ์ž‘์„ฑ์ž๊ฐ€ kxcoding์˜ ios ๊ฐ•์˜๋ฅผ ๋“ฃ๊ณ  ์ •๋ฆฌํ•œ ๋ฐ”๋ฅผ ๋‚จ๊ธฐ๋Š” ์šฉ๋„์ž„largeTitle Mode & largeTitleDisplayMode (.automatic, .always, .never) velog.io

[swift] Navigation Controller - ViewController

reference : https://velog.io/@grap_ios/iOS-47-View-Controller-Navigation-Controller iOS (47) View Controller: Navigation Controller ๋ณธ ํฌ์ŠคํŠธ๋Š” ์ž‘์„ฑ์ž๊ฐ€ kxcoding์˜ ios ๊ฐ•์˜๋ฅผ ๋“ฃ๊ณ  ์ •๋ฆฌํ•œ ๋ฐ”๋ฅผ ๋‚จ๊ธฐ๋Š” ์šฉ๋„์ž„largeTitle Mode & largeTitleDisplayMode (.automatic, .always, .never) velog.io

[swift] set initial view with ViewController

reference : https://stackoverflow.com/questions/60385867/how-to-set-initial-view-controller-for-swiftui How to set initial view controller for swiftUI I normally use storyboard to set a view controller as initial view controller by clicking in the attribute inspector. How can I set initial view controller in swift UI? System info: Swift 5, Xcod... stackoverflow.com

[swift] List์—์„œ Binding์ „๋‹ฌํ•˜๊ธฐ

reference: https://socialinnovator.tistory.com/1?category=829688 [SwiftUI] List์—์„œ @Binding ์ „๋‹ฌํ•˜๊ธฐ ์ „์ฒด ์†Œ์Šค์ฝ”๋“œ ์ด์ „์—๋Š” ์•„๋ž˜์˜ค ๊ฐ™์ด ๋ฐฐ์—ด๊ณผ id๋ฅผ ์ฃผ๊ณ  foreach ์ฒ˜๋Ÿผ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋งŒ๋“ค์—ˆ๋‹ค. var body: some View { NavigationView { List(todos){ todo in NavigationLink(destination: DetailView(todo: $todo)){.. socialinnovator.tistory.com

[swift] ๋ฌธ์ž์—ด๊ณผ NsRange, String.Index

reference : https://soooprmx.com/swift-swift์˜-๋ฌธ์ž์—ด๊ณผ-nsrange/ Swift์˜ ๋ฌธ์ž์—ด๊ณผ NSRange๋ฅผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜๊ธฐ · Wireframe Swift์˜ ๋ฌธ์ž์—ด ํƒ€์ž…์€ NSRange ํƒ€์ž…๊ณผ ํ˜ธํ™˜๋˜์ง€ ์•Š์ง€๋งŒ, ๊ธฐ์กด์˜ ์ฝ”์ฝ”์•„ ํ”„๋ ˆ์ž„์›Œํฌ ๋‚ด์˜ ๋ฌธ์ž์—ด ๊ด€๋ จ ์ฒ˜๋ฆฌ API๋“ค์€ NSRange๋ฅผ ๋งŽ์ด ์‚ฌ์šฉํ•œ๋‹ค. Swift ๋ฌธ์ž์—ด์„ ์ด๋Ÿฌํ•œ API๋“ค๊ณผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๋งค์šฐ ์ฝ”๋“œ๋ฅผ soooprmx.com http://seorenn.blogspot.com/2018/05/swift-string-index.html ๋ฌธ์ž์—ด์„ ๋ฌธ์ž ๋‹จ์œ„๋กœ ๋‹ค๋ฃจ๊ธฐ | Swift iOS ๋ฐ macOS ์šฉ ์•ฑ ๊ฐœ๋ฐœ, Emacs, Vim, Python ์œ„์ฃผ๋กœ ๋‹ค๋ฃจ๋Š” Seorenn ๊ฐœ์ธ ๋ธ”๋กœ๊ทธ seorenn.blogsp..

[swift] ์ •๊ทœํ‘œํ˜„์‹ ์‚ฌ์šฉํ•˜๊ธฐ

reference : https://stackoverflow.com/questions/27880650/swift-extract-regex-matches Swift extract regex matches I want to extract substrings from a string that match a regex pattern. So I'm looking for something like this: func matchesForRegexInText(regex: String!, text: String!) -> [String] { ??? }... stackoverflow.com https://newbedev.com/remove-all-non-numeric-characters-from-a-string-in-swi..

[swift] ์ธ์ฆ์ฝ”๋“œ ์ž…๋ ฅ ๋ทฐ - ์ž๋™์œผ๋กœ textfield ๋„˜์–ด๊ฐ€๊ธฐ

reference : https://www.hackingwithswift.com/forums/100-days-of-swiftui/jump-focus-between-a-series-of-textfields-pin-code-style-entry-widget/765 SOLVED: Jump focus between a series of TextFields (pin code style entry widget) – 100 Days of SwiftUI – Hacking with Swift Link copied to your pasteboard. www.hackingwithswift.com https://medium.com/flawless-app-stories/swiftui-passcode-field-for-otp-a..

[swift] loading view ๊ฐœ๋ฐœ - activity indicator

reference : https://stackoverflow.com/questions/56496638/activity-indicator-in-swiftui Activity indicator in SwiftUI Trying to add a full screen activity indicator in SwiftUI. I can use .overlay(overlay: ) function in View Protocol. With this, I can make any view overlay, but I can't find the iOS default style stackoverflow.com https://morioh.com/p/a59734fa4f8c Explore the New Features in SwiftU..

[swift] texfield์— ๊ธธ์ด์ œํ•œ๋‘๊ธฐ

swiftUI textfield์— ๊ธธ์ด ์ œํ•œ๋‘ฌ์„œ ์ž…๋ ฅ๋ฐฉ์ง€ textfield์— ๊ธธ์ด๋ฅผ ์ œํ•œ๋‘ฌ์„œ ์ผ์ • ๊ธธ์ด๋ฅผ ๋„˜์–ด์„œ๋ฉด ๋”์ด์ƒ ์ž…๋ ฅ์ด ์•ˆ๋˜๊ฒŒ๋” ํ•˜๋Š” ๊ฒƒ์ด ๋ชฉํ‘œ..! (์™ผ์ชฝ์ด ์šฐ๋ฆฌ๊ฐ€ ํ•˜๊ณ ์ž ํ•˜๋Š” ๊ฒƒ) ๋จผ์ €, TextLimiter ํด๋ž˜์Šค๋ฅผ ๋งŒ๋“ ๋‹ค - Publish ๊ฐ’์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด ObservableObject๋กœ ๋งŒ๋“ค์–ด์ค€๋‹ค - ๋จผ์ € ๊ธฐ๋ณธ์ ์ธ ํ‹€์„ ์žก์•„๋ณธ๋‹ค (๋ณ€์ˆ˜๋“ค๊ณผ ๋ณ€์ˆ˜๋“ค์— ๋‹ด์„ ์˜๋ฏธ, ๋กœ์ง ๋“ฑ) class TextLimiter: ObservableObject { private let limit: Int init(limit: Int) { self.limit = limit } @Published var value = "" @Published var hasReachedLimit = false } - ์—ฌ๊ธฐ์„œ limi..

728x90
๋ฐ˜์‘ํ˜•