Posts
1408
Following
142
Followers
868
I'm a bit of an eclectic mess 🙂 I've been a programmer, journalist, editor, TV producer, and a few other things.

I'm currently working on my second novel which is complete, but is in the edit stage. I wrote my first novel over 20 years ago but then didn't write much till now.

I post about #Coding, #Flutter, #Writing, #Movies and #TV. I'll also talk about #Technology, #Gadgets, #MachineLearning, #DeepLearning and a few other things as the fancy strikes ...

Lived in: 🇱🇰🇸🇦🇺🇸🇳🇿🇸🇬🇲🇾🇦🇪🇫🇷🇪🇸🇵🇹🇶🇦🇨🇦

Fahim Farook

And on the other side of the fence (from Meta), Apple seems to have suddenly discovered that gaming exists 😛

“No Man’s Sky” released for Mac yesterday and an announcement of “Stray” coming to the Mac next …

Hmm … anybody think that all this might have something to do with the AR headset and a push towards gaming on it in a major way?

#AR #Apple #Gaming #Announcements
2
0
3

Fahim Farook

So it appears that Meta is taking the as yet un-announced Apple AR headset as serious competition … Announcement of Quest 3 yesterday and a slew of new games for the Quest — and some of them might actually get me to try VR gaming 🙂

I’ve mostly been interested in the work aspect of VR — like having a huge monitor I can code on, but now I might be tempted by “Asgard’s Wrath 2” …

I guess I’ll have to see what Apple has on offer before making a decision? 😛

#AR #Headsets #Meta #Apple #VRGaming
0
0
3
@sids Thank you 🙂 Will take a look …

Given how rich the navigation patterns are in UIKit, I do hope that we get some love this year for navigation. Let’s wait and hope I guess?
0
0
0
@jefframes I’ll just say that I’m curious 🙂 I’ve been waiting for this for years, but I have no idea as to the business side of things. I just hope it works well enough for it to do what I want it to do and that it gains enough marketshare to stay around doing it … 😛
1
0
1

Fahim Farook

I tried to explain the issues I was having with the current SwiftUI navigation options yesterday, but I don’t think I did a good job 🙂 So here’s a second stab at it …

Basically, my understanding is that the only out-of-the-box way to show new views is to either use a NavigationLink or a sheet. I had a List where I wanted the user clicking on the list cell to take them to one view and the user clicking on a button within the list view to take them to another view. (See screenshot #1). This was fairly easy to do in UIKit.

But when I use NavigationLinks for both items, they automatically add these disclosure indicators and doubles them for two NavigationLinks (yes, I know you can hide them with some jugglery, but you shouldn’t need to do that). Worse still, you still get taken to only one view no matter where you click 😛

Fine, so two NavigationLinks in the same cell won’t work. So let’s try making one of them (the button) show a sheet instead. That should work, right?

And this does indeed work. (See screenshot #2).

So all is well? Well kinda … First, I shouldn’t need to show a sheet when I don’t want to. If I want to push a new view in, then I should be able to do so, right?

But leaving that quibble aside, let’s say I want my cell to have a distinctive look. Like in screenshot #3. But now I have the disclosure indicator outside my content cell. And that really doesn’t look good to me …

Oh, but you can put the NavigationLink and the cell content in a ZStack to control that, you say? Sure, but then things look like screenshot #4 😛 Sure, with some more tweaking I can probably get things working right but shouldn’t this be easier?

Also, do note that you can set the opacity of the NavigationLink to 0 and hide the disclosure indicator altogether and yet have the NavigationLink work. And that’s what I did in my app, but in that app, setting things up this way wouldn’t work for the two separate views. Tapping on the button would launch both the detail view and the other view.

But it works correctly here. So I think I must have gotten something subtle wrong in the other implementation.

However, if you want to avoid all these hassles, you might want to try out this package:

https://github.com/DoubleSymmetry/XNavigation

It let me do view navigation the way I wanted to, instead of having to use sheets when I didn’t want to use sheets 😛

If you have a better way to do what I was trying to do, please do let me know. I’m always eager to learn 🙂

Disclaimer: I am not affiliated to the developer of the package in any way. I just liked how it made navigation so much easier … at least for the use cases I had.

#iOS #SwiftUI #Coding #Navigation #Apple
Screenshot #1. Trying to use tw…
Screenshot #2. The button/image…
Screenshot #3. Adding a backgro…
Screenshot #4. The disclosure i…
1
0
2
@danhalliday Thanks, will give that a try and see if that helps 🙂

The issue that I ran into (which I probably didn’t explain properly in the previous post) was that I had a List cell which was enclosed in a NavigationLink but which also had a sub item in the cell with a different NavigationLink. Putting two NavigationLinks for the same list item didn’t appear to be supported … but I must confess that I didn’t dig too deep since I just wanted to get on with the project I was working on 😛

I did try using a sheet with the sub-item too and that would just do both navigations at once. But again, it might have been a bug and it is possible SwiftUI works as intended. I did intend to write a new post about this issue later today anyway and now you’ve actually motivated me to make sure that happens and maybe do a bit of digging into this issue too.

So thank you for that … I think 😛
1
0
0

Fahim Farook

While I have come to love the latest iteration of SwiftUI for how fast I can get stuff done, one thing that still trips me up is navigation — it’s almost as if Apple expects all screen navigation to happen either as explicit taps on UI elements, or simply modal screens 🙂

With my latest app, I have been hitting navigation limitations pretty hard. I have a list item which also has a button on it which should take you to a different item than tapping on the list item itself. Try as I could (OK, I didn’t try verrry hard 😛) I couldn’t make this work correctly.

Then I found this handy package:

https://github.com/DoubleSymmetry/XNavigation

It made all of my navigation handling issues disappear! (Well, at least for now … I’ve only been using the package for about an hour …) It did make all of the scenarios I encountered (and had to find workarounds for so far) disappear. So I’m very thankful to the author since it makes navigation fun again for me 🙂

#iOS #Coding #SwiftUI #Navigation
1
0
4
@denisdepalatis Thanks 🙂 My wife feels the same way as you do about the UI … I’m ambivalent — guess I can’t choose a favourite child 😛
1
0
0
@lolbat Yep, I just couldn’t read any more of that article after a point. So I have to wonder how all the people affected by this behaviour must have felt like … It’s just unimaginable for me 😕

I know people do behave this way but I still can’t help but hope that perhaps we can be better … maybe?
0
0
1

Fahim Farook

A few years back, I wrote a timer app for my wife since she was tired of how you can’t have more than one iOS timer running at a time. She would want to have two or more timers running at the same time and you just couldn’t do it with the default iOS timer …

At that time, I was heavily into Flutter and so did the app in Flutter so that we could have the timer on either iOS or Android.

After some time, my wife stopped using the app for some reason (we don’t remember why now) and I stopped working on it.

A few days ago, I wanted a recurring timer — one which would fire hourly for say 10 hours during the day and couldn’t find something that worked and wasn’t full of ads 🙂 So I went back to my old timer app.

So much time had passed that the Flutter app took me about a day to get back to working condition. But I kept feeling as if the process was slow … too slow. Just compiling the code to run the app would take a couple of minutes and that just added up. Plus there were other issues.

So I did some scrounging around and found that I had another version of the code — an early attempt to turn the app into a SwiftUI app. It took me only about a day of work and I already have that doing the basic stuff and getting close to feature parity to the Flutter version.

It’s interesting how different languages evolve and change over time and what you thought was the best at one point no longer is …

Screenshots for comparison below.

#Timers #Coding #iOS #Flutter #SwiftUI
Screenshot of an iOS app with m…
Screenshot of an iOS app writte…
1
1
4

Fahim Farook

We were both big fans of “Lost” when it started … and then kind of got tired of the constant shifting sands in terms of storylines and were totally pissed off at the ending (mostly because the writers themselves had dismissed the ending early on, but relied on people’s short memories when it came to the end). But we never knew, or even considered then, some of the implications of the stories being told or the background.

The following Vanity Fair article casts the spotlight on some horrendous things going on behind the scenes and be warned, it was so horrible that I couldn’t complete the article. I have no respect for Damon Lindelof or Carlton Cuse (not that I had before, but I did recognise their names and would watch shows involving them … but no more!) and it is horrible how human beings can behave this way …

https://www.vanityfair.com/hollywood/2023/05/lost-tv-show-culture

#Lost #WorkCulture #Racism #TV
1
2
2

Laurie Ashton Farook

Black Cat

2023 04 12-13 day 293-294 of doing art every day for a year (mostly – I took sick days off). I’m doing something art related every day for a year in an effort to develop art skills. I’m very much a beginner.

I did this painting using four brushes:

Calligraphy/Monoline (for sketching)
Ittai Manero’s Crazy Nebula brush (for the nebula in the sky and reflection)
Ittai Manero’s Randomized Dots 01 (for the stars)
Ittai Manero’s Super Wet Flat Brush (for everything else)

The monoline brush is a standard Procreate brush. The Ittai Manero brushes were free as part of his freebie packs.

I have projects where I’ve used 15 or 20 brushes, maybe more, and I’ve done projects where I’ve used only 2 or 3. It’s interesting limiting myself to only a few brushes. I don’t think it makes art necessarily better, but I learn from it nonetheless.

https://lmashton.com/black-cat/


#ArtMatters #Procreate #DigitalArt
#DigitalPainting #WomensArt
A black cat looks out a window …
0
2
6

Laurie Ashton Farook

Sleeping Cat

2023 04 11 day 292 of doing art every day for a year (mostly – I took sick days off). I do some kind of art every day as an effort towards developing some art skills. I’m still very much a beginner.

https://lmashton.com/sleeping-cat/

#ArtMatters #Procreate #DigitalArt
#DigitalPainting #WomensArt
A watercolour painting of a bla…
0
1
4

Laurie Ashton Farook

Toucan

2023 04 09-10 day 290-291 of doing art every day for a year (mostly – I took sick days off).

This is me playing around with watercolour-esque painting. And having fun. 🙂

https://lmashton.com/toucan/

#ArtMatters #Procreate #DigitalArt
#DigitalPainting #WomensArt
Watercolour painting of a touca…
0
1
2

Laurie Ashton Farook

Moonlit Tree

2023 04 08 day 289 of doing art every day for a year (mostly – I took sick days off).

If you’re new to following me, this is me learning how to be an artist. I started nearly a year ago with close to no art skills and decided to trust the process – do something art related every day in the hopes that I can develop some art skills.

#Procreate #DigitalArt #DigitalPainting #WomensArt
Night. A lone tree with dark pu…
1
2
3

Laurie Ashton Farook

Butterfly

2023 04 07 day 288 of doing art every day for a year (mostly – I took sick days off).

I created this, using standard Procreate brushes:

Luminence – Lightpen
Luminence – Bokeh Lights

I used assisted drawing in vertical mode for the symmetry.

https://lmashton.com/butterfly/



#ArtMatters #Procreate #DigitalArt #DigitalPainting #WomensArt
A butterfly painted to look lik…
0
1
3

Laurie Ashton Farook

Edited 1 year ago
Moonlit Blossoms

2023 04 06 day 287 of doing art every day for a year (mostly – I took sick days off).

I started with painting a bird, but it wasn’t going well. I then realized I had a massive headache happening (yes, it’s true – I don’t always realize these things immediately), and those tend to impair my ability to think clearly when they’re that bad, so I dropped the bird and did a tutorial instead. I’ll do the bird another day.

I ended up doing a Joel Create tutorial. Follow the link below.

https://lmashton.com/moonlit-blossoms/

#Procreate #DigitalPainting #DigitalArt #ArtistsOnMastodon
A digital painting of a pink-bl…
1
2
2

Laurie Ashton Farook

Edited 1 year ago
2023 04 05 day 286 of doing art every day for a year (mostly – I took sick days off).

I don’t understand abstract paintings. I fully admit this. And yet, today, I did an abstract painting in my attempt to understand them better. I would like to improve, but I think this will require a more immersive approach.

I followed the tutorial by Flow Works in the link below, as much as one can follow an abstract painting tutorial and still making one’s own original. I used my own colour set and brushes.

https://lmashton.com/abstract-1/

#Procreate #DigitalPainting #DigitalArtt #ArtistsOnMastodon
Abstract painting in pinks and …
0
1
1

Laurie Ashton Farook

Edited 1 year ago
Spring Forest

2023 04 04 day 285 of doing art every day for a year (mostly – I took sick days off).

I did this following a tutorial by James Julier. Link is in the link below.

https://lmashton.com/spring-forest/

#procreate #DigitalArt #DigitalPainting #ArtistsOnMastodon
Digital painting of purple flow…
0
1
5

Laurie Ashton Farook

Lemons

2023 04 03 day 284 of doing art every day for a year (mostly – I took sick days off).

And yes, I’m severely behind posting. Oy. The life of the chronically ill.

This is a tutorial by Tatyworks. Link is in the link below. I went rogue, of course. 😀

It’s done using gouache brushes in Procreate. And this is where I mention in passing that I have no idea how gouache is pronounced. I heard another artist pronounce it in his youtube tutorial the other day, and it sounded entirely wrong, so I have no idea if he’s pronouncing it incorrectly, or I am, or we both are. Alas.

I really like how this turned out, by the way. I’m really happy with it.

https://lmashton.com/lemons/

#procreate #digitalart #digitalpainting #artistsonmastodon
Three lemons handing from a bra…
0
1
1
Show older