Related: How To Customize Strings in Swift? Old but Gold: NSAttributedString As default, SwiftUI allows customizing Text() view like below: [crayon-650d2394c2761356195558/] But when you try to show an NSAttributedString directly in Text(), you see an error: Let’s try to hack it! A custom UIViewRepresentable class will help us to avoid […]

How To Use NSAttributedString in SwiftUI: Hack It!

Related: How To Use NSAttributedString in SwiftUI: Hack It! We use NSAttributedString to create different styled texts in Swift. There are many options to modify in this class. To understand how it works, let’s get started with a simple attributed string example. [crayon-650d2394c4472141838574/] Here, we created an attributed string by […]

How To Customize Strings in Swift? Old but Gold: NSAttributedString

Custom UIAlertController – iOS (Objective-C) Creating a custom UIAlertController helps you to show a popup in your iOS application whenever you need to show a simple warning/information popup. It is an embedded iOS library and that means you do not need to install any 3rd party library. A classic popup in […]

Custom UIAlertController – iOS (Objective-C)

iOS Network Connection with AFNetworking – iOS(Objective-C) There are many libraries for iOS to connect network and get/post data. This tutorial will show one of the most popular library: AFNetworking. It is easy to implement and gather data with this library in Objective-C. Assume that you have a data as […]

iOS Network Connection with AFNetworking – Objective-C

“Hello World” for Dummies… – iOS “Hello World” again. This is an introduction to iOS development for newbies. This tutorial explains briefly how to start developing an iOS application. As Android development explained before, these tutorials will continue with “native” development which means you need to be familiar with Objective-C […]

“Hello World” for Dummies… – iOS

Custom Dialog Android This tutorial shows how to create a dialog with custom view in Android. As you know, you can create dialogs and set its title, button actions and message with Android‘s Dialog library. In this tutorial, we’ll create a custom view and set it as view of our […]

Custom Dialog Android

“Hello World” for Dummies… – Android In these tutorials, everything begins with Android Studio. It’s official IDE, developed by Google, for Android developers. Please download the latest version of Android Studio. Important: I assume that you are familiar with Java programming 🙂 Ready? Let’s begin with creating a our first […]

“Hello World” for Dummies… – Android

Using Device Camera – Unity3D (C#) You can get image from device camera in your scene to use for VR, player portrait etc. It’s pretty easy and tricky. Actually there is no object for device camera. We use the image captured from camera as material and display it on an […]

Using Device Camera – Unity3D (C#)

This function is used for UI buttons mostly but sometimes we need it in game specs. It is implemented easily with mouse enter-exit listeners. We can change color of an object with renderers. Create a cube object and attach this script to it. At first, define 2 colors for standard […]

Change Color on Hover (Mouseover) – Unity3D (C#)

Create Timer – Unity3D (C#) A visible or background timer runs on most games. We will create an easy one which ticks seconds. In this tutorial we don’t use any value such as integer, float etc. We just need a GUI text. Let’s create. Open your project and create a GUIText. […]

Create Timer – Unity3D (C#)

Strategy Pattern I will try to explain this pattern as simple as I can because it is really simple and useful. Lets define  a problem: Think about that you have employees in different departments with different titles and you need a method which calculates different salaries. Answer 1 – You can write […]

C# Design Patterns in Unity3D : Strategy Pattern

Creating New Game Object at Run Time  – Unity3D (C#) Games not only include driving car or make run a character but also include creating new objects. At this point, “Prefab” thing is included. In that case what is prefab? You can find thousands of definition for prefab but I […]

Creating New Game Object at Run Time – Unity3D ...

Change Camera – Unity3D (C#) Switching between multiple cameras is familiar to everybody from racing games. You can get a view from rear, front, interior etc. It’s easy to implement. If you use two or three cameras, you can assign a key to change camera and make them disabled and […]

Change Camera – Unity3D (C#)

Camera Movement with Mouse – Unity3D (C#) This type of camera controller is mostly used in RTS projects. You can move camera with mouse movement. There are two types of camera movement with mouse: Touch the edges of screen or drag the mouse. In “Drag the Mouse” movement type, player […]

Camera Movement with Mouse – Unity3D (C#)

C# Design Patterns in Unity3D : Singleton In software development, design patterns help us to solve some common problems in our projects. It’s better if you use this patterns as a guide at the start of your project. If you stuck anywhere on your project, it’s time to find out […]

C# Design Patterns in Unity3D : Singleton