Any idea for Next/Previous with json and swift file : <p>In swift, when I display a quote with id = 103, how can I get the next/previous quotes from my json result?</p>

<p>I implement method for swipe left and right in My ViewController :</p>

<pre><code>@objc func handleGesture(gesture: UISwipeGestureRecognizer) -&gt; Void {
    if gesture.direction == UISwipeGestureRecognizer.Direction.right {
        print("Swipe Right")
    }
    else if gesture.direction == UISwipeGestureRecognizer.Direction.left {
        print("Swipe Left")
    }
}
</code></pre>

<p>and my json result is like: </p>

<pre><code>{
"LOVE_METER": [
    {
        "id": "105",
        "cat_id": "57",
        "quote": "My quote 1",
        "quotes_likes": "0",
        "quotes_unlikes": "0",
        "cid": "57",
        "category_name": "SMS d'amour"
    },
    {
        "id": "104",
        "cat_id": "57",
        "quote": "My quote 2",
        "quotes_likes": "0",
        "quotes_unlikes": "0",
        "cid": "57",
        "category_name": "SMS d'amour"
    },
    {
        "id": "103",
        "cat_id": "57",
        "quote": "My quote 3",
        "quotes_likes": "0",
        "quotes_unlikes": "0",
        "cid": "57",
        "category_name": "SMS d'amour"
    }
]
}
</code></pre>

<p>Any idea ?</p>
