Using custom PresentationController and PanGestureRecognizers

Having recently spent countless hours of searching for tutorials that simply explain how to create a “draggable” view, I’ve decided to take a stab at creating a tutorial that I wish I had when l first started out.
In this article, I’m going to show you step by step how we can achieve this beautiful draggable popup view in Swift!

The main frameworks we’re going to be using from UIKit in this tutorial are: UIPresentationController, and UIPanGestureRecognizer.

A UIPresentationController is an NSObject that manages the transition animations and the presentation of view controllers onscreen.

A UIPanGestureRecognizer is a distinct…

Markus Spiske on Unsplash

This article is an extension from my recent article: Memory Management with Heaps & Stacks. I wanted to touch more based on the data structure of heaps and stacks since Swift used these terms to manage memory. If you want to learn more on swift’s memory management and haven’t yet checked out that article, I highly recommend checking it out!🔝🔝

Today’s article is going to go in detail of what these data structures are and how you would implement it in Swift!


“Not all roots are buried down in the ground some are at the top of the tree.” …

A real world problem solved through graph algorithms

In todays article, we’ll take a dive in to learning more about graphs and their implementation to solving real world problems. Some common examples of situations where you can use graphs are: social network(friends of friends), page recommendations(based on most popular search), the study of molecules in chemistry and physics, transportation networks, and etc.

Things to know about graphs

Parts of a graph
1. Vertices(nodes) — Where data is stored.
2. Edges(connections) — Connects 2 different vertices together. And they can also go in one direction. Which creates what’s called directed graphs or digraphs. Additionally, these edges can have weights.

Types of graphs
1. Undirected —…

For this article, I want to discuss a couple topics in the iOS world I’ve always found interesting: memory management, heaps, and stacks. I’ve never really understood the difference between them or how heaps and stacks relate to storing memory in Swift.

So, I decided to do some of my own research and dig deep into memory management in Swift. I hope you’re looking forward to this topic as much as I am! Let’s dive right in.

How is Memory Managed in Swift?

Swift uses ARC (Automatic Reference Counting). Some of you might find this term familiar. But if not, no worries! …

A straight forward, step-by-step guide to integrating Google Maps

Tyler Lastovich

In today's piece, I will be showing you how to easily integrate Google maps into your app, as well as showing results of searched places through the API.

Before we begin the tutorial, I want to take a moment to compare and contrast the use of Google Maps and native MapKit.

Both are pretty similar in location searching and viewings. MapKit is native to Swift and so you wouldn’t need to install third-party dependencies. It also has a styling that’s more aligned with iOS patterns. Also, Google’s API costs money if you’re trying to make many fetch requests. …

Append, Prepend, Remove, Find, and Replace

As you may have heard the term linked list pop in every now and then. It’s a form of data structure that can store a collection of items. Linked list consists of a group of nodes together to represent a sequence, relative of the same type.
If you are here to learn how to implement linked lists in Swift and learn some tips, you’re in the right place!

each rectangle represents a node

As you might have guessed, the picture above demonstrates a linked list. In this case, the linked list contains many nodes, a head, and a tail. The head represents the beginning node…

A straight forward step by step guide done programmatically.

Hi everyone! Today, I will be showing you a step by step tutorial on how to setup a TableView programmatically as well as using the delegate and datasource protocols in Swift 4.2. I hope this tutorial serves as purposeful to you in your projects and let’s jump right in! 😃

Step 1: Create a ViewController.swift file

This will serve as the View Controller where we add our tableView subview and manage the UIKit app’s interface.

class ViewController: UIViewController {}

Step 2: In our ViewController class, instantiate a UITableView object

This is how we create a TableView object and set all the requirements for them within this scope.

Step 3: Setup the tableView and add constraints!

We add views and set constraints to…

An iteration on creating the product

By Tatiana Shulgina

Have you ever thought about traveling with your best friend or family and being able to know exactly where they are at every point in the trip? Look no further. There has been various occasions where people have wasted time just to catch up with others who may be arriving to the destination late or had changed routes and made the trip more complicated for others. What if there was an application to help solve that problem? From iterating over the different possibilities to help tackle this problem, we came up with this solution:

An app for users to keep…

By Genevieve Scarano

“Habit is a cable; we weave a thread each day, and at last we cannot break it.”―Horace Mann

Ever since I was in middle school, I have always been obsessed with working out and eating healthy. Most of my friends in school would know me and my sister for that. However, when I moved overseas for college, my schedule was soon changed and I did not exercise nor be aware of the food I was eating. I had totally lacked out, and lost motivation. I came across this ted talk about adjusting your habits from small changes each day and…

Sarin Swift

iOS development💡 & Product design

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store