Most voted "swift-playground" questions
Learning and Experimentation Environment for Apple’s Swift Programming Language. Use this tag for questions about the use of this environment, and not for doubts about the language.
Learn more…9 questions
Sort by count of
-
2
votes2
answers141
viewsHow to access a Cocoa Touch Framework module on Playground Swift
I created a Cocoa Touch Framework module on Xcode 6.0.1 with Class implemented in Swift and can matter in my View Controller and use it normally. The problem that I can’t use the same code in the…
-
1
votes2
answers80
viewshow to add white space between strings
Good, I have 2 fields: First and Last. in the output the 2 names come out pasted without space between them. this already thanks for the help.…
-
1
votes1
answer55
viewsHow to improve this method that compares three numbers?
Can help me improve this little code so it’s less extensive and clean? The code compares three numbers and shows which and the largest among them: @IBAction func comprar(_ sender: Any) { if…
-
1
votes1
answer282
viewsHow to discover and display repeated elements within an Array in Swift 4
I’m new to Stackoverflow and also new to Swift programming. Could someone more experienced let me know how I identify repeated elements within an array without using Extensions? Just using for and…
swift-playgroundasked 6 years, 4 months ago Ricardo Paganini 11 -
0
votes1
answer26
viewsUiresponder Signal
Good afternoon, I made a small app with Swift 2.3 Xcode 7.3.1. with the upgrade of Swift 3 and Xcode 8 started to show the error below. some help please.…
-
0
votes2
answers333
viewsHow to insert link on button
Good, how do I insert a link in a tried button below and it didn’t work. @IBAction func urlDisplay(_ sender: AnyObject) {…
-
0
votes2
answers66
viewsHow do I Alert message Uialertcontroller
Good, How do I make an Alert? the way I did it seems to be all right except for the function error. some help, since thank you.…
-
0
votes1
answer395
viewsSwift 4 http get and iterate the JSON response
Hello, I am learning Swift and am making a GET request via URL that returns me a JSON with this structure. { "data": { "response": […
-
0
votes1
answer403
viewsWhat is the difference between Codable and Decodable
I’m kind of torn between Codable and Decodable on Swift. In which situations I should use codable and decodable. I’m a beginner on Swift and the articles I found didn’t help me as much Thanks in…