MobileEntityLogo.png

Hi.

Welcome to the best online resource for IOS & Android tutorials.

How to add placeholders manually to your swift code

How to add placeholders manually to your swift code

You may recognize the gray rounded pill shaped items with text in Xcode when using autocomplete, or a template from an api. Today you will learn how to add these to your code. Below is an example of a placeholder.

Screen Shot 2020-02-29 at 6.09.45 PM.png

You might ask yourself how do we do this, well it is very simple we use the following format.

<#Placeholder Text#>

If you just enter this in your swift file it will just create a empty placeholder, first you have to right your text, and then wrap it with the greater than or less than sign, and the hashtag/pound sign. Video below indicates how too do this.

How to add a UIViewController to your SwiftUI ViewT

How to add a UIViewController to your SwiftUI ViewT

How to add apple pencil functionality to your app using PencilKit

How to add apple pencil functionality to your app using PencilKit

0