This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct InnerShadow<S: InsettableShape>: View { | |
let shape: S | |
var color: Color | |
var thickness: CGFloat | |
var offset: CGSize | |
var blur: CGFloat | |
init(shape: S, | |
color: Color = .white.opacity(0.25), | |
thickness: CGFloat = 0.0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct TextMask: View { | |
var body: some View { | |
Color.white | |
.frame(maxHeight: 30) | |
.mask(Text("Today") | |
.font(.system(size: 12, weight: .heavy)) | |
.padding(.vertical, 7) | |
.padding(.horizontal, 15) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- alias: Call webostv.button on HomeKit Remote key presses | |
trigger: | |
- platform: event | |
event_type: homekit_tv_remote_key_pressed | |
event_data: | |
entity_id: media_player.living_room_tv | |
action: | |
- service: webostv.button | |
data_template: | |
entity_id: "{{ trigger.event.data['entity_id'] }}" |