SwiftUI List onTapGesture Not Working After iOS 18 Update: Solutions and Fixes
iOSTutorialJunction
by leoiphonedev
4d ago
In this post, we will explore potential fixes for the issue where SwiftUI List elements fail to register onTapGesture actions after upgrading to iOS 18. The code worked perfectly fine over the past few months but now behaves inconsistently on iPhones running iOS 18. While holding down a button or element triggers the tapGesture action ..read more
Visit website
Understanding SwiftUI Stacks: HStack, VStack, and ZStack
iOSTutorialJunction
by leoiphonedev
4M ago
If you are designing your iOS app with SwiftUI, it’s essential to understand the basic concepts of Stacks, particularly HStack, VStack, and ZStack, and how to use them. In this tutorial, we will explore these three types of stacks. HStack HStack – H in HStack stands for Horizontal. This stack view arranges all the elements/views ..read more
Visit website
Create a multi-line, editable text view using TextEditor in SwiftUI.
iOSTutorialJunction
by leoiphonedev
5M ago
The TextEditor view in SwiftUI handles multiline text input. In this tutorial, we will learn how to use TextEditor with a placeholder, making it function similarly to a UITextView in UIKit ..read more
Visit website
Find number of lines for UILabel – Swift Tutorial
iOSTutorialJunction
by leoiphonedev
2y ago
In iOS app development, sometimes we do need to find number of lines shown by our UILabel. So that we can make adjustment to our app user interface via finding number of lines UILabel has drawn. In this tutorial we will get a code snippet that exactly does same thing, i.e. calculating number of line … Find number of lines for UILabel – Swift Tutorial Read More ..read more
Visit website
How to view document directory contents for the app installed on real iPhone device in xcode
iOSTutorialJunction
by leoiphonedev
3y ago
Some of the app on which we are working needs to to store some data locally. For example, images or some database file like .sqlite. While working with simulators, its easy to view contents being saved inside document directory. But when you testing your app on real IPhone device then you are not able to … How to view document directory contents for the app installed on real iPhone device in xcode Read More ..read more
Visit website
Integrate push notification using Firebase messaging in swift – iOS swift tutorial
iOSTutorialJunction
by leoiphonedev
3y ago
Things required to integrate Push notification Before we jump on to integrate push notification using Firebase messaging in iOS swift, you need few things at your disposal to test iOS push notification. Below is the list of things required to integrate and check push notification integration in iOS. iPhone device – Push notification did not … Integrate push notification using Firebase messaging in swift – iOS swift tutorial Read More ..read more
Visit website
How to increase UITabBar height in iOS swift
iOSTutorialJunction
by leoiphonedev
3y ago
In this post we will learn how to increase height of UITabBar in UITabBarController using swift programming language. Height of UITabBar cannot be increased either by setting height in interface builder or using a height constraint, only way to achieve it is by writing few lines of code. Learn how to create UITabBarController programmatically in … How to increase UITabBar height in iOS swift Read More ..read more
Visit website
How to save a structs to UserDefaults in swift
iOSTutorialJunction
by leoiphonedev
3y ago
One can save struct, conforming to Codable protocol can be saved to UserDefaults. It’s a very easy and simple task to save Structs to UserDefaults, though inly condition is that your Struct should conform to Codable protocol. As I am assuming you’re aware about Codable protocol and how it has made the task of JSON … How to save a structs to UserDefaults in swift Read More ..read more
Visit website
How to use Alamofire network reachability manager in iOS swift
iOSTutorialJunction
by leoiphonedev
3y ago
For an iOS app, using api call to populate data in the app. Check for internet connectivity is required to make app user experience a more better rather than not opting to detect availability of internet.Alamofire is network library written in swift and used in iOS app development for making network requests. This network library … How to use Alamofire network reachability manager in iOS swift Read More ..read more
Visit website
IOS tutorial: Create a drop down using swift language in iOS
iOSTutorialJunction
by leoiphonedev
3y ago
In this tutorial, we will learn how to create a drop down using swift language in iOS app development. For creating dropdown we will use a cocoa-pod named “DropDown” by assistolab. Given below is the url for the pod documentation, you can check that for better understanding of the drop-down functionality https://github.com/AssistoLab/DropDown Installing Dopdown pod … iOS tutorial: Create a drop down using swift language in iOS Read More ..read more
Visit website

Follow iOSTutorialJunction on FeedSpot

Continue with Google
Continue with Apple
OR