Skip to main content

Posts

Showing posts from June, 2022

Custom Loader (Activity Indicator) in Swift

Creating a custom activity indicator in Swift allows you to tailor the appearance and behavior of your loading spinner to fit the style of your app. Here's a step-by-step guide to creating a simple custom activity indicator using UIView Step 1: Create a New Swift File for the Custom Activity Indicator Create a new Swift file and name it  RotatingCirclesView.swift . Add the following code to define a custom UIView subclass for your activity indicator: // //   RotatingCirclesView.swift //   Welcome In // //   Created by Praveen Kumar on 05/09/24. // import UIKit class RotatingCirclesView : UIView {          let circle1 = UIView ( frame : CGRect ( x : 20 , y : 20 , width : 60 , height : 60 ))     let circle2 = UIView ( frame : CGRect ( x : 120 , y : 20 , width : 60 , height : 60 ))          let position : [ CGRect ] = [ CGRect ( x : 30 , y : 20 , width : 60 , height : 60 ), CGRect ( x : 60 , y : 15 ,...

Integrating Google reCAPTCHA Enterprise in iOS apps Swift and Google Cloud

Google ReCaptcha =>> Integrating Google reCAPTCHA Enterprise in iOS apps Swift If are you implement reCAPTCHA Enterprise,  then you contact Contact our sales team for reCAPTCHA Enterprise iOS SDK is accessible after a security review. Then Create a reCAPTCHA Key for the iOS app platform. Step by Step  Choose the best method for setting up reCAPTCHA Enterprise in your environment and complete the setup. iOS SDK is accessible after a security review. Contact our sales team to onboard your site to this feature.  Create a reCAPTCHA Key for the iOS app platform. Then Depending on your integration method, ask your sales representative to grant you access to one of the following: reCAPTCHA Enterprise CocoaPods repository, the Swift Package Manager repository, or the iOS SDK download . Integrating reCAPTCHA Enterprise Two Way:-   Direct download => Download the SDK binary from the iOS SDK download page. - https://cloud.google.com/recaptcha-enterprise/docs/downl...

How to show And dismiss keyboard iOS programmatically with Swift in iOS app.

1. Dismiss keyboard with Keyboard Return key override   func   viewDidLoad () {          super . viewDidLoad ()          textfield. delegate  =  self          // Do any additional setup after loading the view.      }         func   textFieldShouldReturn ( _  textField:  UITextField ) ->  Bool  {                   textField. resignFirstResponder ()                   return   true               } 2. Dismiss keyboard with Tap Any in View Controller  Using touchesBegan override func touchesBegan ( _ touches: Set < UITouch >, with event: UIEvent ?) {         super . touchesBegan (touches,                  ...