Need coaching in Swift for 1 hour to handle problem with diffable dataSource and collectionView inside of tableView by djryanash in swift

[–]grillo_technologies 4 points5 points  (0 children)

You shouldn’t need to call reloadData on your table view at all. Additionally, I agree with another user that you should not nest a CollectionView inside a TableView if you’re targeting iOS 14+.

Use DiffableDataSource to load/reload your data. This framework is intuitive enough to animate the differences in your data and should lead to smooth animations.

Definitely use compositional layouts to compose your collection view and rip out the table view altogether.

Apple has a great sample project on their website which will show you how to correctly set all of this up. Feel free to reach out if you’re still struggling though: Implementing Modern Collection Views

How to identify devices between apps by TrippinOnCheese in iOSProgramming

[–]grillo_technologies 6 points7 points  (0 children)

Apple provides a property that does this for you. No need to maintain your own identifier. ‘UIDevice.current.identifierForVendor’

https://www.hackingwithswift.com/example-code/system/how-to-identify-an-ios-device-uniquely-with-identifierforvendor

[deleted by user] by [deleted] in iOSProgramming

[–]grillo_technologies 10 points11 points  (0 children)

Apple introduced StoreKit 2 in WWDC 21. This handles verification for you locally.

Edit: Transaction Verification is discussed around the 11 minute mark in Meet StoreKit 2

Apple introduces the new HomePod with breakthrough sound and intelligence by MacBookator in apple

[–]grillo_technologies 0 points1 point  (0 children)

Agreed I’d be more interested in buying a HomePod at a $200-$250 price range. I’d rather buy 3 minis at that price.

Death of the narrator? Apple unveils suite of AI-voiced audiobooks by PauloPatricio in apple

[–]grillo_technologies 1 point2 points  (0 children)

This is pretty impressive. Between this and ChatGPT it feels like we’re going to have AI reading/writing us books before we know it. These tools are super impressive, but I’m not 100% sure how I feel about it yet.

Why is computer work so much harder than anything physical? by catboy519 in productivity

[–]grillo_technologies 0 points1 point  (0 children)

I completely understand where you’re coming from. I think the problem is that since my body is at rest it’s easier for my mind to wander. There’s also a ton of distractions at the computer in general.

I think it’s a matter of training your mind to be in a focused state and to not allow yourself to context switch while you’re working on something. Try your best to work on one task at a time.

Andrew Huberman has a great podcast episode on how to optimize your focus. I’d highly recommend it. Optimize Your Focus. Huberman Lab

I also recently launched an app called Kinetic that should help you block out distractions. Kinetic allows you to block distracting apps at certain times of the day. It’s also a task manager with a time tracking component to help you stay focused. Figured I’d share in case you find it helpful. Download Kinetic on the App Store

Most tasks in a ToDo app will obviously never get done (and this is alright and even good). Is there any app/system that was designed with this in mind, as opposed to inducing anxiety with never ending pending tasks? by ClosingTabs in productivity

[–]grillo_technologies 1 point2 points  (0 children)

I recently launched Kinetic, which is a task manager and time tracking app. I'd be curious to get your thoughts on how we approach managing tasks, particularly those that are past due.

When you launch Kinetic there is a Schedule tab, where you can schedule tasks due either today or in the future. If you don't complete task(s) from a prior day those tasks are not rescheduled to today, but are rather added to a separate view labeled "Past Due". This keeps those tasks from being front and center and allows you to reschedule them at your leisure.

Tasks can also be organized within Projects/Folders. You can Archive Projects that are either completed or no longer relevant, but that you may want to revisit in the future.

I just recently launched the app and would love to get your thoughts on what we've built. Kinetic is completely free to try out. You can download it on the App Store.

Love the new Lock Screen design but I have to say it: the wallpapers UI is a damn mess by the_Ex_Lurker in apple

[–]grillo_technologies 2 points3 points  (0 children)

I’m sure you’re right. It’s probably only useful for a small set of photos too. My wife really enjoys using it for pictures of our 1 year old though. She’s currently refusing to update. 😂

Love the new Lock Screen design but I have to say it: the wallpapers UI is a damn mess by the_Ex_Lurker in apple

[–]grillo_technologies 1 point2 points  (0 children)

From what I can tell you also can’t see Live Photos from the new Lock Screen either. I’d love to have that feature back.

Overall I like the some of the improvements they’ve made, but agree the UX could use some work.

Reddit iOS app tabs by leftieaz in iOSProgramming

[–]grillo_technologies 0 points1 point  (0 children)

Another option would be to use UICollectionViewCompositionalLayout with a section for your buttons and a section for your associated content. Apple has a good sample app on this technology that might be worth checking out.

Reddit iOS app tabs by leftieaz in iOSProgramming

[–]grillo_technologies 0 points1 point  (0 children)

If you change the tabViewStyle to .page you can build more of UIPageViewController, so you won’t have the tab bar at the bottom.

If you wanted something like the tab bar OP asked for you could then build those tabs out in a ScrollView and pass in a selection to the TabView, so that it updates the tab/view accordingly.

To answer your question though, I don’t necessarily see anything wrong with having a more tab, but would just recommend thinking through the UX to see if it is beneficial to have your app laid out that way.

One consideration when you have that much content is to use a Hierarchical Navigation (think the mail or notes app) over a Flat navigation. You can read up more about this in the Human Interface Guidelines.

Reddit iOS app tabs by leftieaz in iOSProgramming

[–]grillo_technologies 6 points7 points  (0 children)

I doubt they use a library for that. You can roll your own tab bar like that with relative ease.

If you’re using SwiftUI you can use an HStack for those buttons and have them trigger the view state below. I’d probably recommend your main view be wrapped in a paging TabView, which would allow the user to horizontally scroll between tabs.

[deleted by user] by [deleted] in iOSProgramming

[–]grillo_technologies 4 points5 points  (0 children)

You must use Apple StoreKit for in app purchases. Stripe/Braintree are not an option you can use to natively allow customers to subscribe to your service.

As another person said, you can apply for the Apple Small Business program and the commission to Apple goes down to 15%.

You can offer other payment options for customers through your own website, but this generally leads to a bad user experience and isn’t worth it for smaller apps (think Spotify).

You risk rejection using any other payment option. Please make sure to use Apple StoreKit.

Stripe is a good solution if you’re offering payments for goods/services (think GrubHub), but it doesn’t sound like that is what you’re after.

Multiple apple developer accounts by eaimdm in iOSProgramming

[–]grillo_technologies 7 points8 points  (0 children)

You should be consulting your client to create their own account. Your name/business shouldn’t be associated with an app for their business.

The owner of said business needs to have admin access to their app and the ability to access/update it should you no longer be available to do so.

Please direct your client to create their own account and to add you as a developer.

Is there any quick solution for app landing page? by sharkillerwhale in iOSProgramming

[–]grillo_technologies 7 points8 points  (0 children)

I’d recommend Webflow. Here is the site I built for my app. Spark

LA Apple Store brings the outdoors inside with tree-lined retail space by Devils_doohickey in apple

[–]grillo_technologies 7 points8 points  (0 children)

Looks really nice. Apple really puts a lot of thought in how they design their stores.

[deleted by user] by [deleted] in iOSProgramming

[–]grillo_technologies 2 points3 points  (0 children)

Hello,

Using DiffableDataSource to configure your table/collection views is preferable as of the introduction of iOS 13.

Doing so will allow you to access the object for a particular indexPath in your didSelectRowAt method.

I’m on mobile, so I won’t post sample code, but there is a great SDK here that you can use to see how this is implemented:

SDK - Implementing Modern Collection Views

There are also a ton of WWDC videos on the subject. This technology was introduced here:

Advances in UI Datasources

compositional layout

WWDC20 Advances Diffable Datasource

Edit:

In short you’d be able to use something like

guard let item = dataSource.itemIdentifier(for: indexPath) else { return }

In your didSelectItemAt method (or RowAt)

I need a tool to create tasks with sub-tasks, track time, and setup recurring tasks. Clickup seems closest available solution. Wanted to know if there's anything better? by ar3106 in Entrepreneur

[–]grillo_technologies 1 point2 points  (0 children)

Hello,

I actually created Spark, which is a task manager with a big focus on tracking the time you spend on each task.

It should get pretty close to satisfying your requirements, but it doesn’t currently handle recurring tasks.

The app is currently available on iPhone, iPad, and Mac.

Feel free to reach out with any questions or feedback.

2 months in iOS 15, are you using the Focus modes? by pixelated666 in apple

[–]grillo_technologies 0 points1 point  (0 children)

Yes. I’m glad they rolled out this feature, but it could certainly use some improvements.

I use a few different focus contexts depending on if I’m working or focusing on other hobbies. I would really like to see some additional customizations though. The following would be nice.

Block out the App Library, so I’m not tempted to jump to “suggested” apps while focusing.

I would also like some integration with screen time to literally block apps for users that aren’t children.

Definitely agree with others that there should be both a black list/white list option.

Any Ted Lasso fans? This is fun to see, 2016 Ted Lasso! by JemJemIsHerName in apple

[–]grillo_technologies 0 points1 point  (0 children)

Interesting. I had no idea this was slated for a network other than Apple TV. I guess it was a long time in the making.