🚨 Wake up! Eleven new examples, all about sheets, just dropped on Explore SwiftUI. Screenshots for different designs and devices are available to cover the edge cases.
Start exploring here:
https://exploreswiftui.com/library/sheet
#SwiftUI really makes it damn hard to build the help section of an app, no? no wonder everyone just points to a website.
Out of time, but managed to get an alternative way to make multiple accounts in tests in! Tomorrow night, let's continue writing those tests. See you then!
🔜 Tomorrow’s stream: https://youtube.com/live/PnOqkjxLE3s
⏮️ Playlist so far: https://www.youtube.com/playlist?list=PLRxjf93xotuofCtaxtGOcWeuxVZYJyY-m
📲 Download Jiiiii: https://apps.apple.com/app/apple-store/id6472801548?pt=14724&ct=MastodonCCStreams&mt=8
#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #Swift #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush
I'm making a seasonal anime guide app, in the open for all to experience and learn from.
Another short stream, but let’s continue adding list entry tests!
#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #SwiftLang #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush
Come chill with me: https://youtube.com/live/nNXhwUIqhkE
MVVM-курильщика: почему ваша ViewModel — это помойка на 2000 строк, и как это исправить
Если вы когда-нибудь открывали проект, где ViewModel превратилась в свалку логики, навигации и форматирования дат - поздравляю, вы видели MVVM-курильщика. Рассказываю, почему «чистый» MVVM из учебников рассыпается в бою, как превратить ViewModel в машину состояний вместо мусорного ведра, и почему import UIKit в вашей VM - это диагноз. Без воды, с примерами кода и болью. Эта статья - не очередной пересказ документации. Вы научитесь разделять данные и их представление так, чтобы тесты писались сами собой, а ваши коллеги не проклинали вас на код-ревью. Продолжим
https://habr.com/ru/articles/991252/
#swift #swiftui #mvvm #архитектура #ios
Another day another hacky solution to go around SwiftUI limitations on macOS.
I wanted to be able to use the "Select All" item from the app menu without having to replace the built items that SwiftUI provides.
I was pretty sure that implementing a `selectAll` method in my AppDelegate *should* work but it just would not happen.
Turns out you must also make the app delegate conform to `NSStandardKeyBindingResponding` *which doesn't even have this method in it!!*

Useful tip linked in the latest @iosdevweekly about using the .destinationOut blend mode to make an overlay act as a mask for the view underneath it. One handy application I found for this is that it lets you efficiently create a mask from a preference value set by the underlying view, since #SwiftUI gives us an .overlayPreferenceValue modifier but not .maskPreferenceValue
https://livsycode.com/swiftui/reverse-masking-in-swiftui-using-blend-modes/
I don't really get why some obvious things are not readily available in SwiftUI. Why doesn't every view just have easy access to mouse or pointer position? It would be probably trivial for apple to implement this. If its not trivial then there is something very wrong with your framework. #swift #swiftui #indiedev
Committed the last of the usual sync tests for list entries! Tomorrow night, let's add a few tests checking sync against lists the user doesn't own. See you then!
🔜 Tomorrow’s stream: https://youtube.com/live/nNXhwUIqhkE
⏮️ Playlist so far: https://www.youtube.com/playlist?list=PLRxjf93xotuofCtaxtGOcWeuxVZYJyY-m
📲 Download Jiiiii: https://apps.apple.com/app/apple-store/id6472801548?pt=14724&ct=MastodonCCStreams&mt=8
#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #Swift #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush
I'm making a seasonal anime guide app, in the open for all to experience and learn from.
Short stream, but let’s add more list entry tests!
#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #SwiftLang #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush
Come chill with me: https://youtube.com/live/QTDnbLvr8ds
A short update on ClickWheel after a long ass time: I've decided to open source it, Apple has been giving me an hard time enrolling in the developer program and in all honesty I don't love the idea of splurging 100€ to launch a free app. Anyway, here's the repo, feel free to fork, contribute or simply enjoy the app as much as I did making it: https://github.com/TomasVSantos/ClickWheel-oss
#indie #indiedev #swift #swiftui #apple
I recreated the fnbro iOS app in #swiftui #fortnite