Axel 🍁 iOS indie (@_AxelT) header
Axel 🍁 iOS indie (@_AxelT) profile picture

Building iOS apps for life in Canada 🍁 | Maple Tracker (days → citizenship) | Build in public

Montréal, Québec
Joined February 2014
Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)Photo by Axel 🍁 iOS indie (@_AxelT)
Counting your 1,095 days for Canadian citizenship by hand? Never again 🍁 I built Maple Tracker: trip tracking, pre-PR credit, a 144-question citizenship quiz and bilingual PDF reports. Free on iOS. How are you tracking your days right now?
1
10
367
Axel 🍁 iOS indie retweeted
You know what I’m restarting the $100 to $100,000 December challenge. 🎄🎅 I want everyone to have a fair shot at this. Last time it took me about 5 days, will try to do it faster this time. If you want to follow along, RT + comment “join” below Going to lock comments in 24 hours
247
118
2
155
48,838
Code SMS en SwiftUI : .textContentType(.oneTimeCode) plutôt qu'un bouton « Coller » maison. iOS propose le code reçu au-dessus du clavier, en un tap. SMS code in SwiftUI: .textContentType(.oneTimeCode) rather than a custom Paste button. iOS offers the code above the keyboard.
9
Astuce SwiftUI : ProgressView(value: 0.6) { Text("Import") } currentValueLabel: { Text("60 %") } plutôt qu'un VStack Text + barre : VoiceOver lit titre et valeur ensemble. SwiftUI tip: ProgressView's labels over a stacked Text + bar. Labels ou VStack ? / Labels or VStack?
5
SwiftUI : .dynamicTypeSize(...DynamicTypeSize.xxxLarge) plutôt qu'une police fixe sur un écran serré. Le texte grandit encore, juste plafonné. EN: cap Dynamic Type this way rather than with a fixed font size. Text still scales, up to a limit. Plafond ou fixe ? / Cap or fixed?
3
SwiftUI : .clipShape(.rect(cornerRadius: 12)) plutôt que .cornerRadius(12), déprécié depuis iOS 17. Même rendu, API à jour. SwiftUI: .clipShape(.rect(cornerRadius: 12)) rather than .cornerRadius(12), deprecated since iOS 17. Same look, current API.
4
Astuce SwiftUI : .labelsHidden() plutôt que Toggle(""). Le libellé est caché à l'écran, mais VoiceOver le lit encore. labelsHidden ou chaîne vide ? SwiftUI tip: .labelsHidden() rather than Toggle(""). Hidden on screen, still read by VoiceOver. labelsHidden or empty string?
5
SwiftUI : .buttonStyle(.borderedProminent) plutôt qu'un fond bleu + coins arrondis faits main. Appui, désactivé et .tint gérés. SwiftUI: .buttonStyle(.borderedProminent) over a hand-made blue background + rounded corners. Pressed, disabled and .tint handled.
2
SwiftUI : .privacySensitive() plutôt que masquer un solde à la main dans un widget. Écran verrouillé, le système le cache seul. EN: .privacySensitive() over hiding a balance by hand in a widget. Locked screen? The system redacts it. Natif ou à la main ? / Native or by hand?
5
SwiftUI : .onChange(of: x, initial: true) plutôt que onAppear + onChange en double. Une seule closure, lancée aussi à l'apparition (iOS 17+). SwiftUI: .onChange(of: x, initial: true) over onAppear + onChange doing the same work. One closure, also runs on appear (iOS 17+).
1
SwiftUI : .lineLimit(2, reservesSpace: true) plutôt qu'un .frame(height:) fixe. Le titre réserve 2 lignes : cartes alignées, Dynamic Type respecté. iOS 16+ SwiftUI: reservesSpace over a fixed frame height. Titles keep 2 lines, cards line up. reservesSpace ou/or frame ?
7
Swift : items.count(where: \.isDone) plutôt que filter { … }.count. Swift 6 compte sans tableau intermédiaire, et l'intention est claire. Swift: items.count(where: \.isDone) rather than filter { … }.count. Swift 6 counts with no intermediate array, and the intent is clear.
5
SwiftUI : .toolbar + ToolbarItem plutôt que .navigationBarItems (déprécié). Le bouton se place au bon endroit sur iPhone, iPad et Mac. SwiftUI: .toolbar + ToolbarItem over deprecated .navigationBarItems. Buttons land right on every platform. Toolbar ou/or navigationBarItems ?
4
Astuce Swift : Measurement(value: 5, unit: UnitLength.kilometers).formatted() plutôt que "\(km) km". Unité, langue et métrique/impérial suivent la locale. Swift tip: Measurement.formatted() rather than "\(km) km". Unit, language and metric vs imperial follow the user's locale.
2
SwiftUI : Button(role: .destructive) plutôt que .foregroundStyle(.red). Le rôle met le rouge et le bon style dans les alertes. Rôle ou couleur ? SwiftUI: Button(role: .destructive) over .foregroundStyle(.red). The role adds the red and the right alert styling. Role or color?
5
Animation en plusieurs étapes : phaseAnimator plutôt que withAnimation + asyncAfter. Tu listes les phases, SwiftUI les enchaîne. iOS 17+ Multi-step animation: phaseAnimator rather than withAnimation + asyncAfter. List the phases, SwiftUI chains them, no manual delays.
6
Swift : noms.formatted(.list(type: .and)) plutôt que joined(separator: ", "). Donne « Anna, Ben et Chloé » en FR, « Anna, Ben, and Chloé » en EN. iOS 15+ joined ou formatted ? names.formatted(.list(type: .and)) over joined(): the right "and" per language. joined or formatted?
5
SwiftUI : AnyLayout plutôt qu'un if/else HStack/VStack. Le if/else recrée les vues (état perdu), AnyLayout les garde et anime le passage. SwiftUI: AnyLayout over an if/else HStack/VStack. if/else recreates the views (state lost); AnyLayout keeps them and animates the switch.
1
11
SwiftUI : SceneStorage plutôt qu'AppStorage pour l'onglet choisi ou un brouillon. Chaque fenêtre iPad garde son propre état. SwiftUI: SceneStorage rather than AppStorage for the selected tab or a draft. Each iPad window keeps its own state. Scene ou App ?
9
SwiftUI : TextField(axis: .vertical) plutôt que TextEditor. Avec .lineLimit(1...5), il grandit jusqu'à 5 lignes puis défile. Placeholder inclus. EN: TextField(axis: .vertical) over TextEditor. With .lineLimit(1...5) it grows to 5 lines, then scrolls. TextField ou TextEditor ?
9
SwiftUI : .scrollPosition(id:) plutôt que ScrollViewReader (iOS 17+). Un binding lit l'élément visible et fait défiler quand tu le changes. SwiftUI: .scrollPosition(id:) over ScrollViewReader. One binding reads the visible item and scrolls when set. scrollPosition ou Reader ? / or Reader?
16