728x90
๋ฐ˜์‘ํ˜•

Computer Science/swift ๋ฝ€๊ฐœ๊ธฐ - ์ฐธ๊ณ  ์‚ฌ์ดํŠธ ์ €์žฅ์†Œ 45

[swift] swift์˜ ์ „์ฒด์ ์ธ ๊ตฌ์กฐ ๋ฐ UIView ๊ฐœ๋…

reference : https://crisco.tistory.com/entry/UIView-๊ฐœ๋…์•Œ๊ธฐ UIView ๊ฐœ๋…์•Œ๊ธฐ UIView๋Š” UI๋ฅผ ์ด๋ฃจ๋Š” ๊ตฌ์„ฑ์š”์†Œ์ด๋ฉฐ ํ™”๋ฉด์— ๋‚˜ํƒ€๋‚˜๋Š” ์‹œ๊ฐ์  ์š”์†Œ๋ฅผ ์ œ๊ณตํ•œ๋‹ค. ์œˆ๋„์šฐ๋Š” ์ปจํ…Œ์ด๋„ˆ ์—ญํ™œ์„ ํ•˜๋ฉฐ, ํ™”๋ฉด์— ํ‘œ์‹œํ•  ๊ตฌ์„ฑ ์š”์†Œ์—์„œ ์ตœ์ƒ์œ„์— ์œ„์น˜ํ•˜๊ณ  UIImageView, UITextView ๋“ฑ ๊ฐ ์šฉ๋„์— crisco.tistory.com

[swift] hit test

reference : https://baked-corn.tistory.com/128?category=718235 [ios] Hit Testing in iOS [ios] Hit Testing in iOS ์•ˆ๋…•ํ•˜์„ธ์š”. ์˜ค๋Š˜์€ iOS์—์„œ Event Handling์— ๋Œ€ํ•ด ๊ณต๋ถ€ํ•˜๋ฉด์„œ ์•Œ๊ฒŒ ๋œ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•ด๋ณด๋ ค ํ•ฉ๋‹ˆ๋‹ค. ์ด์ „ ํฌ์ŠคํŒ…์—์„œ๋Š” UIControl์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์•˜์Šต๋‹ˆ๋‹ค. ์˜ค๋Š˜์€ Hit Testing์— ๋Œ€ํ•ด ๊ธฐ. baked-corn.tistory.com

[swift] Rxswift ๋กœ timer

https://fomaios.tistory.com/entry/RxSwift-Disposable๊ณผ-DisposeBag [RxSwift] Disposable๊ณผ DisposeBag ์•ˆ๋…•ํ•˜์„ธ์š” Foma ์ž…๋‹ˆ๋‹ค. ์˜ค๋Š˜์€ RxSwift์—์„œ ๊ฐ€์žฅ ๊ธฐ์ดˆ๊ฐ€๋˜๋Š” Disposable๊ณผ DisposeBag์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋ฐ”๋กœ ์‹œ์ž‘ํ• ๊ฒŒ์š”~ Disposable ๋จผ์ € dispose์˜ ์‚ฌ์ „์  ์˜๋ฏธ๋Š” ๋ญ˜๊นŒ์š”? ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์˜๋ฏธ๊ฐ€ ์žˆ์ง€๋งŒ fomaios.tistory.com

[swift] xcode์‹คํ–‰์„ command line์œผ๋กœ ํ•  ์ˆœ ์—†์„๊นŒ..

https://ericasadun.com/2020/07/15/executing-command-line-directly-from-xcode/ Executing command-line directly from Xcode I got pulled into one of those conversations where I end up saying, “Fine, I’ll put up a post about it” and this is the post. Yes, you can test and run command-line apps directly … ericasadun.com

[swift] AVPlayer, AVFoundation

reference : https://stackoverflow.com/questions/38437935/how-do-i-get-current-playing-time-cmtime-in-milliseconds-in-avplayer/56608415 How do I get current playing time, CMTime in milliseconds in AVPlayer? I am getting current playing value in seconds but i need in milliseconds. I tried to currentTime.value/currentTime.scale. But it didn't get exact value. CMTime currentTime = vPlayer.currentIte..

[swift] ios calendar ๊ด€๋ จ (๋‚ด๊ฐ€ ๋ณด๋ ค๊ณ  ๋งŒ๋“ )

calendar ์จ๋“œํŒŒํ‹ฐ๋ฅผ ์ฐพ๊ณ  ์žˆ๋‹ค ์•„๋ž˜ ๋งํฌ ์—ฌ๋Ÿฌ๊ฐœ๋ฅผ ์ฐธ๊ณ ํ•  ์˜ˆ์ •์ด๋‹ค search keyword : - swiftui calendar week schedule - how to use calendarkit reference : https://iosexample.com/a-fully-customizable-calendar-library-written-in-swift/ A fully customizable calendar library written in Swift Calendar for iOS and iPadOS in Swift. iosexample.com https://github.com/richardtop/CalendarKit GitHub - richardtop/CalendarKit: ๐Ÿ“… Calend..

[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

728x90
๋ฐ˜์‘ํ˜•