Using Sheets, Transitions, and Offsets to create a popover in SwiftUI | Bootcamp #29

Using Sheets, Transitions, and Offsets to create a popover in SwiftUI | Bootcamp #29

Swiftful Thinking

3 года назад

31,375 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-we4re9je2x
@user-we4re9je2x - 30.12.2023 16:47

Thanks Nick, There is no word can describe this content.
For me I prefer the transition way to deal with screens because as u said its more dynamic and more customizable

Ответить
@minimaster.10
@minimaster.10 - 23.12.2023 10:13

for some reason UIScreen.main will be deprecated, so in the new way i use GeometryReader. and its perfectly work.

Ответить
@user-iu5sv7vh1l
@user-iu5sv7vh1l - 10.12.2023 07:14

Does UIScreen still exist because I can not seem to make it work? If it is deprecated what should I use instead?

Ответить
@slugbtye
@slugbtye - 06.12.2023 06:57

Curious if there is any performance implications for the animation offset version? Does swift lazy render the view, (like only put the view in memory once the display condition is true)?

Ответить
@Dragonboh1
@Dragonboh1 - 04.12.2023 00:22

keep doing what you doing

Ответить
@EzularSocial
@EzularSocial - 01.11.2023 14:42

Thanks, but I prefer the sheet because it has all the necessary functions. I think the Cons of transition are that you have to add the close drag gesture and background dismiss manually.

Ответить
@RehanKhan-zw3vq
@RehanKhan-zw3vq - 25.10.2023 12:57

I think you should have explained the pros and cons a little more, for example: Animation offset method loads the second screen immediately, but the other two methods don't, they load the view only if the condition is true, so in my opinion offset method should be used only for a very specific case.

So really its really transition vs sheet/fullcovers

Ответить
@shelly985985
@shelly985985 - 15.10.2023 07:18

Is possible to use sheet with different transition? Like sheet opens Right to left

Ответить
@hashemakkad6439
@hashemakkad6439 - 29.09.2023 11:29

Should we delete @Environment from the struct view, in Method 2 and Method 3,
as we don't use it anymore?

Ответить
@alextoma402
@alextoma402 - 26.09.2023 22:01

Why do I feel like I know this guy from somewhere. You from Michigan??

Ответить
@DefeatOG
@DefeatOG - 15.09.2023 19:35

Awesome video! This has helped my app design look tons better! I have a question though. I go to round the top corners (I've tried different methods) all of which add a sort of padding to the bottom of the view so it's not flush with the bottom anymore. Any idea on how to fix this?

Ответить
@sergeykravtsov251
@sergeykravtsov251 - 31.07.2023 18:25

Hi Nick, great channel, love your videos and learning loads. Quick question (and I spent something like 3hrs looking for a fix) but method 2 throws the ".animation deprecated as of ios15, use value:", but whenever I do there is no animation going on at all. Would appreciate any help as it is giving me a headache, not being able to wrap my head around what the new method is supposed to be.

Ответить
@patilashish
@patilashish - 24.07.2023 12:20

Wont the transition and animation keep the second screen in memory even when off the screen ?

Ответить
@edwarddeen9823
@edwarddeen9823 - 23.07.2023 05:28

now that maybe you guys could use this:
@Environment(\.dismiss) var dismiss
and add these codes in the Button's action:
dismiss.callAsFunction()

cause presentionMode is about to deprecate.
By the way, really loves your tutorials Nick, hope you continue with that!~
Best regards.

Ответить
@rinotheone6806
@rinotheone6806 - 18.07.2023 01:04

Поповер)

Ответить
@bixnqq
@bixnqq - 02.07.2023 18:42

The transition just does not work for me. Don't know why. Makes me frustrated >.<

Ответить
@Mhak-rt3lu
@Mhak-rt3lu - 02.05.2023 11:17

hi Nick, Thank you for the awesome video. I have a problem with animation in xcode 14, it didn't work in the preview nor in the simulator. I tried different combinations (implicit and explicit) but it never worked. can you help please.

Ответить
@luimost
@luimost - 26.03.2023 19:22

Thanks for your contribution, Excelente!!

Ответить
@bobbynwm
@bobbynwm - 11.02.2023 14:28

Thanks again Nick for this insightful video! If I understood this right, I would use Sheets for complex covers ( with lots of content and potential navigation controls starting from that sheet0, Transitions for filters, small popups with few buttons, actionable within same main screen via binding and so so, and Animations for really small items, like tool tips, helper notes, info tips for sections. What do you think ?

Ответить
@rhencydelgado4266
@rhencydelgado4266 - 21.01.2023 23:50

Nick, I've been learning a lot from you!! Excellent content and a way to teach!!

I have a question; now, in iOS 15.0, .animation was deprecated. Can you explain to us how to use the "value" parameter? Example: .animation(.spring(), value: V), thanks in advance!!!
😄

Ответить
@wheezyprojects8379
@wheezyprojects8379 - 13.01.2023 03:42

I fucking love yooooooooou

Ответить
@huseyinsubhanalkan878
@huseyinsubhanalkan878 - 21.12.2022 16:25

Great video ! Very helpful thank you Nick.

Ответить
@heshamabdo6024
@heshamabdo6024 - 25.11.2022 15:58

Compared to paid courses, this course is better

Ответить
@douglasrutledge1325
@douglasrutledge1325 - 15.10.2022 23:33

💧water has cleared, there is hope for me.

Ответить
@douglasrutledge1325
@douglasrutledge1325 - 15.10.2022 23:10

Ok I first watched this 5mths ago, I'm back to see if I've learnt anything...

Ответить
@magedmohmed4403
@magedmohmed4403 - 21.09.2022 11:24

really thank you very much 🤎🤎

Ответить
@indomitabletr1834
@indomitabletr1834 - 10.08.2022 00:47

Nick, I definitely learned swiftui from you. thank you in advance ❣️

Ответить
@dereklei1746
@dereklei1746 - 31.07.2022 15:01

Crazy good. Thanks

Ответить
@williamwildsmith5162
@williamwildsmith5162 - 11.05.2022 17:33

Excellent Nick. This has really helped me.
I like your videos - they are digestable snippets.

Ответить
@lapusan2008
@lapusan2008 - 29.04.2022 17:11

Very useful tutorial. Thank you!

Ответить
@douglasrutledge1325
@douglasrutledge1325 - 22.04.2022 00:13

well... that was clear as mud! Maybe if I watch the video a dozen more times it will sink in! That didn't work... haha

Ответить
@brucknerdevilliers
@brucknerdevilliers - 17.03.2022 11:47

Perfect!

Ответить
@faikcoskuncakr7418
@faikcoskuncakr7418 - 06.03.2022 12:50

An excellent video. Thank you so much

Ответить
@mamayiwe
@mamayiwe - 16.02.2022 20:59

This is awesome

Ответить
@DavideBelardi
@DavideBelardi - 16.11.2021 03:31

What if I want to use the second option with Transition and doing something like that :
"I want to click the text, it opens a 'fake' sheet view and I want to but inside of it a button that it shows me a new view without compromising with the padding and be full screen the next"
The sequence are : View 1 (click button) -> View 2 opens fake sheet (with the padding) and I click inside of it continue to next view -> View 3 it shows me a new page full screen ?

Ответить
@prasadreddy878
@prasadreddy878 - 13.11.2021 09:26

You are excellent bro the way you presenting is just awsome ❤❤

Ответить
@robertsgeorge9487
@robertsgeorge9487 - 05.11.2021 23:09

I think sheet is good , I was like use offset,I want to change all of them to sheet, thanks Bro

Ответить
@randlyce
@randlyce - 10.09.2021 17:28

wow Cool!

Ответить
@zhiyi4896
@zhiyi4896 - 09.08.2021 17:03

why zstack can fix the transition problems?

Ответить
@JeckyKA
@JeckyKA - 04.08.2021 14:48

amazing, thank you so much!

Ответить
@olepetersen4460
@olepetersen4460 - 17.07.2021 13:01

Great video! I wonder about one thing, though: Why does the transition work, even when the zIndex line is blanked out? It seems that this line is unnecessary.

Ответить
@yrac2409
@yrac2409 - 16.07.2021 02:39

I had trouble doing the last two transition methods using swiftui's default tabview. I was wondering if you need a custom tabview in order to make them work or if I might be missing something here. Thank you so much! your videos are so clear and good

Ответить
@luigivampa9780
@luigivampa9780 - 12.07.2021 20:37

Hey, I've just found your channel and now I'm binge-watching it :) good work!

Ответить
@haidersalih287
@haidersalih287 - 05.07.2021 06:39

man you are my favorite , thank you so much and I hope we can help you like you did for us

Ответить
@dadrewco100
@dadrewco100 - 24.06.2021 07:01

Very nice ! I am learning so much .

Ответить
@Nunny25
@Nunny25 - 23.06.2021 16:23

perfect

Ответить
@andrejkling3886
@andrejkling3886 - 24.05.2021 18:49

Excellent lesson...

Ответить
@user-ev3dl9zt8s
@user-ev3dl9zt8s - 23.05.2021 06:02

Great video!! Thank you!!

Ответить
@sadeqnoori8707
@sadeqnoori8707 - 13.05.2021 08:12

You are great!

Ответить