使用Xcode文件模板加快開發速度



在開發應用程序多年之後,一項非常繁瑣的任務是在包含大量樣板代碼的項目中創建新文件的過程。 解決此問題的快速方法是創建包括所有預構建的自定義邏輯的自定義模板文件。 今天,我將向您展示如何安裝這些模板。 請享用。 自定義模板目錄〜/ Library / Developer / Xcode /模板mkdir -p〜/ Library / Developer / Xcode / Templates / File 模板/自定義Xcode默認模板目錄/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates /文件模板我的自定義模板文件:https://letsbuildthatapp-videos.s3-us-west-2.amazonaws.com/LBTACustom_Templates.zip AppStore JSON API https://www.letsbuildthatapp.com/course/AppStore-JSON- API Tinder Firestore輕掃並匹配https://www.letsbuildthatapp.com/course/Tinder-Firestore-Swipe-and-Match Twitter滑出菜單課程https://www.letsbuildthatapp.com/course/Twitter-Slide-Out-菜單播客課程https://www.letsbuildthatapp.com/course/Podcasts中級培訓核心數據https://www.letsbuildthatapp.com/course/intermediate-training-core-data Instagram Firebase課程https://www.letsbuildthatapp。 com / course / instagram-firebase Facebook群組https://www.facebook.com/groups/1240636442694543/ Instagram:https://www.instagram.com/buildthata pp / Twitter:https://twitter.com/buildthatapp Hackintosh Build i9 9900k:https://amzn.to/2CvQj6v ASUS Z390主板:https://amzn.to/2JpaQ2B 16GB Corsair Vengeance RGB RAM:https:// amzn.to/2YbygvJ Corsair H100i鉑金水冷卻器:https://amzn.to/2FnbM22 Thermaltake RGB電源:https://amzn.to/2TgKDTu英特爾1TB SSD:https://amzn.to/2Tkdk1V Corsair 280x計算機案例:https://amzn.to/2WcjvH2 AMD Radeon 4GB RAM GFX卡:https://amzn.to/2TYMyAp LG 34「寬屏3440 x 1440:https://amzn.to/2Tk7q0S Rode NT1麥克風:https: //amzn.to/2TZgX1r Focusrite音頻介面:https://amzn.to/2U12gey Panasonic GH4 DSLR:https://amzn.to/2U4BrG6 Magewell HDMI to USB3 Capture Card:https://amzn.to/2Jp2esI。

27 comments
  1. I have added my new custom template folder inside my Xcode file templates folder but I can't seem to see it when I open Xcode and try to create a new file

  2. Hi Brian! Loved the video! Could you please maybe explain us how to use custom frameworks in projects to avoid writing the same classes, extensions and utils again and again? Thanks!!

  3. hello Brian can you tell me how to walk through your tutorials in the channel , which one to start with and next etc, i'm beginner btw and want to learn from you

  4. Hi Brain, it is very useful video. Thanks. But i could not able to edit swift file. Im using XCode 10.1. Is there anything to change from my side, please reply.

  5. Hey Brain can you learn us how to create custom transitions between view controllers like in App Store please?
    I know there is a lot of examples on internet bu actually we need to understand how its work, not the code.
    Thanks in advance??

  6. Your videos used to be my first choice for learning about iOS and Swift – and I even purchased one of your courses – but now you』re down to 5th spot on my list of go-to』s for Swift information – and it』s primarily for what you will probably think is a stupid reason. The topics you cover are great. You speak eloquently and the lessons are usually well organized…. but I simply cannot handle the way you use your mouse. It』s like you have some sort of hyperactive disorder because you can』t stop shaking, jiggling and whipping the mouse all over the screen when it』s not at all necessary. Even in this video – you can』t stop highlighting and unhighlighting the text and shaking the mouse pointer on the screen (even when you』re not calling attention to anything specific). It probably doesn』t bother most people – but I find it distracting. I may have some sort of OCD disorder myself because I can』t watch your videos any more because of it. I find it so extremely friggin』 annoying – almost infuriating even!
    But as rude as this comment may sound, it』s intended to be constructive. I didn』t have to share this and I』m not trying to be mean or hurtful. Others may not find it as annoying as I do – but at times, they would almost certainly have to find it distracting and unnecessary. Anyhow – I』ve provided the feedback. It』s up to you whether you try to do anything about it or not. If not – I guess I』m breaking up with you – lol – but don』t be sad – we』ll always have constraints and structs!

  7. Brain, I have really learned a lot from your tutorial. I am currently doing a volunteer job and they are asking me to help them with calling app like WhatsApp, I would appreciate if you post a series on WhatsApp like App 😉

  8. This is great but i wish it was even easier, also, what about entire projects? I want to be able to just create a "boilerplate" Xcode project, with my preferred folder structure, files (like these template files) since i use some of them in every project, extensions, settings, dependencies etc etc etc etc, then just use that boilerplate when creating a new project. But now, i have to duplicate my boilerplate project and then rename it which is a tedious task. Why has Apple made this such a pain and isn't there a better way than: https://stackoverflow.com/questions/17744319/duplicate-and-rename-xcode-project-associated-folders

  9. I』m a senior iOS dev and gotta be honest, most of your vids I leave with 「been there done that」, but this was seriously AWESOME! Great Tip!

  10. Hi brain awesome tutorial for saving time while doing coding using file template can you please review ada health app and can please do a video behind the app logic how they are changing the layouts.

Comments are closed.