Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
How to draw a rectangle inside a swift class for using it as react native module

@objc
  func drawRectangle()
  {
      // Get the Graphics Context
      let context = UIGraphicsGetCurrentContext()

      // Set the rectangle outerline-width
      context?.setLineWidth( 5.0)

      // Set the rectangle outerline-colour
      UIColor.red.set()

      // Create Rectangle
      context?.addRect( CGRect(x: 0, y: 0, width: 100, height: 100))

      // Draw
      context?.strokePath()

  }

I have tried using this and exporting the method but the rectangle isn't displayed in the react native app

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!