# Swift

**URL:** https://forums.kodeco.com/c/general/swift/15.md?page=22

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 23

---

## [Run loop based intervals playing sound swift4](https://forums.kodeco.com/t/run-loop-based-intervals-playing-sound-swift4/41921)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 3\
**Last updated:** [April 26, 2018, 7:50am UTC](https://forums.kodeco.com/t/run-loop-based-intervals-playing-sound-swift4/41921 "2018-04-26T07:50:50Z")

</div>

I want to make a app that plays a sound based on intervals that the user enters. So say if the user enters 2 times per 10 seconds. The sound should play at 5 seconds and 10 seconds. import UIKit class Vie…

---

## [Cornell box solution](https://forums.kodeco.com/t/cornell-box-solution/41451)

<div class="topic-metadata">

**Author:** [@michael\_nechaev](https://forums.kodeco.com/u/michael_nechaev)\
**Replies:** 1\
**Last updated:** [April 24, 2018, 9:25pm UTC](https://forums.kodeco.com/t/cornell-box-solution/41451 "2018-04-24T21:25:23Z")

</div>

Hello everybody! Can someone share solution of Metal Cornell Box for me?

---

## [Socket IO Client Manager is released](https://forums.kodeco.com/t/socket-io-client-manager-is-released/39192)

<div class="topic-metadata">

**Author:** [@muhammadali](https://forums.kodeco.com/u/muhammadali)\
**Replies:** 3\
**Last updated:** [April 24, 2018, 1:39pm UTC](https://forums.kodeco.com/t/socket-io-client-manager-is-released/39192 "2018-04-24T13:39:34Z")

</div>

I have error in socket io swift .I socket server is not connect because manager is released?? You can see the console error How to fix it??

---

## [Document Provider Tutorial](https://forums.kodeco.com/t/document-provider-tutorial/41575)

<div class="topic-metadata">

**Author:** [@religionofpeas](https://forums.kodeco.com/u/religionofpeas)\
**Replies:** 2\
**Last updated:** [April 17, 2018, 6:52am UTC](https://forums.kodeco.com/t/document-provider-tutorial/41575 "2018-04-17T06:52:20Z")

</div>

Hi all, I have been going through this tutorial and it is all well and good up to the point of running CleverNote. It runs okay, but Picker does not show up anywhere as an option when it is run. Also, I’m wondering if…

---

## [Editing style for UICollectionView delete](https://forums.kodeco.com/t/editing-style-for-uicollectionview-delete/41333)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [April 15, 2018, 6:20pm UTC](https://forums.kodeco.com/t/editing-style-for-uicollectionview-delete/41333 "2018-04-15T18:20:51Z")

</div>

The photo below shows a function to delete a section of a tableview. func tableView(\_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) { if editingStyle =…

---

## [Running Swift Algorithm solutions in playground](https://forums.kodeco.com/t/running-swift-algorithm-solutions-in-playground/41275)

<div class="topic-metadata">

**Author:** [@karljay](https://forums.kodeco.com/u/karljay)\
**Replies:** 3\
**Last updated:** [April 12, 2018, 2:36pm UTC](https://forums.kodeco.com/t/running-swift-algorithm-solutions-in-playground/41275 "2018-04-12T14:36:38Z")

</div>

Was looking to do the LCS in Swift in a playground and found this: So I cut-n-paste into a playground and it doesn’t work. Playgrounds doesn’t like the self. Is there a playgrounds ready version of this?

---

## [Text not changing from action in viewdidappear](https://forums.kodeco.com/t/text-not-changing-from-action-in-viewdidappear/41290)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [April 10, 2018, 2:20am UTC](https://forums.kodeco.com/t/text-not-changing-from-action-in-viewdidappear/41290 "2018-04-10T02:20:35Z")

</div>

In arkit I have 3d text in which via button I am trying to change the colors to. The code below is not working. It stays red the entire no matter how many times the button is being pressed. But the counter score is incre…

---

## [How to create a favorite page](https://forums.kodeco.com/t/how-to-create-a-favorite-page/40186)

<div class="topic-metadata">

**Author:** [@samgusaapp1993](https://forums.kodeco.com/u/samgusaapp1993)\
**Replies:** 1\
**Last updated:** [April 4, 2018, 11:16pm UTC](https://forums.kodeco.com/t/how-to-create-a-favorite-page/40186 "2018-04-04T23:16:49Z")

</div>

Out of curiosity how would one be able to create a favorite button and page? When someone presses a button that is shaped as an empty star it turns into a filled star (both images are stored in assets), when that button …

---

## [How to use for loop to print array in a page control (swift4)](https://forums.kodeco.com/t/how-to-use-for-loop-to-print-array-in-a-page-control-swift4/40359)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 3\
**Last updated:** [April 4, 2018, 11:13pm UTC](https://forums.kodeco.com/t/how-to-use-for-loop-to-print-array-in-a-page-control-swift4/40359 "2018-04-04T23:13:28Z")

</div>

My code right now uses a for loop to print images placed in the assets folder. I want to do the same thing with text using a label. So in array judo. I would like each entry to be printed in order just like the way it is…

---

## [Using URLSession with PUT and fragments of Content-Range in Swift](https://forums.kodeco.com/t/using-urlsession-with-put-and-fragments-of-content-range-in-swift/40860)

<div class="topic-metadata">

**Author:** [@jthake](https://forums.kodeco.com/u/jthake)\
**Replies:** 4\
**Last updated:** [April 4, 2018, 10:31pm UTC](https://forums.kodeco.com/t/using-urlsession-with-put-and-fragments-of-content-range-in-swift/40860 "2018-04-04T22:31:15Z")

</div>

I am still learning Swift 4. I’ve successfully managed to call the Microsoft OneDrive API to fetch user information and create basic text files using URLSession. For files over 4mb, you have to upload them in fragments.…

---

## [Swift - saving values from a thread to a variable](https://forums.kodeco.com/t/swift-saving-values-from-a-thread-to-a-variable/40260)

<div class="topic-metadata">

**Author:** [@trifek](https://forums.kodeco.com/u/trifek)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 10:08pm UTC](https://forums.kodeco.com/t/swift-saving-values-from-a-thread-to-a-variable/40260 "2018-04-04T22:08:45Z")

</div>

Hi, I have 2 variables: var hallOfFame = “” var hallOfFameGrupy = “” and 2 threads: func downloadRankingPersonal(adress : String, adress2 : String, completed: @escaping () → ()){ let url = URL(string: adress) let …

---

## [Swift 4 and Alamofire - Type 'DataResponse' has no subscript members](https://forums.kodeco.com/t/swift-4-and-alamofire-type-dataresponse-has-no-subscript-members/40164)

<div class="topic-metadata">

**Author:** [@trifek](https://forums.kodeco.com/u/trifek)\
**Replies:** 3\
**Last updated:** [April 4, 2018, 9:55pm UTC](https://forums.kodeco.com/t/swift-4-and-alamofire-type-dataresponse-has-no-subscript-members/40164 "2018-04-04T21:55:23Z")

</div>

Hi, I have this code: let params = \["parm": "getList", "obj": "none"\] Alamofire.request("http://nazwa.pl/", method: .get, parameters: params).responseJSON { responseData in if respons…

---

## [Refactorin gin Xcode](https://forums.kodeco.com/t/refactorin-gin-xcode/40976)

<div class="topic-metadata">

**Author:** [@luclannoo](https://forums.kodeco.com/u/luclannoo)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 9:28pm UTC](https://forums.kodeco.com/t/refactorin-gin-xcode/40976 "2018-04-04T21:28:57Z")

</div>

Hello, I’m a user of Xcode. I was wondering if there is a tutorial / course on refactoring ? I would like to learn how to use it on the best way. Luc Lannoo

---

## [Attempt to present something that is not in windows hierachy](https://forums.kodeco.com/t/attempt-to-present-something-that-is-not-in-windows-hierachy/40064)

<div class="topic-metadata">

**Author:** [@flora\_land](https://forums.kodeco.com/u/flora_land)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 8:46pm UTC](https://forums.kodeco.com/t/attempt-to-present-something-that-is-not-in-windows-hierachy/40064 "2018-04-04T20:46:02Z")

</div>

hi everyone, I am facing some issues with running an app on my device. It is a game that requires the player to click on a “Hit Me” button. However, an error pops up in the print section: how do I solve this? when I …

---

## [Video and images dont show from any browsers](https://forums.kodeco.com/t/video-and-images-dont-show-from-any-browsers/40343)

<div class="topic-metadata">

**Author:** [@asilbekmubarak](https://forums.kodeco.com/u/asilbekmubarak)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 8:24pm UTC](https://forums.kodeco.com/t/video-and-images-dont-show-from-any-browsers/40343 "2018-04-04T20:24:25Z")

</div>

i have subscription and cant learning from video coursers, What the problem?? use diffrent browsers chrome and firefox.

---

## [Working with more than one developer in Xcode9](https://forums.kodeco.com/t/working-with-more-than-one-developer-in-xcode9/41154)

<div class="topic-metadata">

**Author:** [@jaeneedshelp](https://forums.kodeco.com/u/jaeneedshelp)\
**Replies:** 1\
**Last updated:** [April 2, 2018, 10:04pm UTC](https://forums.kodeco.com/t/working-with-more-than-one-developer-in-xcode9/41154 "2018-04-02T22:04:15Z")

</div>

Hello, I am new to iOS/Swift development. I wanted to know how you would work in a team while using xcode 9.2? I read up on the git tutorial and am able to create a repository on github but now how do my team members co…

---

## [Trying to parse Json](https://forums.kodeco.com/t/trying-to-parse-json/39281)

<div class="topic-metadata">

**Author:** [@milhouse](https://forums.kodeco.com/u/milhouse)\
**Replies:** 8\
**Last updated:** [April 2, 2018, 12:13am UTC](https://forums.kodeco.com/t/trying-to-parse-json/39281 "2018-04-02T00:13:10Z")

</div>

Hi, i’m trying to wrap my head around Swift 4 JSONDecoder but it feels like i’m running in circles. I have this json (just a snippet): "approvedTime": "2018-02-08T18:02:25Z", "referenceTime": "2018-02-08T18:00:00Z", …

---

## [Beta Tester Query](https://forums.kodeco.com/t/beta-tester-query/37688)

<div class="topic-metadata">

**Author:** [@chicago](https://forums.kodeco.com/u/chicago)\
**Replies:** 1\
**Last updated:** [April 1, 2018, 7:23am UTC](https://forums.kodeco.com/t/beta-tester-query/37688 "2018-04-01T07:23:22Z")

</div>

I brought this subject up with Ray over a year or so ago, and I’m bringing it up again. I am in no way trying to beat up on Ray because I know he is busy doing all the great things he does for all of us, but my issue re…

---

## [Setting boundaries on pan gestures](https://forums.kodeco.com/t/setting-boundaries-on-pan-gestures/39840)

<div class="topic-metadata">

**Author:** [@deniznasif](https://forums.kodeco.com/u/deniznasif)\
**Replies:** 1\
**Last updated:** [April 1, 2018, 12:58am UTC](https://forums.kodeco.com/t/setting-boundaries-on-pan-gestures/39840 "2018-04-01T00:58:12Z")

</div>

Hello, I have created 5 UIViews, each with UIPanGestureRecognizers, which I then add to another UIView. All this works and I can drag each around, but I don’t want them to be dragged outside the boundaries of their pare…

---

## [How to remove optional for coreData](https://forums.kodeco.com/t/how-to-remove-optional-for-coredata/38831)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [March 31, 2018, 10:57pm UTC](https://forums.kodeco.com/t/how-to-remove-optional-for-coredata/38831 "2018-03-31T22:57:25Z")

</div>

I am trying to fetch core data and place it on a label. I am trying to do that in function saveData. You can see all of the optional data before the entity in the photo below. I don’t know what this is even called bu…

---

## [Open My application from my keyboard extension in swift 3.0](https://forums.kodeco.com/t/open-my-application-from-my-keyboard-extension-in-swift-3-0/21121)

<div class="topic-metadata">

**Author:** [@vimipatel](https://forums.kodeco.com/u/vimipatel)\
**Replies:** 1\
**Last updated:** [March 27, 2018, 3:02pm UTC](https://forums.kodeco.com/t/open-my-application-from-my-keyboard-extension-in-swift-3-0/21121 "2018-03-27T15:02:09Z")

</div>

I am trying to open from my keyboard extension. I am having custom keyboard and I have add that keyboard from setting. On my custom keyboard there is one button “Show More”, and I want to open my app on this button click…

---

## [Twitter Composer](https://forums.kodeco.com/t/twitter-composer/40443)

<div class="topic-metadata">

**Author:** [@jjazad](https://forums.kodeco.com/u/jjazad)\
**Replies:** 1\
**Last updated:** [March 26, 2018, 4:36am UTC](https://forums.kodeco.com/t/twitter-composer/40443 "2018-03-26T04:36:00Z")

</div>

Good morning all, I have an issue that I cannot figure out. My self.navigationController is throwing an exception with a nil value when I call the below method. However, calling a similar method for FaceBook works just f…

---

## [Beginning RxSwift course](https://forums.kodeco.com/t/beginning-rxswift-course/40453)

<div class="topic-metadata">

**Author:** [@kiee79](https://forums.kodeco.com/u/kiee79)\
**Replies:** 1\
**Last updated:** [March 21, 2018, 7:10pm UTC](https://forums.kodeco.com/t/beginning-rxswift-course/40453 "2018-03-21T19:10:29Z")

</div>

Hi :slight\_smile: Do you know when roughly the basic RXSwift course will be available ?

---

## [Instances in programming with swift](https://forums.kodeco.com/t/instances-in-programming-with-swift/40393)

<div class="topic-metadata">

**Author:** [@miraz16](https://forums.kodeco.com/u/miraz16)\
**Replies:** 3\
**Last updated:** [March 20, 2018, 5:15am UTC](https://forums.kodeco.com/t/instances-in-programming-with-swift/40393 "2018-03-20T05:15:05Z")

</div>

im currently doing the programming in swift course and they often time use the word instance, for example they would say “instance of the class” and i’ve been trying to google what it means, but havent found a definitive…

---

## [How to add a vapor api to swift project](https://forums.kodeco.com/t/how-to-add-a-vapor-api-to-swift-project/39041)

<div class="topic-metadata">

**Author:** [@samgusaapp1993](https://forums.kodeco.com/u/samgusaapp1993)\
**Replies:** 10\
**Last updated:** [March 10, 2018, 7:13pm UTC](https://forums.kodeco.com/t/how-to-add-a-vapor-api-to-swift-project/39041 "2018-03-10T19:13:26Z")

</div>

I am curious. There are videos where we are taught to create a backend vapor project, but what do we do after that? How do we implement that backend into an iOS app? Thank you

---

## [I am looking for a component to display news](https://forums.kodeco.com/t/i-am-looking-for-a-component-to-display-news/39950)

<div class="topic-metadata">

**Author:** [@trifek](https://forums.kodeco.com/u/trifek)\
**Replies:** 4\
**Last updated:** [March 5, 2018, 4:52pm UTC](https://forums.kodeco.com/t/i-am-looking-for-a-component-to-display-news/39950 "2018-03-05T16:52:37Z")

</div>

Hello. Do you know such a component? http://serwer1356363.home.pl/pub/2.png In such a window I would like to display news downloaded from htmlem (if possible).

---

## [Core Data and Relationship (Unexpectedly found nil...)](https://forums.kodeco.com/t/core-data-and-relationship-unexpectedly-found-nil/39871)

<div class="topic-metadata">

**Author:** [@agenci](https://forums.kodeco.com/u/agenci)\
**Replies:** 2\
**Last updated:** [March 1, 2018, 9:23am UTC](https://forums.kodeco.com/t/core-data-and-relationship-unexpectedly-found-nil/39871 "2018-03-01T09:23:13Z")

</div>

Hello, I need help with “Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value” I have this NavigationController on my Storyboard: RoomTableViewController (with all my items:room-entity) goe…

---

## [Textfield not entering data into textfield](https://forums.kodeco.com/t/textfield-not-entering-data-into-textfield/39792)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [February 25, 2018, 7:22pm UTC](https://forums.kodeco.com/t/textfield-not-entering-data-into-textfield/39792 "2018-02-25T19:22:16Z")

</div>

My code uses a textfield to enter data into core data. Then have the core data displayed on a tableview. The problem is nothing is being displayed on the tableview. Don’t know why? import UIKit; import C…

---

## [Where to start research on scraping color data from websites?](https://forums.kodeco.com/t/where-to-start-research-on-scraping-color-data-from-websites/39766)

<div class="topic-metadata">

**Author:** [@nickmaxwell](https://forums.kodeco.com/u/nickmaxwell)\
**Replies:** 2\
**Last updated:** [February 24, 2018, 8:26pm UTC](https://forums.kodeco.com/t/where-to-start-research-on-scraping-color-data-from-websites/39766 "2018-02-24T20:26:47Z")

</div>

Hi there, I’m loving the tutorials on this site so far! I’ve learned so much already. Does anyone have a recommendation on where to start researching the ability to scrape color data from the internet? Specifically, I …

---

## [Continuous animation along path](https://forums.kodeco.com/t/continuous-animation-along-path/39101)

<div class="topic-metadata">

**Author:** [@martinzly](https://forums.kodeco.com/u/martinzly)\
**Replies:** 11\
**Last updated:** [February 21, 2018, 1:18pm UTC](https://forums.kodeco.com/t/continuous-animation-along-path/39101 "2018-02-21T13:18:58Z")

</div>

Hi, please could You help me, how to do continuous (infinity) line animation along path without stopping - see attached picture — for path: path = UIBezierPath(roundedRect: CGRect.init(x: 0, y: 0, width: 100, height: 1…

[Previous page](https://forums.kodeco.com/c/general/swift/15.md?page=21)

[Next page](https://forums.kodeco.com/c/general/swift/15.md?page=23)
