How can I check is there any consecutive characters with a regex in Swift 4.0??

Can anyone give me a Swift regex to identify consecutive characters in a string? My regex is .*(.)\\1$ and this is n...

Calculation of stroke property 'Dash' in dashed circle - Swift?

I'm developing an app. I haven't completed my apprenticeship of Swift 2.2/3.0 and I'm in search of some answers. F...

Swift 3 - How do I display borders on my camera view??

I am using Swift 3, Xcode 8.2. I am trying to figure out how to display these borders on a camera feed as below: ...

iOS 11 safe area layout guide backwards compatibility?

Is enabling Safe Area Layout Guides compatible to iOS below 11? ...

What is the right way of creating circle animation??

I just saw this image and it's interesting to me, how to create such type of animation in Swift: So, I have many ...

Two semi transparent rectangle that overlap without changing the common area color?

I have a lot of CALayer, each with a semitransparent green rectangle inside. When I add all these layers onto a view...

iOS Screen Recorder shows error of Media Service failure, after my own app stops receiving video buffers from RPScreenRecorder?

So here is the scenario I am going through. My app records screen and Mic Audio through RPRPScreenRecorder using it'...

Swift: Drawing a semi-transparent line with drawStroke(_:touch:)?

I am trying to draw a semi-transparent line using drawStroke(_:touch:). I have changed the alpha value for the con...

SwiftUI: Can't align image to the top of ZStack?

I can't figure out how to align Image view on top of ZStack, by default views in SwiftUI are placed at the center of...

Triangle Gradient With Core Graphics?

I'm trying to draw a triangle like this one in a view (one UIView, one NSView): My first thought was CoreGraphics, ...

iOS 11 Floating TableView Header?

Have an app going with multiple sections, a few rows per section when "expanded", none when "collapsed". Each sectio...

Sprite Kit - Draw circle with muilticolored borders?

I want to draw a circle similar to this: I'm going to have different objects interact (collide) with the circle ...

How to create game map for iOS??

I would like to create a game map for stages and levels within a game similar to the way the game Candy Crush or Two...