Wow, what a lot of work to display HTML in an app! Today’s lesson covered attributed Strings (a string that has associated attributes, such as styles, HTML, etc). Apparently SwiftUI can’t do that yet, so we’re using UIKit to achieve it. Two methods are required, and the UIViewRepresentable protocol is […]
Monthly archives: March 2022
43 posts
One key feature of today’s CodeWithChris lesson from iOS Foundations Module 5 is adding a video to the Learning App. In order to do this, we need to add the appropriate Framework to the project: We then add that to the view that will include the video: There is also […]
Today’s lesson follows Chris through setting up the main view, whilst using sub-views for duplicated code. Example: The main struct HomeView calls up the HomeViewRow twice – first to show a “Lessons” card, then to show a “Test” card. This pair of views is then called up ForEach lesson stored […]