Skip to main content

Onboarding

Joining a new company / team there is always a lot of new items to do, install and familiarise yourself.  Below is a working list:

Applying a container using Docker

Running Docker in a new process and creating a container.

 

Go to the directory using the cd command.  In this instance in the sites directory:

cd ~/Sites

Create a new directory, which can be achieved using mkdir

mkdir mydir

If Docker has been installed then the next command will be all that is required

devcontainer

 

SwiftUI - custom navigation bar title

When managing a navigation title in Swift, you will have trodden down the path.  Previously you have entered something like

.navigationTitle("Title")

If you wanted to alter the font used for the navigation area, alter the init() in the view:

How to remove row separators from a Form or List in SwiftUI?

Struggling to hide the SwiftUI separators in a List or Form? 

 

The challenge

Creating the following form, separation lines appeared between NameLayout, FinalPhoto, RawPhoto, ApertureLayout and SubmitButton.

Is your Linux computer running slow?

Well for me it is very slow.  Recently, I upgraded from CentOS 6 to Centos 7.  CentOS 6 was lightening fast.  Since the upgrade CentOS 7 has been so slow in comparison.  But when I say slow, it has been appallingly slow.  It just was unable to reach anywhere the performance of 6.  Which seems odd, given high transmission speed and powerful hardware.   It still takes forever in executing or processing services or applications.

Core Data - customising the data model with a enum

Core Data - customising our data model

When you are using Core Data, and let's say that you have a requirement to have an attribute where the options available should be a defined list.  Such as "Not Started", "Pending", "In Development" and "Completed".  How do you create this as an option in Core Data?  

SwiftUI partial or full screen .sheet or .fullScreenCover

SwiftUI’s sheets are used to present new views over existing ones, while still allowing users to drag down to dismiss the new view when they are ready.  To use a sheet, you need to give it something to show (such as a custom view), add a Boolean that defines whether the detail view should be showing, then attach it to your main view as a modal sheet.

Xcode succeeded but nothing happens

I attempted the run command and the response I had was succeeded, but then nothing else happened!

I usually have this problem when a dependency is not updated.

The following steps usually works for me... note in bold are the Terminal commands such as (rm -rf Podfile.lock):

Subscribe to