# Swift

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

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

**Page:** 10

---

## [Change BPM value of Spotify Song Swift ](https://forums.kodeco.com/t/change-bpm-value-of-spotify-song-swift/83910)

<div class="topic-metadata">

**Author:** [@dasssham](https://forums.kodeco.com/u/dasssham)\
**Replies:** 3\
**Last updated:** [February 1, 2020, 10:17am UTC](https://forums.kodeco.com/t/change-bpm-value-of-spotify-song-swift/83910 "2020-02-01T10:17:06Z")

</div>

I am trying to build an application that plays Spotify songs. I am really confused about how to change BPM(Beats Per Minute,) value of Spotify songs. First Step: Login through Spotify. Second Step: Get Current user a…

---

## [I have many problems in Xcode](https://forums.kodeco.com/t/i-have-many-problems-in-xcode/107062)

<div class="topic-metadata">

**Author:** [@roaasaud](https://forums.kodeco.com/u/roaasaud)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 5:02am UTC](https://forums.kodeco.com/t/i-have-many-problems-in-xcode/107062 "2020-05-02T05:02:53Z")

</div>

Hi everybody… Anybody can give the solution of this problem except \[1\]: https://i.postimg.cc/VkxQD8WF/image.png \[2\]:

---

## [Button opens a menu like contextMenu (in SwiftUI)](https://forums.kodeco.com/t/button-opens-a-menu-like-contextmenu-in-swiftui/108214)

<div class="topic-metadata">

**Author:** [@rico](https://forums.kodeco.com/u/rico)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 9:09am UTC](https://forums.kodeco.com/t/button-opens-a-menu-like-contextmenu-in-swiftui/108214 "2020-05-19T09:09:39Z")

</div>

Hallo, im searching a good way to open a menu with serval entries after tapping a button. I tried .popover, .sheet and many more. But all i get is a sheets, I don’t want the whole screen. .contextMenu gives me what i w…

---

## [Rsearchkit project build failed](https://forums.kodeco.com/t/rsearchkit-project-build-failed/108314)

<div class="topic-metadata">

**Author:** [@capwalker](https://forums.kodeco.com/u/capwalker)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 4:01pm UTC](https://forums.kodeco.com/t/rsearchkit-project-build-failed/108314 "2020-05-08T16:01:45Z")

</div>

Earlie answers didn’t quite catch or ask for details. I am using current Xcode. Looking at the project, it calls for script files that aren’t present in GIT or download. There’s also a comment that they have been removed…

---

## [Open Uber app from my app](https://forums.kodeco.com/t/open-uber-app-from-my-app/104215)

<div class="topic-metadata">

**Author:** [@pawelzet](https://forums.kodeco.com/u/pawelzet)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 5:28am UTC](https://forums.kodeco.com/t/open-uber-app-from-my-app/104215 "2020-05-02T05:28:02Z")

</div>

Hello, Im having toruble with opening uber app from my app. I try to open app, when score is = 26. It goes directly to itunesUrl link, so it opens appstore with uber app instead of app directly. Maybe you’ll have any id…

---

## [Core Graphics Tutorial: Getting Started Article issues](https://forums.kodeco.com/t/core-graphics-tutorial-getting-started-article-issues/107430)

<div class="topic-metadata">

**Author:** [@vidocaz](https://forums.kodeco.com/u/vidocaz)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 4:51am UTC](https://forums.kodeco.com/t/core-graphics-tutorial-getting-started-article-issues/107430 "2020-05-02T04:51:24Z")

</div>

https://www.raywenderlich.com/8003281-core-graphics-tutorial-getting-started The code is not exactly correct. If I follow code literally it doesn’t compile. For example: import UIKit @IBDesignable class CounterView: U…

---

## [Download images - Firebase](https://forums.kodeco.com/t/download-images-firebase/100351)

<div class="topic-metadata">

**Author:** [@jack7](https://forums.kodeco.com/u/jack7)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 2:00am UTC](https://forums.kodeco.com/t/download-images-firebase/100351 "2020-04-18T02:00:00Z")

</div>

Hi, I have a collectionview and I have to view images in the cells, so I download the images. But I want to download all the images even when the cells of the collectionview is not visible, therefore the user has not sc…

---

## [When text is entered into textfield uipangesture effect becomes null](https://forums.kodeco.com/t/when-text-is-entered-into-textfield-uipangesture-effect-becomes-null/97854)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 12:54am UTC](https://forums.kodeco.com/t/when-text-is-entered-into-textfield-uipangesture-effect-becomes-null/97854 "2020-04-18T00:54:09Z")

</div>

My swift code below creates 2 objects a imageview and a uitextfield. The imageview whichs is named pic is connected to a uipangestureReconginzier. When the user touches it moves around the view controller just like I wan…

---

## [Displaying console output in a text field](https://forums.kodeco.com/t/displaying-console-output-in-a-text-field/85983)

<div class="topic-metadata">

**Author:** [@ncrusher](https://forums.kodeco.com/u/ncrusher)\
**Replies:** 3\
**Last updated:** [February 1, 2020, 10:08am UTC](https://forums.kodeco.com/t/displaying-console-output-in-a-text-field/85983 "2020-02-01T10:08:43Z")

</div>

I finally had a breakthrough and got my ffmpeg GUI app working. My next challenge is getting the console output to print to a text field in the app instead of to the console so that the user can monitor ffmpeg’s progress…

---

## [Changelogs for Books?](https://forums.kodeco.com/t/changelogs-for-books/83989)

<div class="topic-metadata">

**Author:** [@briansipple](https://forums.kodeco.com/u/briansipple)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 11:59pm UTC](https://forums.kodeco.com/t/changelogs-for-books/83989 "2019-10-14T23:59:31Z")

</div>

With iOS13/Xcode11 updates beginning to roll out for many of the books (congrats, btw), I’m curious if there’s a good way to see what’s changed in the latest versions. Do the books themselves contain changelogs? Or does…

---

## [Where to go when you've graduated from "beginner"](https://forums.kodeco.com/t/where-to-go-when-youve-graduated-from-beginner/84063)

<div class="topic-metadata">

**Author:** [@ncrusher](https://forums.kodeco.com/u/ncrusher)\
**Replies:** 0\
**Last updated:** [October 6, 2019, 11:35pm UTC](https://forums.kodeco.com/t/where-to-go-when-youve-graduated-from-beginner/84063 "2019-10-06T23:35:53Z")

</div>

Hi. New user, first post, nice to meet y’all! I’m sort of graduating from beginner to intermediate right now, and I’m a little lost as to where to go next. I’ve completed Swift for Beginners courses on at least four dif…

---

## [Preventing Man-in-the-Middle Attacks in iOS with SSL Pinning](https://forums.kodeco.com/t/preventing-man-in-the-middle-attacks-in-ios-with-ssl-pinning/101941)

<div class="topic-metadata">

**Author:** [@prenez01](https://forums.kodeco.com/u/prenez01)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 10:05pm UTC](https://forums.kodeco.com/t/preventing-man-in-the-middle-attacks-in-ios-with-ssl-pinning/101941 "2020-04-05T22:05:32Z")

</div>

Charles doesn’t behave as described in the tutorial. Instead of an error condition, I get a successful connect. I built this up from the Starter, but then also tried with the Final, same result. @lorenzoboaro This is ch…

---

## [Bullseye Info button only working first time it is pressed](https://forums.kodeco.com/t/bullseye-info-button-only-working-first-time-it-is-pressed/100502)

<div class="topic-metadata">

**Author:** [@axeman](https://forums.kodeco.com/u/axeman)\
**Replies:** 4\
**Last updated:** [April 5, 2020, 2:40am UTC](https://forums.kodeco.com/t/bullseye-info-button-only-working-first-time-it-is-pressed/100502 "2020-04-05T02:40:35Z")

</div>

Bull’s Eye Info button only opens the About Window on it’s first click, subsequent presses do nothing.

---

## [More Practice with Swift](https://forums.kodeco.com/t/more-practice-with-swift/104059)

<div class="topic-metadata">

**Author:** [@mitchellrobben](https://forums.kodeco.com/u/mitchellrobben)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 12:28am UTC](https://forums.kodeco.com/t/more-practice-with-swift/104059 "2020-04-05T00:28:00Z")

</div>

Hi all, Can someone recommend a good workbook / website that has Swift practice exercises (like the challenges in the IOS & Swift path). I would like to get better at writing / creating some of the fundamental code I ha…

---

## [SwiftUI don't update scrollview content via API](https://forums.kodeco.com/t/swiftui-dont-update-scrollview-content-via-api/88875)

<div class="topic-metadata">

**Author:** [@selcukyucel](https://forums.kodeco.com/u/selcukyucel)\
**Replies:** 7\
**Last updated:** [April 3, 2020, 5:48am UTC](https://forums.kodeco.com/t/swiftui-dont-update-scrollview-content-via-api/88875 "2020-04-03T05:48:40Z")

</div>

Hi, I have been working one thing for whole day, and figured out something odd. I am fetching my data via API. then wanna show in a horizontal scroll view. Using ObservableObject and ObservedObject. Problem: View does…

---

## [Read core data. The basic simple code](https://forums.kodeco.com/t/read-core-data-the-basic-simple-code/100274)

<div class="topic-metadata">

**Author:** [@narcis](https://forums.kodeco.com/u/narcis)\
**Replies:** 1\
**Last updated:** [April 3, 2020, 5:12am UTC](https://forums.kodeco.com/t/read-core-data-the-basic-simple-code/100274 "2020-04-03T05:12:11Z")

</div>

I have created some data from UITextField name and password. It works well. I have problems to make the same with Read. For instance select from Core Data the Attribute name of John and Read (print) its password. I just …

---

## [SwiftUI SF Symbols Button in NavigationBar not working!](https://forums.kodeco.com/t/swiftui-sf-symbols-button-in-navigationbar-not-working/99811)

<div class="topic-metadata">

**Author:** [@t11s](https://forums.kodeco.com/u/t11s)\
**Replies:** 2\
**Last updated:** [April 2, 2020, 4:15am UTC](https://forums.kodeco.com/t/swiftui-sf-symbols-button-in-navigationbar-not-working/99811 "2020-04-02T04:15:58Z")

</div>

I’m trying to use a button that is a SF Symbol Image as the trailing navigation bar item, however, when clicking the button on a REAL IPHONE, it’s very very unreliable and I end up clicking it 30+ to only get 1 click reg…

---

## [Container Help Needed](https://forums.kodeco.com/t/container-help-needed/103500)

<div class="topic-metadata">

**Author:** [@joelcyyz](https://forums.kodeco.com/u/joelcyyz)\
**Replies:** 5\
**Last updated:** [April 1, 2020, 10:55pm UTC](https://forums.kodeco.com/t/container-help-needed/103500 "2020-04-01T22:55:54Z")

</div>

I am trying to learn the Contacts Framework and would very much appreciate someone explaining the following: What a container is; and What a container id is and how they work. Specifically, in the following code…

---

## [I need help with quering cloudkit](https://forums.kodeco.com/t/i-need-help-with-quering-cloudkit/101256)

<div class="topic-metadata">

**Author:** [@nixxe](https://forums.kodeco.com/u/nixxe)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 7:41am UTC](https://forums.kodeco.com/t/i-need-help-with-quering-cloudkit/101256 "2020-04-01T07:41:00Z")

</div>

I am running four queries on cloudkit, one after the other. Sometimes however, I only get 3 correct records. I am doing something wrong, but I don’t see it. All help is appreciated. // THis is the function which incl…

---

## [How to use Neo4j with Server Side Swift (Vapor/Fluent/Theo)](https://forums.kodeco.com/t/how-to-use-neo4j-with-server-side-swift-vapor-fluent-theo/94262)

<div class="topic-metadata">

**Author:** [@rob256](https://forums.kodeco.com/u/rob256)\
**Replies:** 8\
**Last updated:** [March 31, 2020, 1:27pm UTC](https://forums.kodeco.com/t/how-to-use-neo4j-with-server-side-swift-vapor-fluent-theo/94262 "2020-03-31T13:27:26Z")

</div>

I am interested in developing an application using the Neo4j graph database but I can’t find much documentation on how to leverage it with Vapor, Fluent, Theo etc… Does anyone no where I might find additional documentati…

---

## [Place multiple scn objects in touches began func](https://forums.kodeco.com/t/place-multiple-scn-objects-in-touches-began-func/97301)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [March 31, 2020, 1:43am UTC](https://forums.kodeco.com/t/place-multiple-scn-objects-in-touches-began-func/97301 "2020-03-31T01:43:28Z")

</div>

My swift code below uses func touchesBegan to place a scn object in the ARKit view. The problem is that it is only placing the object one time. I would like to create the code in a way that the user can select any area t…

---

## [Use fileOutput to save video to photo gallery](https://forums.kodeco.com/t/use-fileoutput-to-save-video-to-photo-gallery/96802)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 6:40pm UTC](https://forums.kodeco.com/t/use-fileoutput-to-save-video-to-photo-gallery/96802 "2020-03-30T18:40:26Z")

</div>

My swift code below goal is to record a 5 second video automatically and save it to the photo gallery when the code is built. In func fileOut I assume that is where you save the video to the photo gallery. I dont know wh…

---

## [Assign jpegData to Binary Core Data](https://forums.kodeco.com/t/assign-jpegdata-to-binary-core-data/96034)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 9:29am UTC](https://forums.kodeco.com/t/assign-jpegdata-to-binary-core-data/96034 "2020-03-29T09:29:32Z")

</div>

My swift code below is trying to save a image litteral to binary core data pic. A image litteral is a image located locally within the xcode project. I am getting a complie error at object.pic = newUser stating Cannot as…

---

## [Does your app need a privacy policy?](https://forums.kodeco.com/t/does-your-app-need-a-privacy-policy/93911)

<div class="topic-metadata">

**Author:** [@sebastian\_zimmeck](https://forums.kodeco.com/u/sebastian_zimmeck)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 8:08pm UTC](https://forums.kodeco.com/t/does-your-app-need-a-privacy-policy/93911 "2020-03-28T20:08:01Z")

</div>

Does your app need a privacy policy? Generate it directly from your app’s code and earn a $5 Amazon gift card. We are computer science researchers at Wesleyan University. We developed PrivacyFlash Pro, an automatic g…

---

## [How to use a nspredicate in textfieldidendediting](https://forums.kodeco.com/t/how-to-use-a-nspredicate-in-textfieldidendediting/94349)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 5:47pm UTC](https://forums.kodeco.com/t/how-to-use-a-nspredicate-in-textfieldidendediting/94349 "2020-03-27T17:47:40Z")

</div>

My swift code below uses textFieldDidEndEditing as a way to fetch a string saved into coredata. So if the user enters 1 the first entry that was saved into core data should abppear the label labelName. That is all that s…

---

## [Save multiple entries simultaneously to a single core data entity](https://forums.kodeco.com/t/save-multiple-entries-simultaneously-to-a-single-core-data-entity/94105)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 3:38pm UTC](https://forums.kodeco.com/t/save-multiple-entries-simultaneously-to-a-single-core-data-entity/94105 "2020-03-27T15:38:10Z")

</div>

My swift code below features a func that saves a string to core data. The problem it is only saving the UserDBObj.setValue closets to the end of the code not both. So it is only saving one a time. I want RDC and aa to be…

---

## [User location: "Blue dot" in MapKit Overlay Views tutorial](https://forums.kodeco.com/t/user-location-blue-dot-in-mapkit-overlay-views-tutorial/93489)

<div class="topic-metadata">

**Author:** [@bujna94](https://forums.kodeco.com/u/bujna94)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 11:57am UTC](https://forums.kodeco.com/t/user-location-blue-dot-in-mapkit-overlay-views-tutorial/93489 "2020-03-27T11:57:18Z")

</div>

Hi, I’m playing with this tutorial - https://www.raywenderlich.com/425-mapkit-tutorial-overlay-views Trying to figure out how to enable user location (blue dot) on it. “mapView.showsUserLocation = true” or “User locati…

---

## [SwiftUI or UIKit for a beginner?](https://forums.kodeco.com/t/swiftui-or-uikit-for-a-beginner/102325)

<div class="topic-metadata">

**Author:** [@kiwiandthemango](https://forums.kodeco.com/u/kiwiandthemango)\
**Replies:** 3\
**Last updated:** [March 26, 2020, 9:12pm UTC](https://forums.kodeco.com/t/swiftui-or-uikit-for-a-beginner/102325 "2020-03-26T21:12:24Z")

</div>

I’ve been attempting to learn iOS programming using UIKit. Now there is SwiftUI and I’m confused as to which one I should be focused on. Should I focus on UIKit? Or should I now switch to Swift UI? Please help. Thank you…

---

## [Draw circles on points on UIImage in Swift](https://forums.kodeco.com/t/draw-circles-on-points-on-uiimage-in-swift/95026)

<div class="topic-metadata">

**Author:** [@albertski](https://forums.kodeco.com/u/albertski)\
**Replies:** 1\
**Last updated:** [March 19, 2020, 3:06am UTC](https://forums.kodeco.com/t/draw-circles-on-points-on-uiimage-in-swift/95026 "2020-03-19T03:06:00Z")

</div>

In my controller, I look at images in an album and select 3 random points on one image. I would like to have a way to circle these 3 points on the image so the user knows which points I am referring to. I found this art…

---

## [Bullseye Slider Images](https://forums.kodeco.com/t/bullseye-slider-images/98840)

<div class="topic-metadata">

**Author:** [@shaky411](https://forums.kodeco.com/u/shaky411)\
**Replies:** 1\
**Last updated:** [March 19, 2020, 3:02am UTC](https://forums.kodeco.com/t/bullseye-slider-images/98840 "2020-03-19T03:02:08Z")

</div>

Hi, I am fairly new to coding and currently working through the iOS apprentice 8th edition. I have finished working through the Bullseye app and currently preparing my own UI. Could someone possibly point me in the di…

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

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