How to determine scale to increase sprite width to screen width
<p>I am trying to achieve something similar to <a href="https://stackoverflow.com/questions/34768415/how-to-increase-animate-the-width-of-the-square-on-both-ends">How to increase (animate) the width of the square on both ends</a> in Unity. How can I determine the scale by which to increase the width (of the sprite) for it to fill the whole screen width?</p>

<p><strong>UPDATE</strong></p>

<p>Below is the Swift code for I implemented for expanding the sprite width to take the full screen width:</p>

<pre><code>       func expandEnemy () {

         spritePosBeforeScaleX = CGPointMake((enemy?.sprite.position.x)!, (enemy?.sprite.anchorPoint.y)!)

         enemy?.sprite.anchorPoint = CGPointMake((enemy?.sprite.position.x)! / self.size.width, (enemy?.sprite.anchorPoint.y)!)
         let enemyScalingAction = SKAction.scaleXTo(self.size.width / (enemy?.sprite.size.width)!, duration: 1.0)
         enemy!.sprite.runAction(enemyScalingAction)

         delay(0.1)  
         {
            center = CGPointMake(enemy!.sprite.size.width / 2 - (enemy!.sprite.size.width * enemy!.sprite.anchorPoint.x), enemy!.sprite.size.height / 2 - (enemy!.sprite.size.height * enemy!.sprite.anchorPoint.y))
            enemy!.sprite.physicsBody = SKPhysicsBody(rectangleOfSize: enemy!.sprite.size, center: center)
         }
        }
</code></pre>