Automatic grammar agreement makes it easy to handle plurals in your app app across six different languages, and it's baked right into SwiftUI. See how to use it with this simple code example!
Пікірлер: 81
@joevero4568 Жыл бұрын
I was expected to be underwhelmed but HOLY THAT'S AMAZING
@alexandersereno9 ай бұрын
Commenting so those asking can see easily - supported languages are English, Spanish, Portuguese, French, Italian, and German
@jconstant Жыл бұрын
Mind officially blown! I’d love more of these!
@joee8227 Жыл бұрын
I hope this video gets liked by a lot of person.
@ericnail120 күн бұрын
I see what you did there 😆
@TheOnlyTripo Жыл бұрын
This is so great! How were we supposed to know about this one if it wasn’t for you? Thank you!
@alejmc10 ай бұрын
Exactly, so many golden nuggets sprinkled absolutely everywhere all over the place 😮
@TsiriniainaRakotonirina Жыл бұрын
Paul, Paul, where has this been long long time ago!??? This is purely amazing 😃🤩🙌
@TheiTE Жыл бұрын
OH MY GOD LOL, this is AMAZING. This means... I have been writing long functions to do this for no reason all this time... T-T
@nigelhamilton6359 Жыл бұрын
That was so good. Please keep doing this 😀
@Pseudonaym Жыл бұрын
Damn all these days I've been comparing values! Amazing tip!
@gabrielf11111 ай бұрын
Thanks! I had this problem recently and I’m surprised that the solution is this simple.
@nonyabidness5784 Жыл бұрын
Oh man I love this. Saves having to manually code it.
@juliansha259010 ай бұрын
And I’ve been using ternary operators lol . Good to know!
@zetrix62775 ай бұрын
It's basically doing the same thing, only behind the scenes ... The localization process is still one of the biggest pains ...
@ninelostsouls Жыл бұрын
Incredible. You should definitely do more of these. !!
@flora6465 Жыл бұрын
Super cool tip! Definitely need more of these👍
@marcellerusuАй бұрын
Amazing!
@flymanhawaii9 ай бұрын
So cool, gotta try this out for your example of country flags game.
@thriveflourishmotivate9 ай бұрын
Best swift teacher!!
@jcut Жыл бұрын
Very cool tip!
@vrplayz4601 Жыл бұрын
Awesome work! Paul as always
@richardalbury Жыл бұрын
Mind blown: wow, thanks!
@haineux Жыл бұрын
A little mysterious but very cool! Do more!
@jessielinden2961 Жыл бұрын
@twostraws thank you so much for this! In my use case, I sometimes use fractions, so I've been using a string, which I've found doesn't work with this approach. Any advice for leveraging this for my case?
@yariva2 Жыл бұрын
Wow, thanks! Please keep doing shorts!
@JakeLovesSteak Жыл бұрын
I had no idea that was possible!
@NyxAndrew10 ай бұрын
Thanks.
@Johnged15 Жыл бұрын
This is a nice piece of code.
@carlosswiftdev2703 Жыл бұрын
You weren't wrong 🤯 amazing! Paul is this a new feature of has it been around a while?
@joenaveau Жыл бұрын
This is awesome! 🤯
@joenaveau Жыл бұрын
Quick question - what’s up with this syntax? What does inflect mean? It seems kind of random. 😅
@chocomilkfps12643 ай бұрын
Think it’s short for “inflection” which means: “a change in the form of a word (typically the ending) to express a grammatical function or attribute such as tense, mood, person, number, case, and gender.”
@casperes0912 Жыл бұрын
Is there a compile-time checked version of this not relying on string literals in the Text constructor? Like Text("\(count) [person]").inflect(true) or something like that?
@casperes0912 Жыл бұрын
@hydro1337x I mean sure, but that is a less ideal setup I think
@_Half_Byte_11 ай бұрын
Ohh that's really beautiful
@jim.haungs Жыл бұрын
Rails has been doing inflection for over a decade.
@patgarner Жыл бұрын
Super cool!
@user-ic2tx9sb1m Жыл бұрын
Thank you so much❤
@GregT-gf9ny Жыл бұрын
Wow! How did you find this?
@user-ib4wj9nf2c10 ай бұрын
Super Cool
@sebasyanni12584 ай бұрын
What is inflex?im just beginning with swift.. thanks for your help
@enoch88356 ай бұрын
woah this is cool
@user-rs3pf3bt7m Жыл бұрын
Amazing🎉🎉
@devayz9305 Жыл бұрын
AGA.. interesting. thank you
@mathesonstep Жыл бұрын
That is amazing
@ahikmatf7 ай бұрын
HOLY MOLY GUACAMOLE
@ralfboernemeier9724 Жыл бұрын
Cool … never heard about it 😮
@vasilbaramidze4185 Жыл бұрын
Nice!
@seccat7 ай бұрын
What 6 Languages are supported?
@pawekoaczynski4505 Жыл бұрын
That is very nice
@mmoriarty2 ай бұрын
Accurate. 🤯
@Deadpool25mm Жыл бұрын
Cool!
@angelmanuel72710 ай бұрын
💪🏼🙌🏼💪🏼
@danvilela10 ай бұрын
What 6 languages? Also.. is this a runtime thing?
@VladislavVaz10 ай бұрын
can someone help me please .. i have a SWIFTUI application with a flow as follows: A(landscape orientation)->B(landscape)-C(portrait)->D(portrait). also when I navigate back from C to B it should turn back to landscape as B is in landscape. (I am using NavigationLink in my application to navigate)How do I achieve the portrait lock in swiftUI. i tried the .onAppear{} and .onDisappear{} method.. (firstly it is no longer available on ios 16 and secondly it gives a choppy animation where the view does not expand fully to take the new rotated screen size; there is white space after it rotates)
@bobthemagicmoose9 ай бұрын
What if you support other languages? How does it handle fallback?
@dskygnАй бұрын
I have so many questions about how does it actually work.
@Deadlineru Жыл бұрын
Really non-obvious feature...)) And which languages are supported? I consider, English only, or some bunch of Eu languages. But that's cool, maybe, it will be more convenient to use in future releases)
@chriswaco Жыл бұрын
This does not seem to work. Do I have to put the singular and plural versions into a localizable.strings file too?
@ColeDano Жыл бұрын
Same for me. Changing the String type to LocalizedStringKey fixes it however.
@chriswaco Жыл бұрын
@@ColeDano Bingo. Thank you.
@ihwan_id Жыл бұрын
🎉🎉🎉
@EdmundTrujillo8 ай бұрын
What does it do when the count is 0?
@tdrg_ Жыл бұрын
Does it work with iOS 15?
@akar._.J9 ай бұрын
Swift is a great programming language. However, the problem is that it is less popular in Asia and third-world countries.
@alanwill10 ай бұрын
😮
@AlanW Жыл бұрын
This is cool, but the short format is awful, you can't scrub the video if you want to go forward or back.
@rondamon44089 ай бұрын
I'm flipping
@30guarino Жыл бұрын
so I'm the only one that can't get that 'carrot sign' by tapping 'shift' + 'control'?
@AlexCrocker Жыл бұрын
It's the carot sign above the number 6 key, not the one above control
@30guarino Жыл бұрын
@@AlexCrocker thank you lol
@xingzhexin8843 Жыл бұрын
I'm sorry I've programmed for so long in UIKit and SwiftUI that nothing really sur... IM SORRY WHAT DID YOU JUST DO?