Proposal: Standardizing Naming Conventions for Extension Files Introduction As a consultant with extensive experience in software development, I have observed a wide range of naming methodologies employed across various projects and organizations. One area that often lacks standardization is the naming convention for extension files. The inconsistency in naming conventions can lead to confusion, reduced… Continue reading Proposal: Swift Extension Naming Convention
Category: swift
Finding unused Swift variables
Nifty little script (from Paul Taykalo) to find unused variables in swift code. PaulTaykalo/swift-scripts:
Milracks – AlbeBaubles
Check out our newest app on the App Store! 100% SwiftUI. Milracks – AlbeBaubles:
Too easy
A great example of how simple it is to construct a user interface in swiftUI
Extending UIColor
I use this so often I’ve added it to my global utilities class. Seriously considering taking all my extensions open source – since I use in my utilities class at all clients.
Ad block – AlbeBlocksAnnoyances
[UPDATED TO SUPPORT iOS] I quit using Facebook well over a year ago, yet anytime my browser takes me there it shows me logged in. Â I DO connect to FB on my oculus – no choice. Â I don’t know how, but it sure seems using the oculus somehow communicates with my Mac and logs me… Continue reading Ad block – AlbeBlocksAnnoyances
Fold code for functions you don’t mutate
Something I’ve found very helpful for my busy mind is to fold the code within functions I’ll rarely mutate. Folding/Unfolding code is as easy as tapping option-command-leftarrow to fold and option-command-rightarrow to unfold. So take the following code: Place the cursor anywhere within the function brackets and tap option-command-leftarrow, and this is what you have:… Continue reading Fold code for functions you don’t mutate
SwiftUI – NSAttributedString
While it’s true SwiftUI doesn’t currently provide easy access to NSAttributedString, you can concatenate string literals assigning attributes to each literal individually: Text(“Regular, “) + Text(“Italic, “).italic() + Text(“Bold, “).bold() + Text(“Blue”).foreground(.blue) Not pretty, but it works
ABControls updated for swift 5.
https://github.com/albebaubles/ABControls
ABControls
I wanted to learn more about @IBDesignable and @IBInspectable, so I thought why not throw together a quick Custom UI Control project – contains such things as dropdown boxes, list boxes, barcode scanner, creater. https://github.com/albebaubles/ABControls