Designer v1.4.2 changes (Patreon)
Content
Additions
- Hide music artwork view iOS16.6.1
- Apply to LS or SB option after downloading a theme
- showWhenPlaying trigger option
- showWhenCharging (includes same triggers as showWhenPlaying)
- spin animation
- UIImageView mask
- UIView cutWithView
Fixes
- Fixed conflict with Atria (Insets)
- If a template name already existed and another template was saved it would show the template name twice in Add Element
- Child order on older themes (made before child order) had some issues
- Fixed exporting theme adding a none folder
Improvements
- Improved trigger: animations
Removed
- hideWhenPlaying
Hide music artwork view
On iOS16.6.1 the lock screen music player automatically shows the album art. Showing a blurred view and non blurred view. The Designer option "Hide Music" did not hide this new view leaving users on 16.6.1 confused. On previous versions of iOS you had to tap the album in the music player to get this blurred and non blurred view to show. So the Hide Music option did both things. Since this is not the case on 16.6.1 there is a new option to hide the Music Artwork View.
showWhenPlaying trigger
When showWhenPlaying was first introduced it allowed you to set YES or NO to if a view is showing when music plays. Allowing you to show/hide a music player. This was limited as the only animation available to designers was it changed the alpha from 0 to 1 or vice versa. In 1.4.2 I introduced a way for designers to control this animation. This is done by triggers. Instead of setting YES or NO you can now set something like triggerOn:myonview, triggerOff:myoffview.
When the music is playing it will trigger the myonview. Whatever animations are set to this view will be played. When music stops it will trigger the myoffview. In this case myonview and myoffview are examples. These would be names of the view you wish to trigger, the one that has the animations you want to play at that state.
This is hard to understand i'm sure. I have provided video examples in the Discord channel #designer-snippets to show exactly how this works as well as many other snippets explaining things you can do in Designer.
showWhenCharging
This works exactly like showWhenPlaying, but has to do with if the phone is plugged in or not. When plugged in it can show/hide a view or trigger an animation.
Spin animation
Animations do have a rotate option, but it's limited. If you would like an animation to continuously spin you cannot do that with the rotate option. For this I have added a spin option to animations. It has two states.
{spin:YES,spinSpeed:3} which will start a spin with a speed
{spin:NO} will stop the spinning
This works well with showWhenPlaying. If you set the triggers on showWhenPlaying to each state then when music is playing you can spin the artwork, when music is not playing you can trigger the stop.
UIImageView Mask
The UIImageView element now has a mask option. It is set just like an image, but is used to clip or mask certain areas of an image. Again I would refer to the Discord channel #designer-snippets to see this in action. The example I was given when this feature was requested is like the N95 tweak. Instead of just masking the Album art (in the case of N95) you can mask any image in Designer.
UIView cutWithView
Let's say you have a UIView with a white background. You can now use a separate UILabel to cut the text out of that white background. Allowing you to see through the UIView background in the shape of the text.
This requires 2 views. The UIView you wish to cut and a UILabel. The UILabel needs to be the same width and height of the UIView. On the UIView set the cutWithView to the name of the UILabel. Once you are finished you can hide or move the used UILabel off screen.
Closing
This update includes some complex things. As I suggested above visit Discord to get familiar with these. Videos can explain more than the text presented here. Also if you have any questions regarding any change. I'm active in Discord and don't mind explaining things more.
This update is now available for download.
Patreon: https://www.patreon.com/posts/98279080
My Repo: https://junesiphone.com/supersecret
Gumroad: https://junesiphone.gumroad.com/l/designer