SwiftNuggets: ๐Ÿ— { var nuggets: [๐Ÿ’ก]  }'s Avatar

SwiftNuggets: ๐Ÿ— { var nuggets: [๐Ÿ’ก] }

@swiftnuggets.bsky.social

๐Ÿง‘โ€๐Ÿ’ป๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ปGet your daily dose of Swift and SwiftUI. Snacks ๐ŸŸ๐Ÿ•๐Ÿ‘€ to learn, grow and improve your knowledge.

199 Followers  |  438 Following  |  21 Posts  |  Joined: 20.11.2024  |  2.0693

Latest posts by swiftnuggets.bsky.social on Bluesky

Video thumbnail

You folks got me motivated, so here is an update! ๐Ÿ‘จโ€๐Ÿณ๐Ÿš€ You can decide now, if you wanna apply hashtags only to the first or to all posts. You can also select to split based on sentences than on words. (1/2)

#BuildInPublic #indiedev #swift #swiftui #iOS #dev #iosdev

10.03.2025 16:39 โ€” ๐Ÿ‘ 9    ๐Ÿ” 3    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1
Video thumbnail

Yesterday out of frustration with all the different character limits, I built an app to auto split longer posts for me so that I can focus on what I want to communicate and not on if it fits nicely into a post on a certain platform. (1/2)

#BuildInPublic #indiedev #swift #swiftui #iOS #dev #iosdev

10.03.2025 13:01 โ€” ๐Ÿ‘ 33    ๐Ÿ” 10    ๐Ÿ’ฌ 7    ๐Ÿ“Œ 2
Video thumbnail

Demo ๐Ÿ™Œ๐Ÿป

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

13.01.2025 20:30 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A screenshot of a code editor showing a SwiftUI view with a Linear gradient masked with the text โ€œHappy New Year ๐ŸŽ‰โ€. The gradient is animated from the leading to the trailing edge, looping through the colors cyan, indigo, purple, mint and teal.

A screenshot of a code editor showing a SwiftUI view with a Linear gradient masked with the text โ€œHappy New Year ๐ŸŽ‰โ€. The gradient is animated from the leading to the trailing edge, looping through the colors cyan, indigo, purple, mint and teal.

Swift Nugget 11 ๐ŸŒถ๏ธ: Happy belated New Year to all of you ๐Ÿ™Œ๐Ÿป Iโ€™m finally back after a complete break of everything development related with some LinearGradient SwiftUI magic ๐Ÿช„โœจ

Try it out: github.com/n0rthk1n9/Sw...

Demo video down there ๐Ÿ‘‡

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

13.01.2025 20:30 โ€” ๐Ÿ‘ 6    ๐Ÿ” 1    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1
A screenshot of a code editor showing off the usage of .fontDesign(.rounded) at the root of the app to make all texts appear in SF Pro rounded font in SwiftUI

A screenshot of a code editor showing off the usage of .fontDesign(.rounded) at the root of the app to make all texts appear in SF Pro rounded font in SwiftUI

A screenshot of a code editor with a SwiftUI text field stating โ€žAutomatically SF Pro roundedโ€œ

A screenshot of a code editor with a SwiftUI text field stating โ€žAutomatically SF Pro roundedโ€œ

A screenshot of an iPhone simulator with a text reading โ€žAutomatically SF Pro roundedโ€œ

A screenshot of an iPhone simulator with a text reading โ€žAutomatically SF Pro roundedโ€œ

Swift Nugget 10 ๐Ÿฅ™: The .fontDesign view modifier helps all us SF Pro rounded lovers immensely ๐Ÿ˜ Set it to the main view of your app and all texts are in rounded design ๐Ÿ’ก

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

07.12.2024 14:46 โ€” ๐Ÿ‘ 11    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
How to make a TextField or TextEditor have default focus - a free SwiftUI by Example tutorial Learn Swift coding for iOS with these free tutorials

Thanks to @twostraws.bsky.social for the inspiration! Go check out his article about it here: www.hackingwithswift.com/quick-start/...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

05.12.2024 17:10 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A screenshot of a code editor showcasing how to set the focus state of a SwiftUI TextField.

A screenshot of a code editor showcasing how to set the focus state of a SwiftUI TextField.

A screenshot of an iPhone simulator showing a form with two TextFields, the focus is on the first field and the keyboard is open.

A screenshot of an iPhone simulator showing a form with two TextFields, the focus is on the first field and the keyboard is open.

Swift Nugget 9 ๐Ÿ: With this custom enum, you can track and set the focus states of your TextField. You can use it to guide your user which TextField to fill out and save him a tap๐Ÿ’ก

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

05.12.2024 17:10 โ€” ๐Ÿ‘ 9    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1

Haha using it in the right situation is the key, I agree ๐Ÿ˜…

29.11.2024 15:45 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
โ€ŽApp Exhibit: Your App Showcase โ€ŽApp Exhibit: Showcase Your Apps Effortlessly Are you an indie developer or tech enthusiast who frequently attends conferences, meetups, or networking events? App Exhibit is the perfect companion for...

And to celebrate 1 week of Swift Nuggets ๐Ÿ— here is a promo code for getting Pro Lifetime for free in @appexhibit.bsky.social ๐Ÿ™Œ๐Ÿป

7HMHWLA6A9JM

Get it here: apps.apple.com/app/apple-st...

#indieappsales #buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev #RCGrowthChallenge

28.11.2024 21:18 โ€” ๐Ÿ‘ 4    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A screenshot of a code editor showing a swift file with an example usage of the autocorrectionDisabled view modifier on a SwiftUI TextField.

A screenshot of a code editor showing a swift file with an example usage of the autocorrectionDisabled view modifier on a SwiftUI TextField.

A screenshot of an iPhone simulator showing list of 8 Swift Nuggets to represent the second week of Swift Nuggets starting today

A screenshot of an iPhone simulator showing list of 8 Swift Nuggets to represent the second week of Swift Nuggets starting today

A screenshot of an iPhone simulator showing a form with 2 SwiftUI TextFields to to show off the usage of .autocorrectionDisabled

A screenshot of an iPhone simulator showing a form with 2 SwiftUI TextFields to to show off the usage of .autocorrectionDisabled

Swift Nugget 8 ๐Ÿ“: Use .autocorrectionDisabled to turn off auto correct for a TextField. This might be helpful for fields where the user just quickly wants to take a note ๐Ÿ’ก

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

28.11.2024 21:14 โ€” ๐Ÿ‘ 14    ๐Ÿ” 2    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Post image

Inspired by all the #IndieSky posts weโ€˜ll also participate ๐Ÿ™Œ๐Ÿป In posts on @swiftnuggets.bsky.social and here will be promo codes โ˜บ๏ธ๐Ÿ™Œ๐Ÿป To test the app first, go try it here: apps.apple.com/app/apple-st...

#indieappsales #buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev #RCGrowthChallenge

28.11.2024 20:45 โ€” ๐Ÿ‘ 7    ๐Ÿ” 3    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A screenshot of a code editor showing a swift file with an example usage of the textInputAutocapitalization view modifier on a SwiftUI TextField. It includes 4 fields for the 4 options .words, .sentences, .characters and .never

A screenshot of a code editor showing a swift file with an example usage of the textInputAutocapitalization view modifier on a SwiftUI TextField. It includes 4 fields for the 4 options .words, .sentences, .characters and .never

A screenshot of an iPhone simulator showing a form with 4 SwiftUI TextFields to represent the 4 different options of the view modifier textInputAutocapitalization.

A screenshot of an iPhone simulator showing a form with 4 SwiftUI TextFields to represent the 4 different options of the view modifier textInputAutocapitalization.

Swift Nugget 7 ๐Ÿ•: Use .textInputAutocapitalization to control the automatic capitalization of text. Make sure to set this to .never in fields where the user has to type custom words like hashtags ๐Ÿ’ก

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

27.11.2024 20:10 โ€” ๐Ÿ‘ 13    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1
Post image

Daily Pokรฉmon โœ๏ธ

#pokรฉmon #sandyghast #procreate #iPad #digitaldrawing

27.11.2024 17:59 โ€” ๐Ÿ‘ 6    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A screenshot of a code editor showing how to add sections with custom section headers in a SwiftUI list

A screenshot of a code editor showing how to add sections with custom section headers in a SwiftUI list

A screenshot of an iPhone Simulator showing a list with a custom section header

A screenshot of an iPhone Simulator showing a list with a custom section header

Swift Nugget 6 ๐Ÿ…: To customize lists even further, you can add sections with custom section headers ๐ŸŽจ๐Ÿ–Œ๏ธ Do you have suggestions about what you want to see me doing here? ๐Ÿ’ก

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

26.11.2024 20:51 โ€” ๐Ÿ‘ 11    ๐Ÿ” 3    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Thank you for this tip, Iโ€™ll try it out! ๐Ÿ™Œ๐Ÿป

26.11.2024 07:22 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A screenshot of code of a SwiftUI view with a list that has a custom stile achieved by the .listRowSeperstor and .listRowBackground view modifiers

A screenshot of code of a SwiftUI view with a list that has a custom stile achieved by the .listRowSeperstor and .listRowBackground view modifiers

A screenshot of an iOS simulator running an app with a customized list of elements. The list elements feature a mint colored title and a mint colored border with rounded corners for each element.

A screenshot of an iOS simulator running an app with a customized list of elements. The list elements feature a mint colored title and a mint colored border with rounded corners for each element.

A screenshot of a code editor with a SwiftUI view representing the content of a list row with a title and an emoji in a horizontal stack.

A screenshot of a code editor with a SwiftUI view representing the content of a list row with a title and an emoji in a horizontal stack.

A screenshot of an iOS simulator with a text and an emoji next to it.

A screenshot of an iOS simulator with a text and an emoji next to it.

Swift Nugget 5 ๐Ÿ—: Two view modifiers for the price of one today ๐Ÿ’ธ๐Ÿคช .listRowBackground and .listRowSeparator let you customize a list view to your liking. Standard list view behavior + unique style = โค๏ธ

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

25.11.2024 22:01 โ€” ๐Ÿ‘ 8    ๐Ÿ” 3    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

all โ€žillegalโ€œ input gets automatically stripped and only the valid input stays. Itโ€™s still confusing that you can even input wrong stuff in the first place in my opinion, but at least you get correct values in the end. (4/4)

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

24.11.2024 19:27 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I realized, that I was not receiving the non numeric characters in the .onRecieve modifier, so I couldnโ€™t strip them out. But that also made me aware, that once the field gets out of focus by for example closing the keyboard, (3/4)

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

24.11.2024 19:27 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Numeric TextFields in SwiftUI
YouTube video by Stewart Lynch Numeric TextFields in SwiftUI

A video by the amazing @stewartlynch.bsky.social made me aware of this. Iโ€™m talking about this video: www.youtube.com/watch?v=dd07... When I tried to come up with my own version of his modifier, tailored to a TextField with a format, (2/4)

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

24.11.2024 19:27 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

When you try to type characters into the TextField with your keyboard in the simulator, youโ€˜ll realize, that this characters are still shown and it seems as if you can type unintended content into the TextField. But it isnโ€™t the case! (1/4)

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

24.11.2024 19:27 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Screenshot of a code editor with a showcase of the Initializer that includes value and format for a SwiftUI TextField to format the input of the TextField as a currency

Screenshot of a code editor with a showcase of the Initializer that includes value and format for a SwiftUI TextField to format the input of the TextField as a currency

Screenshot of an iOS simulator running an app with an input field that supports currency formatting. The decimal keypad is open and the value in the TextField is 4,20 โ‚ฌ ๐Ÿคช

Screenshot of an iOS simulator running an app with an input field that supports currency formatting. The decimal keypad is open and the value in the TextField is 4,20 โ‚ฌ ๐Ÿคช

Swift Nugget 4 ๐Ÿ—: With the initializer of a TextField that includes value and format you get a nicely formatted currency input ๐Ÿ’กI even discovered something interesting Iโ€™ll provide down in the ๐Ÿงต

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

24.11.2024 19:27 โ€” ๐Ÿ‘ 8    ๐Ÿ” 2    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1
A screenshot of a code editor that shows a form with TextFields in SwiftUI and the usage of the .textContentType modifier.

A screenshot of a code editor that shows a form with TextFields in SwiftUI and the usage of the .textContentType modifier.

An iPhone simulator that shows a SwiftUI app with a form with multiple TextFields one is focused and above the keyboard you see the auto fill hint for the city of an address. It says โ€žNaplesโ€œ

An iPhone simulator that shows a SwiftUI app with a form with multiple TextFields one is focused and above the keyboard you see the auto fill hint for the city of an address. It says โ€žNaplesโ€œ

Swift Nugget 3 ๐Ÿ—: The .textContentType modifier controls which autofill hint a user gets displayed above the keyboard of a SwiftUI TextField๐Ÿ’กAdd it to fill out address data for example at checkout โœ…

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

23.11.2024 18:15 โ€” ๐Ÿ‘ 27    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1
Screenshot of a code editor, that shows the usage of the .keyboardType modifier for a SwiftUI TextField with all available options.

Screenshot of a code editor, that shows the usage of the .keyboardType modifier for a SwiftUI TextField with all available options.

Screenshot of an iPhone simulator that shows multiple SwiftUI TextFields with different .keyboardType modifiers applied. The keyboard for the .numberPad option of .keyboardType is open.

Screenshot of an iPhone simulator that shows multiple SwiftUI TextFields with different .keyboardType modifiers applied. The keyboard for the .numberPad option of .keyboardType is open.

Swift Nugget 2 ๐Ÿ—: With the .keyboardType modifier you can tweak the appearance of the keyboard based on the content of a SwiftUI TextField.๐Ÿ’ก.twitter should be maybe replaced soonishโ€ฆ ๐Ÿคช ๐Ÿฆ‹

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

22.11.2024 18:05 โ€” ๐Ÿ‘ 12    ๐Ÿ” 3    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Create with Swift - Anything is possible. We are the coders and designers of imaginary institute and want to empower anyone to create and share their ingenuity through code. #WeLoveSwift

Welcome to Bluesky @createwithswift.bsky.social ๐Ÿ˜๐Ÿ™Œ๐Ÿป If you want to learn awesome stuff about Swift, SwiftUI and everything related to native iOS development go check out www.createwithswift.com All of the authors are highly skilled, motivated and nice people and I already learned a lot from them ๐Ÿ’ก

22.11.2024 13:25 โ€” ๐Ÿ‘ 14    ๐Ÿ” 4    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
A code editor window with Swift code showcasing the .submitLabel modifier, that is used for changing the button in the bottom right of the keyboard, when using a TextField in SwiftUI

A code editor window with Swift code showcasing the .submitLabel modifier, that is used for changing the button in the bottom right of the keyboard, when using a TextField in SwiftUI

Swift Nugget 1 ๐Ÿ—: With the .submitLabel modifier you can change the submit button of the keyboard in a SwiftUI TextField to a variety of different options ๐Ÿ’ก

Try it out: github.com/n0rthk1n9/Sw...

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

21.11.2024 20:23 โ€” ๐Ÿ‘ 22    ๐Ÿ” 3    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Always wanted to know what this viewModifier is called, that can change the return key on the keyboard? Welcome to SwiftNuggets and thatโ€™s only one thing youโ€™ll learn here ๐Ÿ™Œ๐Ÿปโ˜บ๏ธ Happy to start giving back to the community.

#buildinpublic #indiedev #swift #swiftui #iOS #dev #iosdev

20.11.2024 23:04 โ€” ๐Ÿ‘ 5    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1

@swiftnuggets is following 20 prominent accounts