Creating a Swift Package in Xcode

  Переглядів 13,551

Stewart Lynch

Stewart Lynch

День тому

With Swift Package Manager you can create reusable components of Swift content that you can share accros different Xcod projects. This allows you to make changes in one place and then have that code updated everywhere on demand.
In this video we will be taking an existing SwiftUI view and use it to create a Swift Package. What is different this time is that since Xcode 5.3, you are now able to include assets in your package so that is what we are going to do.
In the process I will show you how to identify and fix access errors. push your package up to a GitHub repository and then test it out by using it in a new project.
We will also update the package by adding a new feature and then show how you can update your project to use the package update.
If you want to support my work, you can buy me a coffee :)
ko-fi.com/stewartlynch
******* Download my StewartLynch UKposts Channel Application - Free **********
stewartlynch.gumroad.com/l/obsjz
Table of Contents:
0:00 Introduction
4:21 Creating a Swift Package
7:13 Fixing Access Control Errors
11:05 Local and Remote Git Repository
17:00 Updating a Swift Package
Starter Project Files:
www.createchsol.com/StarterPro...
Completed CTRating2 Package:
github.com/StewartLynch/CTRat...
Other reference Videos:
Quick Help Documentation:
• Quick Help Documentation
Access Control Levels
• Access Control levels ...
Typora Markdown Editor
• Markdown with Typora
Xcode and Git Playlist
• Xcode and Git
Understaning Swift Image Assets
• Understanding Image As...
Other References:
Stewart Lynch's UKposts Channel:
/ stewartlynch
Stewart Lynch on Twitter:
/ stewartlynch
CreaTECH Solutions Website:
www.createchsol.com
Stewart Lynch's GitHub:
github.com/StewartLynch

КОМЕНТАРІ: 38
@jonathanroberts6910
@jonathanroberts6910 2 місяці тому
Your presentation is clear. Your demo code is small and understandable. You demonstrate potential errors, show how to recognize them and how to solve them. Your editing is excellent. Great work, Stewart! Much appreciated.
@StewartLynch
@StewartLynch 2 місяці тому
Thank you very much!
@FloWritesCode
@FloWritesCode 3 роки тому
Incredible timing, just a week ago I struggled a bit trying to create a package myself! Then I figured why not make a video about it myself, but you came in clutch and did it already, thanks!
@shahidiqbal2481
@shahidiqbal2481 3 роки тому
Was waiting for this Stewart. Thank you so much. Lots of love and respect.
@KimbrellBrad
@KimbrellBrad 3 роки тому
So much to digest! Plus several of those earlier videos that I plan to go back and watch...all of them LOL! Another great job sir! Thanks for posting!
@jasurrajabov
@jasurrajabov 3 роки тому
Really useful tutorial. Thank you so much, Steward!
@jeastwood
@jeastwood Рік тому
Great content Stewart, really appreciate the way you take the time to be clear and instructive. This video was just what I needed today.
@StewartLynch
@StewartLynch Рік тому
Glad it helped
@muqaddasharoon1915
@muqaddasharoon1915 2 роки тому
Thank you for this tutorial. This helped me a lot in creating packages!
@thewayasmr
@thewayasmr Рік тому
Outstanding tutorial - slow & methodical explanations, practical use cases / examples, and covering other topics than just the one at hand. Well done, thank you!
@StewartLynch
@StewartLynch Рік тому
You're very welcome!
@DhavalHNena
@DhavalHNena 2 роки тому
Great tutorial Stewart! Really appreciate your content. Thanks a lot.
@NedHogan
@NedHogan 11 місяців тому
Thanks for the update, this was just what I needed for a custom package I wanted to create
@oudomprak4641
@oudomprak4641 3 роки тому
Looks cool, thank you so much for this video.
@leonciocastillo6433
@leonciocastillo6433 3 роки тому
Great and very helpful video, thanks.
@lonniegerol
@lonniegerol 2 роки тому
This was a VERY helpful video... thank you!
@artemulko
@artemulko 2 роки тому
Many thanks! Your video helped me a lot!
@7up340
@7up340 2 роки тому
Thank you Stewart, Excellent tutorial made it look so easy ^_^
@andresraigoza2082
@andresraigoza2082 11 місяців тому
Awesome! thank you so much
@shonifari5783
@shonifari5783 3 роки тому
Thanks, very useful!
@alexOXz
@alexOXz 2 роки тому
Thank you so much!
@megaminerable
@megaminerable 8 місяців тому
very helpfull thank you
@StewartLynch
@StewartLynch 7 місяців тому
Glad it was helpful!
@eriodanieldiaz3357
@eriodanieldiaz3357 Рік тому
Awesome!
@sepehrt6439
@sepehrt6439 Місяць тому
Thank you
@keefcheif8421
@keefcheif8421 Рік тому
Your videos are goated
@StewartLynch
@StewartLynch Рік тому
Thanks, I think
@manojmalvi7918
@manojmalvi7918 2 роки тому
Hi Stewart, It feels so amazing seeing your videos.. I am struggling through adding objective-c files into swift package but cant do it. Could you please make one tutorial on adding objective-c files into a swift package?
@StewartLynch
@StewartLynch 2 роки тому
I have never worked with Obj C myself Manoj. Sorry, but I started developing for iOS in 2014 when Swift was released.
@hakeemdeggs9117
@hakeemdeggs9117 Рік тому
@learnreactnative1533
@learnreactnative1533 2 роки тому
I created swift PM add on private repo, I am not able to selecting "Version" radio button. when I selected "Branch" . Then successfully install my SPM on my app. Could u please give me reason, why it happens? sorry for my english.
@StewartLynch
@StewartLynch 2 роки тому
If it is not showing up with code completion, it is likely because it has not been made public.
@learnreactnative1533
@learnreactnative1533 2 роки тому
@@StewartLynch Thank u very much.
@roman3249
@roman3249 Рік тому
By default they are "internal", not "private" 🙂
@StewartLynch
@StewartLynch Рік тому
Yup. My bad. Thanks for the correction
@eldarsadykov
@eldarsadykov 9 місяців тому
A comment.
@StewartLynch
@StewartLynch 9 місяців тому
That was so thoughtful of you.
Create your own Swift Package | Xcode, SPM, Swift Tutorial
16:46
Flo writes Code
Переглядів 4,1 тис.
Introductions to Closures in Swift
25:02
Stewart Lynch
Переглядів 11 тис.
КАК ГЛОТАЮТ ШПАГУ?😳
00:33
Masomka
Переглядів 2,2 млн
😨Новая Война в GTA 5 Online #shorts
00:40
King Dm
Переглядів 1,2 млн
ЧТО ДЕЛАТЬ, ЕСЛИ НЕ ХВАТАЕТ ДЕНЕГ НА ВОССТАНОВЛЕНИЕ ТАЧКИ?
47:52
Keeping Things Modular With Swift Package Manager - iOS Conf SG 2022
25:36
Build ENTIRE Frontends With ONE Prompt - OpenUI Tutorial
8:59
Matthew Berman
Переглядів 48 тис.
Creating a Custom Framework in Swift in 2022
26:54
Rebeloper - Rebel Developer
Переглядів 13 тис.
How to build, publish and distribute SWIFT PACKAGES (and use locally)
29:33
Fredrik Oseberg Coding Lessons
Переглядів 2,8 тис.
How to Make an App in 8 Days (2024) - Full Walkthrough
3:00:49
CodeWithChris
Переглядів 448 тис.
An introduction to WebAssembly
25:23
Coding Tech
Переглядів 184 тис.
Write Better Code with Swift Algorithms
34:34
Paul Hudson
Переглядів 31 тис.
Портативная PS 5 🎮 #ps5 #expressly
0:22
ExpresSLY Shorts
Переглядів 22 тис.
Я Создал Новый Айфон!
0:59
FLV
Переглядів 2,3 млн
Самый глупый смартфон в мире #LightPhone
0:36