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: 
If you want to keep with `rep()` function, I believe this will give what you want. The `df$Date` refers to your Date column.

```
rep(rep(c(1,-1), length.out = length(unique(df$Date))), times = table(df$Date))

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

```

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

```