Swift Amman 🇯🇴
@swiftamman
iOS Developers Community based in Amman, Jordan.
You might like
Retweet it .. if you love “Swift” language 🧡.
#ios_tip_for_today Have you ever wondered what is the difference between UITextView / UITextField ? #simple digram shows where and when you better use each of them 😉. #ios #xcode
This is the XOR result of the byte representation of two strings (password and cipher). gist.github.com/mehmetfarhan/8…
In the Foundation framework we have an NSCache class which acts as a Dictionary but also encapsulates a logic of purging its content after reaching the max elements. Here’s the example of using NSCache to construct in-memory image cache for your application.
Only few can guess right ;) Do you know what will happed if you tried to present an alert with two cancel buttons? Tell me your guess before trying it on xcode.
Learn how you can use the incredibly powerful image manipulation frameworks on iOS to use image depth maps with only a few lines of code in our newly updated Image Depth Maps Tutorial for iOS: Getting Started! bit.ly/2V8XRpB
💡 #SwiftTip: Using Result<T, Never> to represent impossible code flow Set Result.Failure type to Never in case error is impossible or can be replaced with a value. The compiler is smart enough and does not require us to handle the failure case in the switch statement.
New Basics article about a heavily requested topic: Protocols! 😀 Using protocols to reduce code duplication, creating protocol-based abstractions, and extending the standard library’s protocols — all with many examples and an attached playground 👍 swiftbysundell.com/basics/protoco…
Specification pattern to handle boolean logic, this example to handle single input have a two regex pattern for a phone number or email address. Credit: @almasri_ahmed
I highly recommend the following book. This is in regards to penetration testing of the applications & the phone but you can use the same knowledge to write secure code for your applications. wiley.com/en-ae/The+Mobi…
A very nice and clean approach to validate user inputs in Swift. #iOS #Swift #cleancode #validate
United States Trends
- 1. #UFC322 136K posts
- 2. Islam 240K posts
- 3. Valentina 15.2K posts
- 4. Morales 35.4K posts
- 5. Prates 34K posts
- 6. Sark 5,986 posts
- 7. Kirby 18.8K posts
- 8. Georgia 85.9K posts
- 9. Zhang 26.7K posts
- 10. #GoDawgs 9,639 posts
- 11. Leon 74.9K posts
- 12. Ole Miss 12K posts
- 13. Arch 22.5K posts
- 14. Sean Brady 6,690 posts
- 15. Dillon Danis 9,228 posts
- 16. Ahmad Hardy 1,258 posts
- 17. Bo Nickal 7,003 posts
- 18. Texas 201K posts
- 19. Bama 22.6K posts
- 20. Gunner Stockton 2,209 posts
Something went wrong.
Something went wrong.