Post

Replies

Boosts

Views

Activity

Reply to Its time for SwiftUI on the web! (WASM, WEBGL)
I'm a freelancer in iOS development but every now and then I get a request to make small websites for distant relatives or friends or acquaintances of them. I don't like those heavy weight websites that take ages to load (hello WIX) with tons of js and those damned cookies. On the other hand I don't like to make static websites myself in html like in the 90s which look super sparse (though they load very fast). What I would really like is to make use of my Swift/SwiftUI knowledge in web. Been thinking about some minimal framework or some kind of method to do that. Found some toy projects but I don't want to bring the iOS L&F to the web, I want websites to look like websites but made with SwiftUI. No more CSS and HTML. Compiling SwiftUI to html is the first naive idea that comes to mind. But I lack the broad knowledge of web technologies out there so I find myself unable to devise anything that could nearly rival other sophisticated frameworks.
1w
Reply to iOS 14 .onAppear() is called on DISappear instead of appear
I have the same issue like the OP, and it still exists in iOS 16 beta 2, whether I use NavigationSplitView or NavigationView with column-style. Are there no other view modifiers that are called? I have a singleton audio engine in the app, and the detail view initializes itself on the engine at .onAppear. Can't have a new audio engine for each detail view, especially if the previous detail view is not discarded.
Jun ’22
Reply to AVAudioUnitSampler SF2 SoundBank Load Failure
I figured that the sampler loads percussive presets from SoundFont bank 128 and melodic presets from SoundFont bank 0. I have some GM2/XG SoundFonts here, with banks 127, 126, 124, or 8. I did not manage to load presets from any of these banks. TN2283 says: "Note: The MSB/LSB for the bank plus a preset number are the same three values used if you were selecting a bank and preset via MIDI." Furthermore: "If you know the bank contains other variations, you may use those values." So I have a MIDI file that requests bankMSB 127, no bankLSB, and preset 0. The sampler fails to load the preset but the SF does have a drumkit at bank 127 (I verified this with Polyphone). TN2283 does not specify how AUSampler maps bankMSB/bankLSB to a SoundFont bank. A SoundFont bank is only one number, and it can even be higher than 127. Maybe I should write a feedback bug report. Or maybe the AUSampler is only GM2 compatible, which means the TN is wrong.
Jul ’20
Reply to Loading EXS24 Instruments Fails
Hello,In my app the EXS24 samples are located in an AUv3 App Extension so the instrument can be loaded within the app extension in another host app.Currently I get error -43 (kAudio_FileNotFoundError) when loading the .exs sample from within the app extension in my own app.I guess this is because the sample files are not located at the main bundle but at the app extension bundle instead.Samples are located within "SoundFont Samples" folder in the app extension bundle.I don't see any way how to make the sampler look within the app extension bundle. Any hints on this?
Apr ’20