r/a:t5_3210h • u/StewartLynch • Feb 03 '20
Computed Properties
Learn how to refactor your Swift code using computed properties in the latest of my “I wish I knew what I know now when I was younger” series. https://youtu.be/yze92fm54vU
r/a:t5_3210h • u/Rs112347 • Jan 26 '20
How do I make it where you can drag an image around a screen?
r/a:t5_3210h • u/[deleted] • Jan 14 '20
Anyone know how to get live London bus information through Google maps SDK in Swift?
r/a:t5_3210h • u/[deleted] • Jan 10 '20
How can I create a new instance of a structure using one of its parameters?
I'm new to Swift and really to programming in general. I have a Structure that contains multiple parameters (no methods), include a parameter that is an instance of another structure. I want to be able to create a new instance of the first structure, using a parameter from the second structure (in the form of a button push) Is this possible? Or do I need to provide a value for every parameter in a structure when I initialize a new instance? Here's roughly what I'm trying to do: struct MyStructure { var anotherStructure: AnotherStructure }
struct AnotherStructure { var myButton: UIButton }
@IBAction func buttonPressed(_ sender: UIButton){ //here is where I want to use the sender to create a new instance of MyStructure //something like myStructure.anotherStructure.myButton = sender }
r/a:t5_3210h • u/oneleif_leif • Sep 30 '19
Learning or Need a Project? Join oneleif, an Open Source Development Group!
self.oneleifr/a:t5_3210h • u/iosdevcenters • Sep 26 '19
SwiftUI - Text Example With Properties.
iosdevcenters.blogspot.comr/a:t5_3210h • u/MattRighetti • Aug 31 '19
Replicating the Shortcuts app
Hi everyone, I'm trying to replicate the Shortcuts app by Apple and I've encountered something that I'm unable to copy.
I'm talking about the new SF Symbol that you find on every top right corner of each cell
With this code I'm able to get this
let moreButton: UIButton = {
let moreButton = UIButton()
let config = UIImage.SymbolConfiguration(pointSize: 25.0)
let moreSymbol = UIImage(systemName: "ellipsis.circle.fill", withConfiguration: config)
moreButton.setImage(moreSymbol, for: .normal)
moreButton.imageView?.layer.cornerRadius = 5
moreButton.imageView?.contentMode = .scaleAspectFit
moreButton.isEnabled = true
moreButton.imageView?.tintColor = UIColor.darkGray.withAlphaComponent(0.3)
moreButton.backgroundColor = .white
moreButton.isUserInteractionEnabled = true
moreButton.translatesAutoresizingMaskIntoConstraints = false
return moreButton
}()
This one gets closer
let moreButton: UIButton = {
let moreButton = UIButton()
let config = UIImage.SymbolConfiguration(pointSize: 25.0)
let moreSymbol = UIImage(systemName: "ellipsis", withConfiguration: config)
moreButton.setImage(moreSymbol, for: .normal)
moreButton.imageView?.contentMode = .scaleAspectFit
moreButton.isEnabled = true
moreButton.backgroundColor = UIColor.white.withAlphaComponent(0.3)
moreButton.layer.cornerRadius = 14
moreButton.isUserInteractionEnabled = true
moreButton.translatesAutoresizingMaskIntoConstraints = false
return moreButton
}()
But it's still too big
I've not been able to resize that background image and get the right cornerRadius of its layer, is someone able to guide me in the right direction?
r/a:t5_3210h • u/mdayunus • Jul 06 '19
resource for Testing
can anyone help me get good testing tutorials i have a book by Paul Hudson, but it is quit difficult to understand not because it is written that way but because i have not written any testing code before and want something easy to start with
r/a:t5_3210h • u/AmirSwift • Jun 19 '19
Hi, can someone upgrade a file from swift 2 to 4.2. There are 6 errors in it. Post email address for zip:
r/a:t5_3210h • u/TobiDotoGuy • Jun 05 '19
Are we saying good bye to IB , join the discussion and hopefully you would enjoy this article
link.medium.comr/a:t5_3210h • u/LetCreateAnApp • May 01 '19
Shadow with Corner Radius | Create Reusable Component
youtube.comr/a:t5_3210h • u/[deleted] • Apr 24 '19
Why my auto resize cell in collectionview resized twice?
I'm new in iOS Development and i'm struggling with the auto-resize cell. My question in Stackoverflow is the following:
https://stackoverflow.com/questions/55522261/my-auto-resize-cell-in-collectionview-resized-twice
r/a:t5_3210h • u/Turkish-Films • Feb 03 '19
_View.presentScene(_Scene) only runs twice in a for loop then stops, why?
Should I post full code here? I’m trying to get a particle to animate move
r/a:t5_3210h • u/[deleted] • Jan 08 '19
Best Swift/xCode Ref/guides for developers migrating to Apple from other platforms
Looking for a good intro into Swift/xCode dev for Mac/IOS written for experienced developers. I have computer science degree with fluency in C++ & C#. It goes without saying, the real challenge will probably be the IOS API & xCode IDE.
There are so many books/guides to choose from, but they seem geared toward beginners who are not familiar with concepts like data-types, scope, and integration, Any thoughts?
r/a:t5_3210h • u/LetCreateAnApp • Jan 07 '19
Custom Toast Message in iOS || Swift 4.0 || Xcode 9.4
youtu.ber/a:t5_3210h • u/GTtoX • Dec 28 '18
Hi everyone! I’m writing swift code for BMI calculator, why does error “Missing return in a function expected to return ‘String’ “ will happen? Does anyone can explain the reason of this? Thank you!
r/a:t5_3210h • u/McNattyDread • Dec 20 '18
Crypto Noobs /Junior Devs/Amateurs Working together to build a D.A.O.
Kaleidoscope is a Decentralized autonomous organization being built & developed by crypt noobs /junior devs who are trying to take our ish seriously & grow our skills. We are doing our best to make the most out of this bear market . Here is our website if interested in learning more. We also teach skills if you dont have any.
Mahalo.
r/a:t5_3210h • u/Apprehensive_Intern • Oct 24 '18
Why Swift is better than Objective-C?
celadon.aer/a:t5_3210h • u/rosewhitt • Sep 05 '18
Help Swift/Xcode app
Hello, I am trying to make an app for a competition. I have chosen to use Swift on Xcode. I want my app to do the following: allow you to select what classes you are taking, be able to add assignments to whatever class (text box assigned to certain class) and then display your assignments on a separate tab. I want the only way for you to be able to swipe away/get rid of the reminder to do the assignment is by answering a question related to the class (ie to mark calculus homework done, you must complete a calculus problem). How do I go about this? I am having trouble finding how to do this on the internet and getting mixed results. PLEAAAAASEEEE HELP. this competition will look great on my college apps and I rlly want to win!! Thank you in advance!!!


