Question: Why input (submit) looks like this on IOS only, and how do I solve it?

[![enter image description here](https://i.stack.imgur.com/UVlKB.png)](https://i.stack.imgur.com/UVlKB.png)

thanks in advance

HTML:

```
       <input class="btn" type="submit" 
             [disabled]=""
             value="ابدأ الان">

```

CSS:

```
    .btn {
        height: 4.2rem;
        width: 10.4rem;
        padding: 0;
        border-radius: 6px;
        font-size: 1.5rem;
        margin-right: 1.3rem;
        outline: none;
        font-weight: bold;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        opacity: 1;
        background-color: #032C51;
    }

```

Answer: 
Base R option:

```r
grp <- cumsum(c(TRUE, (dat$Date_implemented[-1] != dat$Date_implemented[-nrow(dat)])))
grp
# [1] 1 1 2 2 2 3
dat$C <- ifelse(grp %% 2 == 1, 1, -1)
dat
#    ID Date_implemented  C
# 1 345       2020-01-01  1
# 2   2       2020-01-01  1
# 3  67       2020-01-02 -1
# 4 380       2020-01-02 -1
# 5   9       2020-01-02 -1
# 6 176       2020-01-03  1

```
You can use `lag` to compare the current value to the previous value.

```

library(dplyr)
df %>% mutate(c = ifelse(dates == lag(dates), 1, -1))

```