Flo writes Code Profile Banner
Flo writes Code Profile
Flo writes Code

@FloWritesCode

8,971
Followers
632
Following
974
Media
6,673
Statuses

Making @LaunchBuddy_App : Teaching SwiftUI & More:

Germany
Joined April 2021
Don't wanna be here? Send us removal request.
Pinned Tweet
@FloWritesCode
Flo writes Code
1 year
It doesn't get much easier & straight-forward to manage your apps & app ideas than with @LaunchBuddy_App . You can get it for free on macOS and iOS:
Tweet media one
3
5
59
@FloWritesCode
Flo writes Code
2 years
Getting ready for WWDC!
Tweet media one
17
129
1K
@FloWritesCode
Flo writes Code
1 year
Tweet media one
13
65
645
@FloWritesCode
Flo writes Code
1 year
SwiftUI got another super nice API in iOS 17: Scroll Transitions!
13
33
526
@FloWritesCode
Flo writes Code
1 year
A very basic example of MVVM in iOS 17. @.Observable "publishes" all variables of the ViewModel @.Bindable allows the View to create Bindings to them
Tweet media one
15
58
512
@FloWritesCode
Flo writes Code
1 year
This is all that's needed to get started with SwiftData. Yes, everything can fit on the screen. No, no more model definition files. No more PersistenceController. I have yet to figure out CloudKit & App Groups.
Tweet media one
23
60
476
@FloWritesCode
Flo writes Code
1 year
New Indie Dev Stack: UI: SwiftUI Persistence: SwiftData Animated Icons: SF Symbols Paywall: StoreKit Every WWDC it becomes easier & faster to make apps. This year, we got Paywalls, Persistence & Animations.
9
41
425
@FloWritesCode
Flo writes Code
1 year
Some more tidbits I picked up during the keynote: - SwiftUI Custom Animations - Animated SF Symbols - Improved MapKit with SwiftUI - Native Swift Predicates - Time in Daylight API - SwiftData - StoreKit Views - Custom Workout API - Inline predictive text API - Embedded
14
50
385
@FloWritesCode
Flo writes Code
3 years
Want a more declarative syntax for empty Arrays? You can use this little snippet:
Tweet media one
21
26
371
@FloWritesCode
Flo writes Code
2 years
SwiftUI developers when finding out how it works under the hood.
Tweet media one
9
49
357
@FloWritesCode
Flo writes Code
1 year
SwiftUI is the best thing that could have happened to iOS development.
19
11
353
@FloWritesCode
Flo writes Code
3 years
It's time for another design remake! This time I remade this Calendar in about 20 minutes, as always using nothing but #SwiftUI . Code on my Github: Note: The Timeline at the bottom is hardcoded, making it dynamic could be an interesting challenge!
Tweet media one
16
22
305
@FloWritesCode
Flo writes Code
2 years
Credit: u/sourcelocation in r/swift on Reddit.
Tweet media one
12
20
270
@FloWritesCode
Flo writes Code
2 years
I don't do MVVM anymore. I started to prefer leaving out ViewModels in my newer apps. It reduces complexity and makes development faster. More:
Tweet media one
36
20
259
@FloWritesCode
Flo writes Code
3 years
Programmatic scrolling is actually super easy in #SwiftUI ! I made a video about this a few months ago, but these are the only 3 things you need to do!
Tweet media one
5
17
220
@FloWritesCode
Flo writes Code
1 year
Building custom scrolling animations like this one takes less than 5 minutes in iOS 17 & SwiftUI. πŸ“Ή
10
21
217
@FloWritesCode
Flo writes Code
2 years
The best macOS feature in a long time.
Tweet media one
15
14
216
@FloWritesCode
Flo writes Code
4 months
Create Hero Transitions with two lines of code in iOS 18
Tweet media one
10
13
221
@FloWritesCode
Flo writes Code
2 years
SwiftUI now also has a native PhotosPicker! You can place this View in your app's toolbar to let the user select photos πŸ“Έ
Tweet media one
6
18
207
@FloWritesCode
Flo writes Code
2 years
Reminder to include a rating request in your iOS app. UIKit: SKStoreReviewController SwiftUI: @.Environment(\.requestReview)
15
5
189
@FloWritesCode
Flo writes Code
1 year
And here's the video tutorial on how to set everything up. πŸ“Ή Under 8 minutes for CRUD in SwiftData. This is insane.
Tweet media one
@FloWritesCode
Flo writes Code
1 year
This is all that's needed to get started with SwiftData. Yes, everything can fit on the screen. No, no more model definition files. No more PersistenceController. I have yet to figure out CloudKit & App Groups.
Tweet media one
23
60
476
4
27
192
@FloWritesCode
Flo writes Code
2 years
Here's a nifty little helper that makes working with CoreData much nicer in SwiftUI. 1. Create an overload on ?? for Bindings of Optional<T> 2. Directly bind to your ObservedObject's optional attributes, e.g. in a TextField 3. Don't forget to save the context after changes
Tweet media one
7
18
185
@FloWritesCode
Flo writes Code
2 years
A quick reference for the default SwiftUI Fonts. The number represents the font size in points for the default scale on an iPhone. Thinking of making a menu bar app just with this in it, as I always mix up the order of these fonts.
Tweet media one
9
24
177
@FloWritesCode
Flo writes Code
3 years
This looks very interesting!
Tweet media one
10
25
174
@FloWritesCode
Flo writes Code
2 years
I just posted a brand new video about Live Activities. It's actually super easy to build these, learn how in the video. Watch now:
Tweet media one
2
15
166
@FloWritesCode
Flo writes Code
2 years
This is all it takes to automatically generate custom & localized App Store Screenshots with Blacksmith. Get for free: Watch tutorial:
Tweet media one
10
17
167
@FloWritesCode
Flo writes Code
11 months
I don’t usually talk about personal stuff on here, but this just gets me too excited: I took my black belt test in TaeKwonDo yesterday πŸ₯‹πŸ₯³
Tweet media one
20
0
165
@FloWritesCode
Flo writes Code
1 year
I just hit 6,000 on Twitter and 4,000 on Youtube - thank you WWDC 🫢 If you're interested in practical examples for everything new in WWDC23, head over to and subscribe. All my content is free and I try my best to make it high-quality.
Tweet media one
13
8
156
@FloWritesCode
Flo writes Code
2 years
Do you know this feeling? I certainly do, so I built LaunchBuddy (), which helps me keep focus.
Tweet media one
15
17
158
@FloWritesCode
Flo writes Code
3 years
πŸš€ Stay focused while working on multiple projects, plan out your releases and schedules tasks with LaunchBuddy. πŸ†“ Get it for free: LaunchBuddy is out now! Retweets & Reviews are highly appreciated. ❀️
Tweet media one
Tweet media two
Tweet media three
Tweet media four
15
43
154
@FloWritesCode
Flo writes Code
2 years
Did Xcode autocomplete really get this crazy good?!
Tweet media one
11
8
152
@FloWritesCode
Flo writes Code
2 years
One year on the App Store as a student/indie developer: - 12 (small-medium-large) apps - 227k impressions - 4.3k downloads - about 4k sessions - $265 raw profit - $180 spent (icons & developer account) (excludes LaunchBuddy)
20
3
146
@FloWritesCode
Flo writes Code
3 years
πŸ₯³ I'm giving away 5 promo codes for Forge as a thank you for 1k followers! How to enter: Like or Retweet Forge is a marketing image generator that I made for indie developers. It lets you create ASC/social media images for your app in just a few seconds.
Tweet media one
10
34
144
@FloWritesCode
Flo writes Code
2 years
SwiftUI in iOS 16 now has a way to autofocus! Learn more:
Tweet media one
4
14
142
@FloWritesCode
Flo writes Code
1 year
Develop for visionOS - Windows (SwiftUI Scene) - Volumes (SwiftUI Scene) - Spaces (contains windows, volumes & 3d objects) - iOS & iPadOS apps are displayed as windows - SwiftUI & UIKit for UI - RealityKit for 3D content - ARKit to understand 3D space around the user - Add
0
28
140
@FloWritesCode
Flo writes Code
9 months
visionOS app icons consist of 3 image files: - background - layer 1 (base) - layer 2 (object) The system handles animations etc. automatically, so make sure your icons support this setup.
Tweet media one
7
17
137
@FloWritesCode
Flo writes Code
2 years
How are you handling dependency injection in your iOS projects? Personally I just added @twannl 's & @v_pradeilles 's solution to another project. Find my version of it on Github:
Tweet media one
12
15
137
@FloWritesCode
Flo writes Code
3 years
Thanks to Swift 5.5 you now don't always need a DateFormatter. Instead you can use the new .formatted() modifier on a Date directly: `date.formatted(date: .long, time: .omitted)`
3
16
135
@FloWritesCode
Flo writes Code
1 year
Can you turn your SwiftUI Views into Image Files? Yes you can, with this iOS 16 API.
9
9
133
@FloWritesCode
Flo writes Code
2 years
Add `ITSAppUsesNonExemptEncryption` to your Info.plist and set it to `No` to avoid this annoying popup.
Tweet media one
5
10
133
@FloWritesCode
Flo writes Code
3 years
Want a fancier navigationTitle in #SwiftUI ? You can add a ToolbarItem with a placement of .navigationBarLeading or .principal instead, which lets you fully customise what's shown.
Tweet media one
7
14
129
@FloWritesCode
Flo writes Code
2 years
SwiftUI Colors now have a subtle gradient built right into them! This looks SUPER good, for sure a no-brainer in every single app for me.
Tweet media one
1
13
128
@FloWritesCode
Flo writes Code
3 years
As I already talked about I am working on a new developer app at the moment. It's called LaunchBuddy and helps you structure your releases and launches across all of your apps/projects. I will use this as an ongoing thread talking about updates & ideas.
Tweet media one
17
5
129
@FloWritesCode
Flo writes Code
3 years
Did you know that you can change the order of Views in a ZStack using `.zIndex()`? I will be using this for a future Forge update, where you can move elements to the back and front as you'd like.
Tweet media one
8
12
120
@FloWritesCode
Flo writes Code
1 year
Let's kick things off by building a full app with SwiftData and tons of the new iOS 17 APIs. πŸ“Ή Today's lesson 1 covers SwiftData, including Relationships and unique attributes & NavigationStack.
Tweet media one
5
13
120
@FloWritesCode
Flo writes Code
2 years
Did you know that you can increase the section header size in SwiftUI.Form?
Tweet media one
10
10
119
@FloWritesCode
Flo writes Code
3 years
Want to use Swift Concurrency to create a repeatable timer? Here you go!
Tweet media one
5
8
119
@FloWritesCode
Flo writes Code
2 years
I'm thinking about livestreaming while I build small SwiftUI apps, is there any interest?
15
1
114
@FloWritesCode
Flo writes Code
5 months
SwiftUI might be my favorite thing ever.
15
5
113
@FloWritesCode
Flo writes Code
1 year
@SebJVidal Why did you have to post this?...
1
0
109
@FloWritesCode
Flo writes Code
2 years
"The best way to build an app is with Swift and SwiftUI". There you have it, Apple said it themselves.
2
21
110
@FloWritesCode
Flo writes Code
3 years
Want to change the mouse cursor when hovering over a SwiftUI View in macOS? Just replace `pointingHand` with the type of cursor that you need.
Tweet media one
4
9
111
@FloWritesCode
Flo writes Code
2 years
SwiftUI now has .italic(), .monospaced(), .strikethrough(), .underline(), .tracking() and .kerning() modifiers!
0
9
105
@FloWritesCode
Flo writes Code
2 years
Convert SwiftUI Views to an image using the new `ImageRenderer`!
Tweet media one
11
9
108
@FloWritesCode
Flo writes Code
2 years
Colors now also have INNER SHADOWS! This allows you to e.g. add a glow effect like in this example.
Tweet media one
2
10
106
@FloWritesCode
Flo writes Code
5 months
You're probably using GeometryReady to scale a View based on its parent. Here's an alternative for iOS 17:
Tweet media one
5
15
108
@FloWritesCode
Flo writes Code
1 year
Is this option new?
Tweet media one
6
3
103
@FloWritesCode
Flo writes Code
1 year
I don't use MVVM in my personal projects anymore. But last time I mentioned this, I got very mixed comments. So I made another video clearing up the topic with code examples & explanations regarding CoreData with & without MVVM. Watch here:
Tweet media one
4
18
101
@FloWritesCode
Flo writes Code
1 year
🍎 Vision Pro - VisionOS - Controlled with Voice & Hands (no controller needed) - Optionally supports mouse & keyboard - Windowed mode & experience mode - 3D Avatar for meetings - SwiftUI, RealityKit & ARKit - Reality Composer Pro (Unity-like 3D scene editor) - Popular Unity
Tweet media one
8
12
95
@FloWritesCode
Flo writes Code
1 year
Add CloudKit & App Group support to SwiftData: - Add Entitlements - Set CloudKit/ App Group Identifier - Create custom ModelConfiguration
Tweet media one
8
7
96
@FloWritesCode
Flo writes Code
2 years
Why not both?
Tweet media one
13
10
95
@FloWritesCode
Flo writes Code
2 years
Last year, I built a solution to creating 100% customisable & localisable App Store Screenshots with SwiftUI. The process is completely automated - no more Simulator Screenshots and Figma/Sketch needed! Just make your designs in SwiftUI. Launching soon!
17
2
94
@FloWritesCode
Flo writes Code
2 years
`NavigationStack + NavigationPath + .navigationDestination` is the best that SwiftUI navigation could have become. Love it.
Tweet media one
4
6
94
@FloWritesCode
Flo writes Code
4 months
LaunchBuddy is πŸ†“ TODAY! Get for free (lifetime!) for today's WWDC start. ⭐⭐⭐⭐⭐ Please take a second to leave a rating as a thank you ❀️
Tweet media one
12
22
94
@FloWritesCode
Flo writes Code
2 years
Adding charts to your app is now easier than ever with the brand new `Swift Charts` framework for iOS 16!
Tweet media one
1
9
92
@FloWritesCode
Flo writes Code
1 year
I frequently get asked how you can create "half height" sheets with SwiftUI. Here's the solution: An API introduced at WWDC22, available in iOS 16 and up.
4
8
92
@FloWritesCode
Flo writes Code
3 years
Today exactly one year ago I finally published my first app after getting back into iOS development in late 2020. Time flies 🐣
3
3
91
@FloWritesCode
Flo writes Code
1 year
What a nice place :)
Tweet media one
7
4
85
@FloWritesCode
Flo writes Code
2 years
I am beyond excited to announce that I will hold my first conference talk at @swift_leeds this fall πŸ₯³
@swift_leeds
SwiftLeeds
2 years
Are you ready for this? 🀩 We are SUPER excited to announce another speaker to our lineup this year. Please welcome @FloWritesCode to SwiftLeeds this year. Flo is very active online supporting and helping others with his regular #SwiftUI tips πŸ”₯ #SwiftLeeds #iOS #Conference
Tweet media one
1
3
16
18
5
87
@FloWritesCode
Flo writes Code
2 years
I'm currently running TikTok, Youtube & Reddit Ads for LaunchBuddy. (Instagram soon as well) This is not only for my own education, but also to make a video on the topic so other indie developers can benefit from it. Obligatory LaunchBuddy link:
9
1
86
@FloWritesCode
Flo writes Code
1 year
TIL: You can add `.animation()` to Bindings in SwiftUI to enable implicit animations when the value changes. `Toggle("My Label", isOn: $myBoolean.animation())` Found in this quick HWS article:
4
9
85
@FloWritesCode
Flo writes Code
2 years
Goal achieved βœ…
Tweet media one
@FloWritesCode
Flo writes Code
2 years
And with that my monetization progress comes to an end. I mainly shared it to get motivated and stay accountable. Thanks for helping me with that :D
Tweet media one
11
0
28
10
0
84
@FloWritesCode
Flo writes Code
2 years
Give your favorite apps a nice rating & review! It helps them rank higher and most importantly can make the developer's day!
3
25
84
@FloWritesCode
Flo writes Code
2 years
A quick reference to programmatic navigation in iOS 16 & SwiftUI. - Setup enum for navigation states - Add value to NavigationLinks - Empty array to pop to root - Add arbitrary enum cases to programmatically navigate (multiple layers) Intro Video:
Tweet media one
1
7
82
@FloWritesCode
Flo writes Code
8 months
There's still time to build an app for visionOS! πŸ‘“ Let me get you started with this playlist of visionOS tutorials:
Tweet media one
2
12
82
@FloWritesCode
Flo writes Code
2 years
πŸš€LaunchBuddy is now available for iOS! Get it for free: LaunchBuddy makes it easy to stay on track with your app releases & tasks. A new macOS version is also available (and needed to enable iCloud Sync).
Tweet media one
5
4
82
@FloWritesCode
Flo writes Code
1 month
I often build apps that have state depending on the current day. (like SickDays, where I check if the user has already logged their health today) This little ViewModifier refreshes a View's body when the app becomes active & it's a new day.
Tweet media one
6
2
81
@FloWritesCode
Flo writes Code
1 year
Also made a quick video about this example: This surely makes things easier. Next we'll have to look into MVVM + SwiftData - does it make more sense than it did with CoreData? I have a feeling that SwiftData wasn't made with MVVM in mind, but we'll see.
Tweet media one
@FloWritesCode
Flo writes Code
1 year
A very basic example of MVVM in iOS 17. @.Observable "publishes" all variables of the ViewModel @.Bindable allows the View to create Bindings to them
Tweet media one
15
58
512
2
8
78
@FloWritesCode
Flo writes Code
1 year
Hitting a 1/10 of Youtube is a nice feeling, especially after some rather unsuccessful videos in the past weeks. Learn about alternatives to `Spacer()` here:
Tweet media one
10
4
77
@FloWritesCode
Flo writes Code
1 year
Coding with a view on our way to @swift_leeds
Tweet media one
4
2
76
@FloWritesCode
Flo writes Code
1 year
This is how easy it is to create shortcuts for iOS 17. `\.$appTitle` is just a parameter of `CreateAppIdeaIntent` I just love the AppIntents framework...
Tweet media one
4
5
75
@FloWritesCode
Flo writes Code
1 year
Two days ago I didn't pay attention to my rings... and broke a streak of almost 600 days on my Apple Watch. By 3 kcal.
15
0
73
@FloWritesCode
Flo writes Code
3 years
Want to check if two `Date` objects are on the same day? This is a one-liner, but it adds readability to your code, so it might be worth using.
Tweet media one
6
3
74
@FloWritesCode
Flo writes Code
2 years
Are you e.g. sharing your UserDefaults with an App Extension (like Widgets)? You can use the `.defaultAppStorage` ViewModifier to make sure it's used everywhere in @.AppStorage.
Tweet media one
3
10
75
@FloWritesCode
Flo writes Code
2 years
iOS 15 introduced the `dismiss` EnvironmentValue, which behaves the same as `presentationMode.wrappedValue.dismiss()` while being shorter and easier to read.
Tweet media one
4
4
73
@FloWritesCode
Flo writes Code
2 years
Just spent around 15 minutes to build this little menu bar app. It's an easy way for me to copy links that I need daily (for tweets, etc.). Thinking about making a little video about it, is there any interest?
Tweet media one
8
1
73
@FloWritesCode
Flo writes Code
2 years
You can now add TextFields inside a SwiftUI Alert! Hint: No, the Alert does not support arbitrary Views, this is a new exception :)
Tweet media one
1
14
72
@FloWritesCode
Flo writes Code
1 year
@Dimillian My reaction was: Is that just a keynote slide? That doesn't look like iOS at all πŸ˜…
1
0
69
@FloWritesCode
Flo writes Code
3 years
πŸ› Β I’ve been hacking away at a brand new developer app for the past week and it’s finally out. XCLocalizer is a tool that automatically extracts Strings from your SwiftUI code and translates them to any language you’d like! Try it for πŸ†“Β β†’
Tweet media one
8
11
72
@FloWritesCode
Flo writes Code
2 years
Find out how I coded 5 apps in under one hour using SwiftUI in my latest video! πŸ“Ί
Tweet media one
6
7
70
@FloWritesCode
Flo writes Code
1 year
Visited the mothership today.
Tweet media one
Tweet media two
3
0
69
@FloWritesCode
Flo writes Code
3 years
Creating your own EnvironmentValues in #SwiftUI is actually super easy and allows you to pass data through a View hierarchy without *actually* passing it to another View.
Tweet media one
1
7
69
@FloWritesCode
Flo writes Code
1 year
The new SF Symbol Effects are really cool!
1
8
67
@FloWritesCode
Flo writes Code
3 years
It's finally time for the video I've been looking forward too since I first had the idea a few months ago! Thanks to everyone who invested time to make this happen πŸ‘‡
Tweet media one
4
16
69
@FloWritesCode
Flo writes Code
2 years
@.AppStorage is so easy to use, why isn't there @.SecureStorage for keychain?
8
4
67
@FloWritesCode
Flo writes Code
11 months
Did you know that it's super easy to create asymmetric transitions in SwiftUI?
Tweet media one
4
6
67
@FloWritesCode
Flo writes Code
1 year
Do you want to get started with building apps for visionOS? πŸŽ₯ Here's my playlist on the topic! We're building a simple SwiftUI app for the new platform. This playlist will be updated with new lessons in the future.
Tweet media one
1
9
65
@FloWritesCode
Flo writes Code
3 years
It's a common pain... Start doing marketing today with Forge ().
Tweet media one
3
6
67
@FloWritesCode
Flo writes Code
3 months
Is it only me or is there not much new for devs this WWDC? I feel like the SwiftUI additions are small (but nice!) and the only "big" change is to AppIntents, which we can't use in the iOS beta yet.
24
4
67
@FloWritesCode
Flo writes Code
2 years
My newest video is doing really good and I reached a subscriber milestone today. πŸ™πŸ₯³
Tweet media one
8
4
63
@FloWritesCode
Flo writes Code
2 years
This is what WWDC does to an iOS-related Youtube channel!
Tweet media one
1
1
65