Swift Logo

Copy text to pasteboard/clipboard Swift 5.1


Read More...
Swift Logo

Use a custom font SwiftUI 5.1


Read More...
Swift Logo

Print all fonts available Swift 5.1


Read More...
Swift Logo

Add a background to fill the full view SwiftUI 5.1


Add this to inside the body of your content view.

Read More...
Swift Logo

What are basic operators Swift 5.1


Basic Operators include + – divide(/) and multiply(*). They also include logical operators like && which compares to Boolean values. Based on their combined result will give you a true or false result. Other operators…

Read More...

Catching errors Swift 5.1


Sometimes a function you have in your program may be causing errors. All you have to do is add throws after the function and then place the function in a do catch statement with try….

Read More...

Using assert for debugging Swift 5.1


Personally I don’t use a assert much but you can use it to make sure the value you are getting from a variable is the correct one. The above code does not have an error…

Read More...

Implicitly Unwrapped optionals Swift 5.1


if you know that the object is going to have a value you can force unwrap it.  

Read More...

Set a variables value to nil Swift 5.1


If you don’t want to set a default value to your variable you will have to write your variable like this:

Read More...

Variables with a value check if nil Swift 5.1


If you don’t want to set a default value to your variable you will have to write your variable like this:

Read More...