Creating a Swift Package in Xcode

  Рет қаралды 14,624

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 KZfaq 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 KZfaq Channel:
/ stewartlynch
Stewart Lynch on Twitter:
/ stewartlynch
CreaTECH Solutions Website:
www.createchsol.com
Stewart Lynch's GitHub:
github.com/StewartLynch

Пікірлер: 37
@jonathanroberts6910
@jonathanroberts6910 5 ай бұрын
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 5 ай бұрын
Thank you very much!
@shahidiqbal2481
@shahidiqbal2481 3 жыл бұрын
Was waiting for this Stewart. Thank you so much. Lots of love and respect.
@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!
@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
@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!
@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!
@muqaddasharoon1915
@muqaddasharoon1915 2 жыл бұрын
Thank you for this tutorial. This helped me a lot in creating packages!
@DhavalHNena
@DhavalHNena 2 жыл бұрын
Great tutorial Stewart! Really appreciate your content. Thanks a lot.
@NedHogan
@NedHogan Жыл бұрын
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.
@lonniegerol
@lonniegerol 2 жыл бұрын
This was a VERY helpful video... thank you!
@leonciocastillo6433
@leonciocastillo6433 3 жыл бұрын
Great and very helpful video, thanks.
@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 Жыл бұрын
Awesome! thank you so much
@shonifari5783
@shonifari5783 3 жыл бұрын
Thanks, very useful!
@alexOXz
@alexOXz 2 жыл бұрын
Thank you so much!
@keefcheif8421
@keefcheif8421 Жыл бұрын
Your videos are goated
@StewartLynch
@StewartLynch Жыл бұрын
Thanks, I think
@megaminerable
@megaminerable 11 ай бұрын
very helpfull thank you
@StewartLynch
@StewartLynch 11 ай бұрын
Glad it was helpful!
@sepehrt6439
@sepehrt6439 4 ай бұрын
Thank you
@hakeemdeggs9117
@hakeemdeggs9117 Жыл бұрын
@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.
@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 2 жыл бұрын
By default they are "internal", not "private" 🙂
@StewartLynch
@StewartLynch 2 жыл бұрын
Yup. My bad. Thanks for the correction
@eldarsadykov
@eldarsadykov Жыл бұрын
A comment.
@StewartLynch
@StewartLynch Жыл бұрын
That was so thoughtful of you.
Threads and Grand Central Dispatch in Swift
22:14
Stewart Lynch
Рет қаралды 21 М.
~/.dotfiles in 100 Seconds
13:54
Fireship
Рет қаралды 413 М.
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 72 МЛН
UNO!
00:18
БРУНО
Рет қаралды 2,7 МЛН
Create your own Swift Package | Xcode, SPM, Swift Tutorial
16:46
Flo writes Code
Рет қаралды 4,9 М.
How to Make a Swift Package! (Xcode)
14:33
Jared Davidson
Рет қаралды 18 М.
Introduction to Generics in Swift
24:14
Stewart Lynch
Рет қаралды 5 М.
Creating and Publishing Swift Packages (Swift Package Manager)
14:05
We Built an App in 24 Hours [No Code]
11:56
Raw Startup
Рет қаралды 418 М.
Create and Use a Swift Package
10:57
Peter Witham
Рет қаралды 6 М.
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 265 М.
I built a $5 chat app with Pocketbase & Svelte. Will it scale?
13:34
map, compactMap flatMap
17:06
Stewart Lynch
Рет қаралды 8 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 64 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 5 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 7 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,7 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18