-
Book Overview & Buying
-
Table Of Contents
Swift Cookbook
By :
As you might know, nowadays, it's very common to analyze a website to get a better result on search engines. Counting the number of words on a website is a common way to know how search engines retrieve information from our website. As we already have a WordCounter class from the previous recipe, we will recycle it and create a new program, which is to count words on a website.
First of all, check some URLs from a website, the words of which you would like to count. It can be any website, but the idea is to have a few URLs to check with a lot of words.
To show that the task has finished, we will show an icon, so you can download it from the book resources or you can download your own icon.
Once you have your URL list and your icon ready, let's create a project called Chapter 5 SEO; add your icon and let's code.
Follow these steps to create an SEO app:
WordCounter.swift file from the other previous recipe. To do this...
Change the font size
Change margin width
Change background colour