Переглядів 13,551
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