# Swift

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

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

**Page:** 19

---

## [Best way to display test](https://forums.kodeco.com/t/best-way-to-display-test/52576)

<div class="topic-metadata">

**Author:** [@dadixon](https://forums.kodeco.com/u/dadixon)\
**Replies:** 2\
**Last updated:** [October 11, 2018, 12:59pm UTC](https://forums.kodeco.com/t/best-way-to-display-test/52576 "2018-10-11T12:59:01Z")

</div>

I’m creating an app that will run the user through a series of test. The number of questions for each test is dynamic. I would like to use a navigation bar for each test. Since I don’t know how many questions there are, …

---

## [Static Tableview Cells](https://forums.kodeco.com/t/static-tableview-cells/45370)

<div class="topic-metadata">

**Author:** [@jport1130](https://forums.kodeco.com/u/jport1130)\
**Replies:** 1\
**Last updated:** [October 10, 2018, 12:14pm UTC](https://forums.kodeco.com/t/static-tableview-cells/45370 "2018-10-10T12:14:37Z")

</div>

I have a static cell which contains a subtotal formula. I can enter the quantity and cost to get the subtotal. I would like the cell to update anytime the user changes either the quantity or cost. Can this be done wit…

---

## [UIBarButtonItem Badge](https://forums.kodeco.com/t/uibarbuttonitem-badge/47902)

<div class="topic-metadata">

**Author:** [@jport1130](https://forums.kodeco.com/u/jport1130)\
**Replies:** 1\
**Last updated:** [October 10, 2018, 11:59am UTC](https://forums.kodeco.com/t/uibarbuttonitem-badge/47902 "2018-10-10T11:59:35Z")

</div>

I have been doing some research on adding a badge to a UIBarButton and found the following code. I have been unable to make it work so I am looking for help. //This is the code I am using to call the func itemButton.a…

---

## [Learning TableViews chapter 27](https://forums.kodeco.com/t/learning-tableviews-chapter-27/48598)

<div class="topic-metadata">

**Author:** [@rfwarnock](https://forums.kodeco.com/u/rfwarnock)\
**Replies:** 1\
**Last updated:** [September 30, 2018, 12:30pm UTC](https://forums.kodeco.com/t/learning-tableviews-chapter-27/48598 "2018-09-30T12:30:37Z")

</div>

I followed along carefully and everything has worked until - upgraded to swift 4.2 - and apparently I can no longer drag a bar button onto the navigation bar. Any thoughts?

---

## [What to choose for Server Side Swift Frameworks?](https://forums.kodeco.com/t/what-to-choose-for-server-side-swift-frameworks/50854)

<div class="topic-metadata">

**Author:** [@x901](https://forums.kodeco.com/u/x901)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 2:18am UTC](https://forums.kodeco.com/t/what-to-choose-for-server-side-swift-frameworks/50854 "2018-09-28T02:18:33Z")

</div>

Hi , I’m Swift Developer for more than 2 years I noticed that Firebase not good enough all the times And depends on others developers to create API is annoying some times so I thinking to learn Server Side Swift to m…

---

## [How to get blur effect similar to Apple maps status bar?](https://forums.kodeco.com/t/how-to-get-blur-effect-similar-to-apple-maps-status-bar/48017)

<div class="topic-metadata">

**Author:** [@fe\_tech](https://forums.kodeco.com/u/fe_tech)\
**Replies:** 1\
**Last updated:** [September 27, 2018, 10:55pm UTC](https://forums.kodeco.com/t/how-to-get-blur-effect-similar-to-apple-maps-status-bar/48017 "2018-09-27T22:55:11Z")

</div>

I’m working on a map based iOS 11 application and want to make the status bar blurred exactly like it appears in the Apple maps. This is how it looks on the Maps app: Currently, I’m using UIVisualEffectView to replic…

---

## [Logic for Storyboard initial View Controller not working](https://forums.kodeco.com/t/logic-for-storyboard-initial-view-controller-not-working/40306)

<div class="topic-metadata">

**Author:** [@jderbs](https://forums.kodeco.com/u/jderbs)\
**Replies:** 1\
**Last updated:** [September 27, 2018, 11:45am UTC](https://forums.kodeco.com/t/logic-for-storyboard-initial-view-controller-not-working/40306 "2018-09-27T11:45:21Z")

</div>

I’m having a problem setting the initial view controller programmatically. I can set it, but the when I run the app, the main controller always comes up when the login controller should be, and the compiler finds nil. It…

---

## [How to create IBOutlet collection pragmatically (swift4)](https://forums.kodeco.com/t/how-to-create-iboutlet-collection-pragmatically-swift4/50155)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [September 26, 2018, 9:42am UTC](https://forums.kodeco.com/t/how-to-create-iboutlet-collection-pragmatically-swift4/50155 "2018-09-26T09:42:32Z")

</div>

I am trying to add up the total of all of the textfields using an outlet collection the problem is put in all of the textfields programmatically so I cannot drag and drop it into the collection. How can I do this program…

---

## [Levels in candy crush](https://forums.kodeco.com/t/levels-in-candy-crush/45295)

<div class="topic-metadata">

**Author:** [@dpalme](https://forums.kodeco.com/u/dpalme)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 7:03pm UTC](https://forums.kodeco.com/t/levels-in-candy-crush/45295 "2018-09-25T19:03:56Z")

</div>

It seems in playing candy crush that the game has the ability to download new levels on the fly without having to update the game itself through apple (new release). Does anyone have any clue as to how they are doing th…

---

## [Having a issue with Sprite Kit](https://forums.kodeco.com/t/having-a-issue-with-sprite-kit/50706)

<div class="topic-metadata">

**Author:** [@lac\_ekim](https://forums.kodeco.com/u/lac_ekim)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 4:32pm UTC](https://forums.kodeco.com/t/having-a-issue-with-sprite-kit/50706 "2018-09-25T16:32:38Z")

</div>

The pictures will explain the issue as you can see the two things are different in the abilities. One has the panel on the bottom right and the other doesn’t. Another thing is the view on the other sprite kit scene…

---

## [Reducing Boilerplate in iOS Development](https://forums.kodeco.com/t/reducing-boilerplate-in-ios-development/49287)

<div class="topic-metadata">

**Author:** [@codebendr](https://forums.kodeco.com/u/codebendr)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 7:58pm UTC](https://forums.kodeco.com/t/reducing-boilerplate-in-ios-development/49287 "2018-09-18T19:58:40Z")

</div>

Lately I have been thinking of ways to reduce boilerplate in Xcode. I use a lot of collection views and collection view cells. Can anyone help me out on how best to approach datasource and delegation boilerplates?

---

## [Swift multiplayer game](https://forums.kodeco.com/t/swift-multiplayer-game/49130)

<div class="topic-metadata">

**Author:** [@ratton](https://forums.kodeco.com/u/ratton)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 5:37pm UTC](https://forums.kodeco.com/t/swift-multiplayer-game/49130 "2018-09-17T17:37:34Z")

</div>

Hello, I want to know, if in RW there is any book or course that can I buy, to build a multiplayer game. I want to learn how to do this in real time and in turns. I am using swift. Thanks, Roberto

---

## [Phidget programming](https://forums.kodeco.com/t/phidget-programming/49369)

<div class="topic-metadata">

**Author:** [@sv1](https://forums.kodeco.com/u/sv1)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 5:12pm UTC](https://forums.kodeco.com/t/phidget-programming/49369 "2018-09-17T17:12:12Z")

</div>

anyone have any experience using swift to connect and read a thermocouple (or any device) using phidget usb interface. they have some examples and projects on the website but this seems a bit overwhelming at my level of …

---

## [How to tag programmed textfields featured in a extension file (swift4)](https://forums.kodeco.com/t/how-to-tag-programmed-textfields-featured-in-a-extension-file-swift4/45420)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 4\
**Last updated:** [September 15, 2018, 6:24am UTC](https://forums.kodeco.com/t/how-to-tag-programmed-textfields-featured-in-a-extension-file-swift4/45420 "2018-09-15T06:24:56Z")

</div>

I want to tag both textfield ana and sampleTextfield. So that in the extension field I can do things like call different pickerviews for each textfireld. Example: func pickerView(\_ pickerView: UIPickerView, …

---

## [ARKit: 3d Object keep moving](https://forums.kodeco.com/t/arkit-3d-object-keep-moving/49042)

<div class="topic-metadata">

**Author:** [@efthemiosprime](https://forums.kodeco.com/u/efthemiosprime)\
**Replies:** 0\
**Last updated:** [September 12, 2018, 2:14am UTC](https://forums.kodeco.com/t/arkit-3d-object-keep-moving/49042 "2018-09-12T02:14:36Z")

</div>

When I added a 3D object. for some reason it keeps moving from time to time. Can anyone tell me why would that happened? ARSCNViewDelegate: func renderer(\_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor:…

---

## [Loading a SKScene, but actions are not working](https://forums.kodeco.com/t/loading-a-skscene-but-actions-are-not-working/48608)

<div class="topic-metadata">

**Author:** [@jan-willem](https://forums.kodeco.com/u/jan-willem)\
**Replies:** 3\
**Last updated:** [September 9, 2018, 7:17am UTC](https://forums.kodeco.com/t/loading-a-skscene-but-actions-are-not-working/48608 "2018-09-09T07:17:45Z")

</div>

I do have a question about spritekit. I’m drawing a sprite in a SKScene, make it really nice with children sprites and runactions (animations) im loading the scene, copy the sprite and add it to my GameScene ( and doi…

---

## [How can i do accordion in swift like following page?](https://forums.kodeco.com/t/how-can-i-do-accordion-in-swift-like-following-page/48314)

<div class="topic-metadata">

**Author:** [@santhoshios](https://forums.kodeco.com/u/santhoshios)\
**Replies:** 1\
**Last updated:** [September 7, 2018, 7:09pm UTC](https://forums.kodeco.com/t/how-can-i-do-accordion-in-swift-like-following-page/48314 "2018-09-07T19:09:35Z")

</div>

---

## [Need help - How to Upgrade to Xcode 10](https://forums.kodeco.com/t/need-help-how-to-upgrade-to-xcode-10/47962)

<div class="topic-metadata">

**Author:** [@exw](https://forums.kodeco.com/u/exw)\
**Replies:** 4\
**Last updated:** [September 6, 2018, 2:57am UTC](https://forums.kodeco.com/t/need-help-how-to-upgrade-to-xcode-10/47962 "2018-09-06T02:57:41Z")

</div>

Super beginner question. I’m running Xcode 9.4.1 and doing the Swift tutorial for building your first app. The tutorial is using Xcode 10, which has presented a few bonus learning experiences for me as I try to reconcile…

---

## [How can we develope gridview in iOS swift?](https://forums.kodeco.com/t/how-can-we-develope-gridview-in-ios-swift/48300)

<div class="topic-metadata">

**Author:** [@santhoshios](https://forums.kodeco.com/u/santhoshios)\
**Replies:** 1\
**Last updated:** [September 5, 2018, 8:39am UTC](https://forums.kodeco.com/t/how-can-we-develope-gridview-in-ios-swift/48300 "2018-09-05T08:39:02Z")

</div>

I wanna display data in grid view so how can i achieve this on in iOS swift

---

## [Change text in viewdidappear via label](https://forums.kodeco.com/t/change-text-in-viewdidappear-via-label/40085)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 0\
**Last updated:** [March 6, 2018, 10:50pm UTC](https://forums.kodeco.com/t/change-text-in-viewdidappear-via-label/40085 "2018-03-06T22:50:45Z")

</div>

My code uses arkit. All I want to do is when I change the text of the label. The change is reflected in the arkit text. Currently its not. Whatever the arkit label stays and default and never changes no matter what is on…

---

## [How to print layer cover image picker photo when taking photos](https://forums.kodeco.com/t/how-to-print-layer-cover-image-picker-photo-when-taking-photos/40191)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 0\
**Last updated:** [March 11, 2018, 5:35am UTC](https://forums.kodeco.com/t/how-to-print-layer-cover-image-picker-photo-when-taking-photos/40191 "2018-03-11T05:35:19Z")

</div>

My code below prints a image over the image picker buts its not retained. Then its put on a image view and another buttton its selected to print the image over. I want to combine the two actions into one actions. Take th…

---

## [Core Data - preloading JSON - relationship (to-many)](https://forums.kodeco.com/t/core-data-preloading-json-relationship-to-many/40217)

<div class="topic-metadata">

**Author:** [@agenci](https://forums.kodeco.com/u/agenci)\
**Replies:** 0\
**Last updated:** [March 12, 2018, 10:43am UTC](https://forums.kodeco.com/t/core-data-preloading-json-relationship-to-many/40217 "2018-03-12T10:43:05Z")

</div>

Hi at all, I need some help for my preloader. I’ve a db.json like this: { "home": \[{ "name":"some Namer", "info":"lorem ipsum", "active": true, "dateB":"2014/09/27", "dateH":"2014/09/27", "prio"…

---

## [How to retrieve CouchDB attachments from Server-Side Swift](https://forums.kodeco.com/t/how-to-retrieve-couchdb-attachments-from-server-side-swift/48137)

<div class="topic-metadata">

**Author:** [@thewall](https://forums.kodeco.com/u/thewall)\
**Replies:** 0\
**Last updated:** [September 3, 2018, 8:16pm UTC](https://forums.kodeco.com/t/how-to-retrieve-couchdb-attachments-from-server-side-swift/48137 "2018-09-03T20:16:26Z")

</div>

Hi all, Really good stuff on this site and I’ve been working with a couple of the examples. Yet, I’m struggling on how to retrieve an attachment from a CouchDB in Swift. I understand that CouchDB has a kind of ‘flag’ …

---

## [Advanced Mapkit Tutorials: Custom Tiles](https://forums.kodeco.com/t/advanced-mapkit-tutorials-custom-tiles/45477)

<div class="topic-metadata">

**Author:** [@prenez01](https://forums.kodeco.com/u/prenez01)\
**Replies:** 1\
**Last updated:** [August 30, 2018, 11:30pm UTC](https://forums.kodeco.com/t/advanced-mapkit-tutorials-custom-tiles/45477 "2018-08-30T23:30:34Z")

</div>

Probably not how this is supposed to look. I had to right click and ‘open video in new window’ to see it here. it’s a light show, be forewarned.

---

## [Problem compiling a downloaded material (Operation and OperationQueue)](https://forums.kodeco.com/t/problem-compiling-a-downloaded-material-operation-and-operationqueue/47201)

<div class="topic-metadata">

**Author:** [@mctiew](https://forums.kodeco.com/u/mctiew)\
**Replies:** 1\
**Last updated:** [August 30, 2018, 5:36am UTC](https://forums.kodeco.com/t/problem-compiling-a-downloaded-material-operation-and-operationqueue/47201 "2018-08-30T05:36:24Z")

</div>

I have a newbie problem with using the downloaded material, to be specific, it’s “Operation and OperationQueue Tutorial in Swift”. When I extracted the files, double click on the “GooglyPuff.xcode.proj”, xcode opens up …

---

## [PDF with Webview](https://forums.kodeco.com/t/pdf-with-webview/46794)

<div class="topic-metadata">

**Author:** [@jport1130](https://forums.kodeco.com/u/jport1130)\
**Replies:** 6\
**Last updated:** [August 27, 2018, 3:35am UTC](https://forums.kodeco.com/t/pdf-with-webview/46794 "2018-08-27T03:35:10Z")

</div>

I am looking for some help in creating a PDF document. Currently I have a web view which contains labels to show my data. Does anyone have any advice and/or tutorials I could reference for help? Thank you!

---

## [Certificate not signed during application submission to appstore](https://forums.kodeco.com/t/certificate-not-signed-during-application-submission-to-appstore/44738)

<div class="topic-metadata">

**Author:** [@rikideveloper](https://forums.kodeco.com/u/rikideveloper)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 9:20am UTC](https://forums.kodeco.com/t/certificate-not-signed-during-application-submission-to-appstore/44738 "2018-08-22T09:20:14Z")

</div>

Hi then I have to send an application on AppStore, but when I create the archive and click on Upload to AppStore I have the following error: Error ITMS-90034: "Missing or invalid signature. The bundle ‘com…’ at bundle p…

---

## [Display the data through speech to text](https://forums.kodeco.com/t/display-the-data-through-speech-to-text/45154)

<div class="topic-metadata">

**Author:** [@santhoshios](https://forums.kodeco.com/u/santhoshios)\
**Replies:** 4\
**Last updated:** [August 22, 2018, 9:18am UTC](https://forums.kodeco.com/t/display-the-data-through-speech-to-text/45154 "2018-08-22T09:18:34Z")

</div>

Hi guyyyzzz. i am very much trouble to get solution to solve task, how to set the certain period of time like 60 sec , while using speech to text concept and display data in textview, How can we solve this issue? pl…

---

## [Get the filesystem type for a file](https://forums.kodeco.com/t/get-the-filesystem-type-for-a-file/44205)

<div class="topic-metadata">

**Author:** [@ruicarneiro](https://forums.kodeco.com/u/ruicarneiro)\
**Replies:** 4\
**Last updated:** [August 22, 2018, 9:03am UTC](https://forums.kodeco.com/t/get-the-filesystem-type-for-a-file/44205 "2018-08-22T09:03:32Z")

</div>

Hi, I’m making a small utility for macOS, and it would be nice if I could get the filesystem type (APFS, HFS+, DOS, etc.) for a file. Thank you.

---

## [MKPolyline to UIBezierPath](https://forums.kodeco.com/t/mkpolyline-to-uibezierpath/25723)

<div class="topic-metadata">

**Author:** [@elliott\_19](https://forums.kodeco.com/u/elliott_19)\
**Replies:** 1\
**Last updated:** [August 21, 2018, 10:04am UTC](https://forums.kodeco.com/t/mkpolyline-to-uibezierpath/25723 "2018-08-21T10:04:04Z")

</div>

Good evening! I am currently trying to convert an MKPolyline to a UIBezierPath and draw it on a UIView. I am able to get the points required however that Bezier path is not getting drawn onto the UIView. Any suggestion…

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

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