a place for hacking with Swift & SwiftUI
-
in a few places across the app, animated symbols are being used; animated symbols introduced in iOS 17 & new effects have been added with iOS 18
-
some custom fonts from Google fonts are being used like Handjet light
Note: there is an issue with the Xcode 16 beta & resolving packages, I needed to create the project in Xcode 15 as a work around. The project will work in Xcode 16.
- the splash scene is using a demo animation made with Rive
- there are 2 layers in the animations
- logo - plays once
- circles moving along a sine wave - loops
- the sine wave was created as a separate asset & imported into the Rive project
- there are 2 layers in the animations
- in the quiz scene, a Rive project is being used to display a multiple choice question
- when a choice is made an event is sent
- when the submit button is tapped, an event is sent, the corrsponding logic in the SwiftUI view, will check if the correct choice was selected
- Swift OpenAPI Generator
- work in progress
- the server end point is using some example code made in Vapor; it works in the simulator using local host, you need to build and run the Vapor code on your development platform, e.g. a MacBook
- to test on an iOS device, I recommend using ngrok, this will require setting up a developr account
- who doesn't like a confetti visual effect
- it being used in the quiz scene; an animation is triggered, when the correct choice is made
- audio sound effects used from the BBC with permission
bbc.co.uk – © copyright 2024 BBC
- vector art for question marks Nouri Atchabao on Vecteezy
