Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in the text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "For every Gradle module/project, you'll have a build.gradle
(or .kts
) file describing the build steps for that specific module."
A block of code is set as follows:
plugins { kotlin("multiplatform") id("com.android.library") kotlin("plugin.serialization") version Versions.KOTLIN_VERSION id("org.jetbrains.kotlin.native.cocoapods") }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
// Swift unwrapping if let string = optional { print(string.count) } else { print("I'm nil") }
Any command-line input or output is written as follows:
$ mkdir css $ cd css
Bold: Indicates a new term, an important word, or words that you see on screen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "Open the Android Studio New Project wizard (Android Studio | New Project). From the Phone and Tablet tab, select KMM Application."
Tips or Important Notes
Appear like this.