Post

Replies

Boosts

Views

Activity

Comment on Stepper is still buggy?
opacity count is options.count. i forgot to change that one. it took me quite some hours. my mistake was i tried to integrate the array in the stepper when the stepper should only store the index value which i can tehn use to get the value from the array. beginner's mistake. :D but boy.. it took me quite awhile to figure it out lol
Nov ’22
Comment on Why AVPlayer always nil
it's ok now. since i decided to implement my original workflow which is to load the video on a button selection in the sheet. thanks @claude31. sucks that videoplayer or avplayer doesnt have auto repeat and that some other class has to be used. and it is not even possible to put a thumbnail to the video while it is not playing.
Nov ’22
Comment on Why AVPlayer always nil
ill try it. perhaps i wasnt observing that he (the post that said avplayer has to be a state) probably set it as state but did not make it optional. or because i only assigned it in init it resulted this way. it probably will work if it is a state optional but i set the value after a button click?
Nov ’22
Comment on Why AVPlayer always nil
Hi @claude31 i actually can load the url in the browser. you are right about the unwrap without checking for nil is dangerous. but I purposely unwrapped it because my video url is fixed. but im using a sample video url to start with. about the url, i assumed it should be working since i can view the video in the browser.
Nov ’22
Comment on TabView Reloads all Tab
@claude31 hmm it certainly did not reload the component. when the tab view was shown, it loaded all components. i figure the culprit is in my custom view. if i use the WebView as sample. we have TextView(), WebView(), TextView2(). the init in text view print shows when i switch from WebView to any of the other 2 TextView() views. but if the switch is between TextView() and TextView2(), its ok.
Nov ’22
Comment on NavigationSplitView No Toggle Button
Menu - the sidebar with links (1st column) I see. the samples in the tutorial never had horizontalSizeClass included in the code. I figured it would appear in an iphone in portrait mode specifically since the sidebar (1st column) already takes a huge space in the screen. i thought id use this instead of a custom sidebar menu but i guess not. thank for the input
Nov ’22